teleren/devto huggingface dataset:
Build Powerful Go CLI Applications Using the Cobra Package 🐍
Tags: go, tutorial, video
Published: 2020-07-26 01:07:08

{% youtube 7U12a-TTtfo %}

Shout out to my wife who makes these hilarious thumbnails, follow her on [twitter](https://twitter.com/bonecloset) and [instagram](https://www.instagram.com/bone_closet/) for more art stuff.

CLI applications are extremely handy to use. Building out alot of the nice features that good CLI apps have can be a bit time consuming though.

At least, it was, until [cobra](https://github.com/spf13/cobra) was created and that changed everything.

Cobra is a go package that can be utilized to create very robust CLI applications with very little effort.

It provides an impressive list of features:
- Subcommand-based CLIs
- POSIX-compliant flags (short/long versions)
- Nested subcommands
- Global, local, and cascading flags (explained in video)
- Application and command generator
- Auto suggestions on command typos
- Automatic help generation
- Automatic help flag recognition
- Generates shell autocompletion for bash, zsh, fish, and powershell
- Generates documentation, such as man pages
- Command aliases
- Integrates very well with [viper](https://github.com/spf13/viper)
{% link https://dev.to/dak425/channel-your-inner-snek-to-configure-your-go-programs-3lm0 %} 

Check out the video tutorial where I give some basic examples of the various features of cobra.

If you liked it and want to know when I post more, be sure to [subscribe] (https://www.youtube.com/channel/UCTHij3Ac5GizLsn5yB4IX_Q?sub_confirmation=1) and thank ya'll again for your time!
Cleaning a C# Form-based project using a .bat
Tags: programming, csharp, beginners
Published: 2020-07-26 19:01:01

---
title: Cleaning a C# Form-based project using a .bat
published: true
date: 2020-07-26 01:05:00 UTC
tags: programming,csharp, beginners
canonical_url: https://www.ecode.dev/cleaning-a-c-form-project-using-bat-file/
---

 ![Cleaning a C# Form-based project using a .bat](https://res-2.cloudinary.com/hok9n4wen/image/upload/q_auto/v1/ghost-blog-images/richy-great-MAYEkmn7G6E-unsplash.jpg)

After creating a Windows Form App project using Visual Studio 2019, and try to push the code to a git repository, I realized there are still garbage files. My initial thought was executing the Clean Project option, however, it does not clean all files that I consider as garbage 😩 (at least on the default setting).

My following thought was to change options into the  Setting of Visual Studio, but after a while, I finish adjusting the size of the font on the editor and trying different fonts...procrastination 🤡

To replicate this, I started with a Windows Forms App (.NET Framework) option in my Visual Studio:

![Cleaning a C# Form-based project using a .bat](https://res-4.cloudinary.com/hok9n4wen/image/upload/q_auto/v1/ghost-blog-images/form.jpg)

Then, I started coding 🤓 and when before to upload the code to the git repository I clean the code with the following .bat:

{% gist https://gist.github.com/esmitt/44267cffbe6ab71d235d92dc6381efd5 %}

You can edit the .bat as you want, it works fine in Windows 10.

Honestly, this is not mandatory at all, the **habitual** way is adding the file extensions into the _.gitignore_ file and continue with your life, but I can't #sorryNotSorry 👻

I hope that could help more developers who want _clean projects_ 😃

_From a geek to geeks_

--
✍️ Originally published at https://www.ecode.dev on July 19, 2020. Check out [my blog](https://www.ecode.dev)

🦖 If you want to help me to buy my own dinosaur, you can do that in [buymeacoffee](https://www.buymeacoffee.com/ecodedev)
Web Dev & Data Science: Finding My Niche
Tags: webdev, database, datascience
Published: 2020-07-26 00:23:12

###**Introduction**
I've always been one to get to the bottom of things. Solving problems and explaining complex information is something I very much enjoy doing. I decided to pursue web development because I am always fascinated by the limitless potential of the web. Copious amounts of data are passed through every single day, which prompted my interest in data science. Building scalable web applications that provide data insights to help businesses make decisions is my hope for the prospect. This is how I see my career concentrations relating to one another.

###**Coming around 'full circle'**
Since the beginning of the current year, I've seen a vision for my professional future that involved web development, database and data science. It's the perfect trio; it just makes sense.

####The Web
Building for the web is one of my passions. I aspire to create beautiful sites and user interfaces that feel as natural as the fluent motion of touching a screen. At my current skill level, I am starting to apply my knowledge to larger projects. As I grow in my web dev journey, I will learn to create more powerful, high-quality works.

The other thing I admire about the web is the vast amount of information collected about people and things all over the globe.  All of this collected data is turned into information that is used to help us make decisions in the **real world**.

####Database
Data is all around us. Everything is an entity that can be broken down into attributes and turned into a dataset. This very concept blows my mind. 

Where there is data, there are questions. 
Where there are questions, there are always answers.

There are many methods of processing this data, thus the many Database Management Systems (DBMS) options that are available. We use this software to define, manipulate, retrieve and manage data in a database. Each kind of DBMS can be better at processing the data in certain ways than another.

####Data Science
How we get the data is database, but how we **use** it is data science.

This is where I feel these concentrations come 'full circle'. The final stage in practical use of data that is making decisions based on our findings and insights. The methodology of data science involves understanding what kinds of data are required to prepare a model and evaluate a solution to the question at hand.

###**Conclusion**
Limitless potential... that is the product of these fields of study.

Web design, the looks. Data science, the brains. 
Database, the glue that holds them together.

I am looking forward to what I will learn in the coming years.
Book Review: The software architect elevator
Tags: bookreview, architecture, devops
Published: 2020-07-26 19:07:29

---
title: Book Review: The software architect elevator
published: true
date: 2020-07-26 00:00:00 UTC
tags: BookReview,Architecture,DevOps
canonical_url: https://hceris.com/book-review-software-architect-elevator/
---

[![The Software Architect Elevator](https://hceris.com/static/bff61e37531de6f4cc5fc8e4540dc41b/397a5/elevator.jpg "The Software Architect Elevator")](/static/bff61e37531de6f4cc5fc8e4540dc41b/397a5/elevator.jpg)

If you follow [Gregor Hohpe’s](https://www.enterpriseintegrationpatterns.com/) blog, you will know his views on software architecture and its role in the enterprise. What I like is that he combines technical topics and how they apply to the business side, which is an extremely important conversation that we sometimes forget as technologists.

So now he has another book about architecture out. What should a software architect do? How to be effective at communicating with different sorts of people? How do you get closer to what he calls a digital company? All those questions are answered with a lot of actionable advice and some dry humor.

Moving fast and quality are not mutually exclusive. Properly defined boundaries help teams. Communicating effectively is extremely important. That’s pretty generic, though. What kind of documentation should an architect produce? How to make a more effective presentation? And how to use diagrams to convey your message better? That is actually something that you can apply right now.

## Bad Agile

One pet peeve of mine is _claiming to do agile while doing the opposite_. You know, saying that you do agile just because you do a standup where nothing useful is said. Or writing stories that have no provable value to the business. There are many examples.

Another one is claiming that if you do agile, you don’t need any documentation. Instead, you better explain the same thing over and over, until eternity. That is nonsense, and we get here a few ideas on how to write documentation that will actually be _read_.

## The power of automation

One prominent theme in the book is that the only way to truly achieve speed and minimize errors is to automate manual tasks. An automated task is going to be faster, less error-prone, repeatable, and trackable. Yet you often hear folks trying to skimp on automation to save a little bit of time. Seriously, don’t do that.

## Verdict

You might think that if you are a developer, you don’t need to care about architecture in your organization, but that’s just not true. Everybody can influence the shape of the systems that they work with. Moreover, communicating effectively about it is of paramount importance to have any impact. That’s why this book is very useful and is worthy of ⭐⭐⭐⭐⭐ stars.
World of WoqlCraft - Ep.17 Fixing the Knowledge Graph for NLP
Tags: python, database, nlp, query
Published: 2020-07-25 23:43:08

---
title: World of WoqlCraft - Ep.17 Fixing the Knowledge Graph for NLP
published: true
description: Sorry for the short episode, we are having EuroPython this week. We try to continue the knowledge graph that we build last week. We plan to use idgen() to link up the queries and with the new plus operator, it should be easy. But there is a twist at the end that stops us...
tags: python, database, nlp, query
---

Sorry for the short episode, we are having EuroPython this week. We try to continue the knowledge graph that we build last week. We plan to use idgen() to link up the queries and with the new plus operator, it should be easy. But there is a twist at the end that stops us...

Find the source code from our [tutorial repo](https://github.com/terminusdb/terminus-tutorials).

Join the TerminusDB community at [Discord](https://discord.gg/Gvdqw97)
Tu primer plan de carrera personal en desarrollo web 
Tags: career, codenewbie, javascript
Published: 2020-07-25 23:28:19

Hace relativamente poco, di una charla introductoria sobre desarrollo Web, dirigido especialmente a quienes están empezando. A partir de ahí, recibí muchísimos mensajes de mujeres preguntando un poco más sobre mi pequeña experiencia y sobre recursos que les pudiera resultar útiles. Esto me abrió un poco la mente. Cuando recién empezaba, hace dos años atrás, tuve ayuda de muchas partes y en algún momento me encontré un poco desorientada en qué hacer primero. Es tanta la información que hay a nuestro alcance que cuando empezás a leer y a estudiar, hay más y más y sentís que nunca terminas de saberlo todo (en realidad nunca terminas de aprender). Yo creo que eso es lo que lo hace más interesante. De hecho, tomé cuál consejo me sugerían porque estaba decidida a cambiar de rumbo y había encontrado en esto un desafío súper interesante que quería emprender.

En estos años cuando me encontraba en búsqueda activa de trabajo decidí recolectar una serie de conocimientos que debería tener según mi seniority. Obviamente esto es relativo, como siempre digo no es algo estandarizado y van a encontrar que varía según la persona, la experiencia, empresa, etc etc etc. Este es mi cuadro personal que hice como mi guía cuando a veces me saturaba un poco la ansiedad de aprenderlo todo. **Hoy me siento un poco más relajada al respecto porque alcancé un lugar que me costó mucho y estoy en esa instancia en la cual sigo aprendiendo pero a la vez estoy disfrutando mucho el camino y mi trabajo.**

En este caso particular mi elección de siempre fue el desarrollo frontend por lo tanto mi plan de carrera está orientado a esa área. Si quieren saber más info sobre las distintas áreas en desarrollo web les dejo el link de la charla abajo o mismo también hay mucha info en internet. **Les sugiero hacer cambios propios y buscar qué más les gustaría aprender en cada sección. Sino saben bien por dónde empezar creo que esto podría ser un puntapié a seguir buscando y a que lo puedan adaptar según su gusto y criterio.**

{% github Amaldonado7/My-Career-Path no-readme %}

**DISCLAIMER:** Este cuadro lo hice yo en Figma basado en anotaciones que hice durante dos años con un modelo que me habían pasado. Puede variar según otros criterios.


- Les dejo algunos artículos relacionados con los cambios de rubro a sistemas para inspirarles:

{% post https://dev.to/iamdoomling/esta-no-es-una-historia-de-amor-4h7i %}

{% post https://dev.to/ddgn/cambiar-de-carrera-post-30-a08 %}


- Y el link del video que les comentaba más arriba:

{% youtube CBsNDZY4vKc %}

Happy coding!
(6/21/20) Bit . Trip Editor: External code update
Tags: gamedev, showdev, github, realtimecode
Published: 2020-07-25 22:19:00

Project @ https://github.com/donnaken15/Bit.Trip_Editor

Now opening all the stuff in my project file out of the box, and maybe sprites too

also since GitHub can detect GML now

some scripts may not be editable or exported
including beats which ill resolve soon

some other changes:
compressed game icons to minimal size and colors programmatically
real time code changes can be applied but it will be slower (turn on in settings with RealtimeSrc=1)
some others i forgot BECAUSE FIREFOX AND MY COMPUTER SUCKS

todos:
optimize beat beat functions, i might've went full yandev not inheriting code :-|
MAKE THE FREAKING VIOLET BEAT, THANKS GAMEMAKER
use xin instead of implemented functions, also maybe include wiimote support (GiiMote extension is still broken lol)
allow relative and absolute paddle control for mouse and joysticks (part of it done now)
figure out alarm 0-11 and some other events with object_event_add (OR JUST PUT IT IN STEP YOU STUPID KI-)
maybe get around optimizing font sprites and proportions and spacing because wasting 4 resized sprites of the same thing
export code and add by files for some other things i haven't already, will be a wreck to go through
maybe protect variables or objects from being messed up when having id names that people might accidentally overwrite
remove blank sprites for collision if it really isnt needed and since already drawing plain color rectangles
remove sprites of designer that can be replaced with line and rectangle drawing code
try using exitprocess or something to return certain game statuses in error codes
maybe dont load what doesnt need to (like not keeping in designer scripts or other things while playing a level)
the js port because ecma is trash and close to gamemakers free breakable syntax and because its web trash
edit menu, playtest, timeline/editor buttons, and object adding in designer

also added installer with automated registry stuff and adjusting to install location: github.com/donnaken15/Bit.Trip_Editor/releases/tag/installer
Codecademy Data Science Course Part I
Tags: python, sql, datascience
Published: 2020-07-25 22:13:26

# Thoughts On Codecademy Data Science Course 
Hello, and welcome to my post on Codecademy's Data Science Course. This will be a series of posts documenting my time with the platform throughout the course. Hope the information in this post is informational and even helpful if you are looking at possibly taking the course.

## Introduction Course: Why Data Science?
The first course you start with isn't so much about coding as it is about why choose Data Science as a profession and what skills you will learn in this course that will make you a successful Data Scientist. You are introduced to an employee that was just hired by Codecademy as a Data Scientist. You go through, what I can only assume is her first day/week on the job while being introduced to the various languages and skills you will learn throughout the course. 

## What Skills and Programming Languages You Ask?
Keep in mind that this is just an introduction section so it doesn't go into too much detail on any of the sections. 

### SQL
The first language that it covers is SQL. It gives a brief introduction to the new employees task and that they will be using SQL to accomplish the task. You then run your and see your first glimpse of SQL. If you haven't ever used SQL before this is a pretty cool introduction. For those that have used SQL or have several years of experience with SQL it's not anything you haven't seen before. 

### Python
Next up is Python. You get a brief introduction to the numpy and pandas libraries a long with showing matplotlib for creating pretty neat and awesome looking data visualizations. This is actually pretty cool. Whether this is your first time seeing a data visualization project or not it's pretty cool to look at. 

### Machine Learning 
Last but certainly not least is the Machine Learning section. This section show a Python script full of all kinds of code that, if you are new to Data Science you won't really understand but that isn't the point of this section. It is just to get you to see what the code produces that you will eventually be creating. 

# Conclusion
I know this wasn't the longest post, or shortest post for that matter, but I just wanted to say that so far the Data Science course available on Codecademy is going good. And does offer valuable insights into each category to show what you will be doing. Enjoy.
Why I left NeoVim and started using Emacs?
Tags: vim, emacs, productivity
Published: 2020-07-25 21:54:04

# What emacs is?

According to some people:

> Very good operating without decent editor.

Well, basically - it&rsquo;s true, but there are some hacks to make it very convinient.


# Why did I switch?

Reason is trivial - I was tired of constant switching between Jupyter, PyCharm, Neovim and some other things. Now I can do all necessary stuff in one place. In my case orgmode wasn&rsquo;t selling point of it, beacuse I&rsquo;m hardly taking any notes.

What am I using now?

1.  orgmode! - I&rsquo;m currently writing this post in it and I&rsquo;m loving it. It made writing posts so much fun that I hope I&rsquo;ll post more often.
2.  ein - it&rsquo;s plugin/extension (I don&rsquo;t know what&rsquo;s the correct name for it) handling Jupyter notebooks.
3.  EViL mode - vim bindings. Everywhere.
4.  ivy - I find it the best autocompletion engine for now.
5.  doom emacs - my distribution of choice for now. I&rsquo;ll probably leave it someday and tinker my own config.


## Did I left vim for good?

Of course not. Vim is still my editor of choice on servers. Emacs is just too large for quick config edits in my opinion. It&rsquo;s great as GUI app, but unfortunately its terminal version just sucks.


# How to make emacs usable for new user?


## Use distribution

Emacs is *swiss army chainsaw* - it&rsquo;s way more than vim, so configuration is way more complex. Emacs&rsquo; configuration files are written in elisp. It may look weird, but I find this language quite self-explanatory.

![Toggl's comic (cropped by me)](https://dev-to-uploads.s3.amazonaws.com/i/wf2puo05hy5103aiinwl.jpg)

There are two major distributions and some minor ones, but I&rsquo;ll cover only big ones.


### Spacemacs

As far as I know it&rsquo;s the most popular one. I wasn&rsquo;t using it for long because it overwhelms me. It may be better for some of you, because it has a bit bigger community.



### DOOM emacs

That&rsquo;s the one I&rsquo;m using right now. It gained some popularity after DT&rsquo;s video about emacs. Simple to set up and configure. Its configuration is in different folder than emacs&rsquo;, so it&rsquo;s a bit independent (at least it&rsquo;s easier to back up).



# Summary



## Emacs&rsquo; bright sides

1.  It can do basically everything. Org mode is the best notetaking system I found (it even beats MS OneNote, Evernote and Notion). If it can&rsquo;t do something - there&rsquo;s plugin to do this for sure.
2.  org mode <3
3.  Support for EViL mode - Vim doesn&rsquo;t have `emacs mode` ;)
4.  It&rsquo;s GUI app, so visuals are a bit better than vim or any other terminal-based application.



## Emacs&rsquo; drawbacks

1.  It&rsquo;s a bit *clunky*. Its startup takes ages.

What is your opinion about emacs? Will it someday win editor war?
If you have any questions feel free to ask, I&rsquo;ll do my best to share my (poor *for now*) knowledge with you ;).
Stay tuned!
Attribute Casting with Laravel
Tags: laravel, protips, eloquent, php
Published: 2020-07-25 21:40:41

When was developing an application that use the MVC pattern, we need define our model, that is the layer that communicate our application with the database.

But sometimes, we need to casting values that received from model. Let me show an example:

> You’re creating a model to represent Products, and need of: name, value, state (if it’s available or not) and when will it be available.

Every time that you need create, show or edit a product, need to casting the values. Our idea with this article is it makes your job easier, therefore, what about if we pass this responsibility to our model, so that it makes this automatically?

For this, Laravel has the $casts property. Let’s see how works:

{% gist https://gist.github.com/rafael-franca/5f941b48da312526d5fcee2c8c53bb4f file=Product.php %}

Using this property, the attributes are casted automatically, and you not will need make this manually. Let’s see a practical example.

> You’re create a method to add some days of delay in the availability of a product, for this, hasn’t used a date, only the quantities of days that want to delay.

Without use the $casts, you make something like this:

{% gist https://gist.github.com/rafael-franca/2594424268bc8ca89197558b67cbd637 file=StockController.php %}

Note that we used the Carbon package to make a parse of the date and after add the quantities of days that want to be delayed.

And, if we use $casts, how would it be? Let’s see:

{% gist https://gist.github.com/rafael-franca/8375076ab5da5b5400d3d87b127451b4 file=StockController.php %}

More simple and cleaner, sure?

You can think: “OK, I make this but, what I win, beyond save letters that will be typed?”.

The response to this question is: maintainability. That is, if in the future, you want to know the date and time that a product will be available, only need change your model, changing your $casts from date to datetime. It’s simple

What do you think about this tip?

Soon I back with more! :)

**PS:** Originally posted on my account on Medium.

{% medium https://medium.com/@rafaelfrancam/attribute-casting-with-laravel-f62e8a5fbed2 %}

Cover photo by [Fotis Fotopoulos](https://unsplash.com/@ffstop) on [Unsplash](https://unsplash.com/).