teleren/devto huggingface dataset:
Git version control basics in VS Code
Tags: beginners, productivity, learning
Published: 2021-01-28 16:35:13

---
title: Git version control basics in VS Code
published: true
description: Using 
tags: #beginners, #productivity, #learning
cover_image: https://dev-to-uploads.s3.amazonaws.com/i/a4rp1rjteq6f9supy484.png
---  
When you're first starting out as a developer, one of the big curve balls that gets lobbed right at your face is the concept of "version control". 

I've been a developer for 17 years and version control is a struggle for me **to this day**. Sometime around 12 years ago, we all simultaneously decided to standardized on Git - which is a prolific, but objectively difficult to use source control management (SCM) tool. It's kind of like standardizing on English as a language for the entire world. Does a building burn up, or burn down? YES.

One of the things that Visual Studio Code tries to do is abstract some of that confusion away for you. There are certain motions that we make every day around source control that VS Code can handle for you. A typical flow might look something like this...

1. Change a file(s)
1. Stage your changes
1. Commit with a message
1. Push

VS Code is quite good at managing this workflow for you so you never have to drop into a terminal. Even after you get comfortable with using the git command line interface, you'll likely find that the VS Code flow is still faster because there's no context switching.

Check out this video on version control basics in VS Code. 

{% youtube ydCi5zU1sZY %}

You can do a lot more with Git in Visual Studio Code, and even MORE with GitHub. Visit [vscode.github.com](https://vscode.github.com) for 20 quick video tips that cover everything from how to change your diff view to how to create a pull request right from the editor.

Oh - and not only can you use GitHub from within VS Code, but you can also [use VS Code from within Github](https://github.com/features/codespaces)...
Dell laptop Camera is always black
Published: 2021-01-28 16:28:54

I own a new Dell laptop, which of course, I never read the manuals. 

Wanting to keep it updated, I noticed there were some suggested updates to the bios. The download and install went smoothly.

But later I noticed my Camera wasn't working, it was just showing "Black" nothingness. 

I called Dell, and they figured it out immediately. 

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/y4k653surh7uisoql3wk.gif)

See the plastic bumps where the arrow is pointing? That is the new built-in camera door. I had somehow closed it without knowing. 

Solution: Open the camera door.

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/82kxrce0gc02cev0mxg3.jpg)
Fazendo download de arquivos
Tags: powershell, tutorial, beginners, systems
Published: 2021-01-28 14:05:31

Em alguns momentos, pode ser preciso que nosso script faça o download de algum componente ou arquivo, como um executável atualizado. 
Mas será que podemos fazer isso com Powershell? 

Sim, conseguimos fazer, e pode ser uma solução bem interessante para manter um script de instalação sempre atualizado. Claro que dependemos que a URL esteja atualizada, mas é interessante sabermos como fazer isso. 

Para exemplificar, vamos pegar um ZIP do repositório que mantenho os exemplos que uso nos textos publicados nesse blog e depois vamos descompactar os arquivos. Nesse exemplo vamos simular um pouco do processo que uma ferramenta GIT faria para receber o ambiente e tornar ele disponível localmente.

Para fazermos o download, utilizaremos a função [**Invoke-WebRequest**](https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/invoke-webrequest?view=powershell-7.1), informando a URL e o arquivo de saída que queremos.

Para deixar mais organizado, seguindo com essa ideia de simular uma ferramenta de GIT, vamos:
1. Criar uma pasta na raiz do sistema chamada MyGIT
2. Fazer o download no APP data
3. Descompactar os arquivos na pasta que criamos
4. Limpar nosso download

Para fazermos o processo de descompactar, utilizaremos a função [**Expand-Archive**](https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.archive/expand-archive?view=powershell-7.1), passando como parâmetro o local do arquivo e onde queremos deixar o arquivo descompactado.

Como isso fica em código?
{% gist https://gist.github.com/IGDEXE/c8510765a5778760093270ab20bcc328 %}

Com isso podemos de forma funcional simular esse comportamento de fazer o download das pastas e organizar os arquivos. Claro que não é o único uso, como exemplo vou deixar um script que escrevi para o download e configuração de uma ferramenta:
{% gist https://gist.github.com/IGDEXE/f6f512b4e72a524dd2f3db9e1b45bcf8 %}

Com isso podemos tornar nossos scripts mais independentes e minimizando a necessidade de manutenção. Caso tenhamos uma URL sempre atualizada pelo fornecedor, o script não vai precisar de nenhuma alteração para continuar funcionando.
Laravel InertiaJS SEO workaround
Tags: laravel, vue, php, javascript
Published: 2021-01-28 16:12:35

I noticed an [issue(#45)](https://github.com/inertiajs/inertia-laravel/issues/45) raise on Github regarding server-side rendering and SEO.
According to the official documentation of InertiaJS, server-side rendering is **not supported** at the moment. However, there is a way to work around it!

[Read more](https://luiyongsheng.medium.com/laravel-inertiajs-seo-workaround-87ad22215e0d)
Preparation strategy for AWS Certified Solutions Architect Professional Exam
Tags: aws
Published: 2021-01-28 14:29:22

In this blog, I would like to discuss the exam pattern and preparation strategy for AWS Certified Solutions Architect Professional Certification Exam
***The following topics are covered in this blog***
(i)Certification Exam Overview
(iii)Exam Pattern
(iv)Learning Path

Before going into the blog I would like to say that I'm an AWS Certified Solutions Architect. It took me 4 months of preparation to clear the exam. I have around 1.8 years of experience in AWS. The experience that I possess and my [AWS Certified Solutions Architect Professional Training](https://intellipaat.com/aws-certified-solutions-architect-professional-training/) helped me to clear the exam on the first attempt.

(i)__Certification Exam Overview__
AWS Certified Solutions Architect(SAP-C01) is for those who are having good hands-on experience in managing the AWS cloud. One point to be noted.

(ii)__Exam Pattern__
This exam consists of MCQ's questions. It is of two types:
1)MCQ's with a single correct option 
2)MCQ's with multiple correct options


![Screenshot (92)](https://dev-to-uploads.s3.amazonaws.com/i/5oxe6uz7zsokff62h6s1.png)

(iii)__Learning path___
The following path is highly recommended to clear all the basic and professional certifications of AWS.
![awsa](https://dev-to-uploads.s3.amazonaws.com/i/u8vsphd4j678rm5r20ec.png)

If you want any tips and tricks go through the how-to clear [AWS Solutions Architect Professional Certification](https://intellipaat.com/blog/aws-solutions-architect-professional-exam/) exam on the first attempt

Hope this blog finds helpful!
Don't pay cloud from your pocket - use free credit 
Tags: webdev, cloud, serverless, database
Published: 2021-01-28 16:04:36

If you only want to validate an idea or want to launch without knowing if it will be profitable, you don't have to pay from your pocket for a majority of cloud products. For the launch of my side project Mindible, I won't be using any paid cloud services. Let me show you how I can do so!

## Static website
If you have a static frontend, you can use free services like [Vercel](https://vercel.com/) or [Netlify](https://www.netlify.com/). Their **free tiers** are really enough for any small launching startup. I would recommend using Vercel since I used it myself for more than a year.

## VPS / Virtual Instances
[DigitalOcean](https://m.do.co/c/2b270a97d422) can give you $100 for free when signing up for the first time to try their products. This way you could use their Droplets or other services for up to **60 days for free.** Ideal to host your backend server for free.

## Databases
If you are using **MongoDB**, this is for you! I found yesterday that there are tons of credits code (you can found them via Reddit) that you can apply to your account. Using this process, I got more than $600 of credits for cloud-hosted MongoDB: http://prntscr.com/xqvm40
There is also **Firebase** which is a really powerful cloud database that can help you with real-time features and online/offline synchronization. Their free tier is also pretty big.

## Other Cloud services
Major cloud providers give you free credit and free services when signing up.
Take [AWS](https://aws.amazon.com/fr/free/?all-free-tier.sort-by=item.additionalFields.SortRank&all-free-tier.sort-order=asc), [Azure](https://azure.microsoft.com/en-gb/free/) or even [GCP](https://cloud.google.com/free?hl=fr). Of course, this requires a bit of time to understand how it works, but it's still a good idea for a free Serverless endpoint for instance.
Instagram's New Content Publishing API
Published: 2021-01-28 15:50:13

*Instagram Introduced a new API called content publishing API, this API will Instagram Business account users to publish or schedule posts in their feed from the third-party apps or website. Currently, this API will support scheduling and posting of a single image or video posting, and scheduling of the carousel is not supported. This API will let each business account user publish or schedule 25 posts in 24 hours from a third-party platform. Additional post can be published from Instagram's mobile app or creator studio*
[Documentation](https://developers.facebook.com/docs/instagram-api/guides/content-publishing/)
Thursday Thoughts | Getting Your First Dev Job, What You Should Do as a Junior Developer, and Helping Developers Be Leaders
Tags: fewdaily, jobs, news, webdev
Published: 2021-01-28 15:18:24

{% spotify spotify:episode:7DTzwamVRFRUnx0xHx1fn2%}

---

## Getting Your First Dev Job

When starting off as a web developer it can be difficult to juggle learning and job searching. Therefore, it is important to know what potential employers are looking for to ensure you are prioritizing the right tasks and opportunities. A recent post on freeCodeCamp gives a handful of tips from a hiring manager's perspective of [what they look for when reviewing developer résumés](https://www.freecodecamp.org/news/how-to-get-your-first-dev-job/). One of the key factors is regular commits on Github, which shows that you are just as passionate about coding as you claim to be.

## What You Should Do as a Junior Developer

Starting your career as a junior developer is very exciting, but it can also be overwhelming. A post on Hello Dev World from last week outlines [some things you can do to improve as a junior developer](https://hellodevworld.com/misc/what-you-should-do-as-a-junior-developer). This includes asking questions, finding a mentor, and learning to debug. Remember, these first few years are all about learning and growing as a developer, so don't stress!

## Helping Developers Be Leaders

As a manager of a development team, it is important to help developers that aspire to be a leader to do so. Fostering an environment that allows career growth for these developers can be done with a bit of effort on your end. Monday's post on The Next Web gives some helpful insights on [how to help developers be leaders](https://thenextweb.com/growth-quarters/2021/01/25/not-all-developers-want-to-be-leaders-but-heres-how-to-help-the-ones-that-do/). By providing opportunities, openly communicating, and more you can help boost your developers to the next level.

---

Want to know more? Head to [fewdaily.com](https://fewdaily.com) for more of today’s topics and other front-end web content! If you liked what you heard be sure to rate, review, and subscribe on your platform of choice. That's all for today, tune in tomorrow!
How can I develop my own node.js module? What material should I study?
Tags: node, npm, javascript
Published: 2021-01-28 14:23:59

Hi, I am currently actively developing in the field of front-end and back-end development and strive to make tools that will make the development of sites and web applications fast and at the same time as flexible as if you were writing code from scratch for your needs. I am currently developing a grid grid & flex grid with a user-friendly syntax that doesn't pollute your code and gives it a readable, localized, and just plain nice look. This development has passed some tests, and I am very happy with the result. But it still needs improvement

I managed to implement a part that turns a string with positioning parameters into an object. This object is accepted by some methods of the class. After processing, the values of this object become tag classes that position the object in the grid. To help you understand how this works, I'll give you an example.

```html
<!-- before processing -->
<div dex-pos="xl: 1/5; ml: 1/2; sl: fit" class="content__wrapper">
  ...
</div>

<!-- after processing -->
<div class="content__wrapper dx-s-xl-1 dx-e-xl-5 dx-s-ml-1 dx-e-ml-5 dx-sl-fit">
   ...
</div>
```

* * * * *

The problem is that the handler only works through a class call and I do not know how to make such functionality in the form of a module for node.js

What training materials should I study so that I can develop a similar module, so that in the future I and others can install this grid system through npm?
JSON and C# : Syntax Differences
Published: 2021-01-28 15:06:08

Assume we have a bit of JSON that looks like this:

```json
{
  title: "The lowly Interface",
  url: "https://dev.to/xyz"
},
```
This is the C# equivalent

```typescript

var responseMessage = 
new { 
 title = "The lowly Interface", 
 url = "https://dev.to/xyz" 
};

```
This mismatch in syntax is the 'new' keyword, and the replacement of ':' with '='.

If we return the responseMessage using Azure Functions like this:

```typescript
return new OkObjectResult(responseMessage);
```
The client side browser will receive this information.

	
```json
{
 title: "The lowly Interface", 
 url: "https://dev.to/xyz"
}
```

This is why it's better to use a no-sql database instead of this construct; except when one-off responses are needed.
El código es una carga
Tags: tip, desarrollo
Published: 2021-01-28 14:35:00

---
title: "El código es una carga"
published: true
tags: ["tip", "desarrollo"]
canonical_url: https://marceloandrader.github.io/blog/2021/01/28/el-c%C3%B3digo-es-una-carga/
---

Como profesionales en el área de tecnología generalmente tratamos
el desarrollo de un sistema o aplicación, como la solución
a muchos problemas en el negocio o en lo personal.

Creo que este comportamiento está atado al hecho de que es nuestra
herramienta principal, somos desarrolladores de software, y muchas
veces caemos en el vicio de que si tenemos un martillo todo lo vemos
como un clavo.

Con la experiencia adquirida en mi recorrido profesional, he comenzado
a ver al desarrollo no como un activo sino como una carga,
cuando se escribe software no solo se hace el desarrollo para ese problema
inmediato, tenemos que ver a futuro, los lenguajes, plataformas, etc. requieren
mantenimiento, se deben hacer actualizaciones, se debe verificar que las dependencias
sean estables y soportadas, verificar que haya actualizaciones de seguridad,
se debe entrenar a los colegas o escribir documentación
ya que no siempre vas a estar ahí como el único que sabe cómo funciona un sistema.
Y si eso no se hace se puede caer en un problema ya que
pueden emerger problemas de seguridad de la información.

En este momento de mi carrera prefiero comprar software hecho o rentar como servicio
en el que se incluya todo el mantenimiento, muchas veces esto
resulta más barato que hacerlo dentro de casa, ya que a la larga
en el mejor de los casos los costos de mantener un sistema son altos,
y en el peor de los casos el no hacerlo abre un hueco de seguridad
que creo que ninguna empresa o persona esté dispuesto a tener.

Cuando ya tienes un sistema en marcha, más código también es una carga,
un nuevo requerimiento puede hacerse pero genera deuda técnica
o incrementa la complejidad del sistema, hay que pensarlo bien antes
de decir SÍ a un nuevo requerimiento, me parece que los desarrolladores
de docker tenían esta filosofía: *SÍ es para siempre, NO es temporal*
que quiere decir que si dices SÍ a una nueva característica
la tienes que soportar a futuro, el NO es para pensarlo y ver una mejor
solución sin incrementar la complejidad o deuda técnica y puede volverse
SÍ una vez simplificado y con responsabilidad.

Suscríbete y cuéntame si alguna vez hubieras preferido decir que NO a un nuevo requerimiento.
Active Record Callbacks Introduction
Tags: ruby, activerecord, callbacks, lifecycle
Published: 2021-01-28 14:31:38

All objects created in a rails application have a life cycle, which consists of three general stages: **Create**, **Update**, and **Destroy**. Callbacks allow you to trigger designated methods before, during, or after each stage of an objects life cycle.

Below I will go over some of the basics of an objects lifecycle, as well as a few callback methods and the order in which they will be called.

##**Create**
```ruby
Object.create
```
While this one method may seem to only be creating a new object and saving it to the database, there are actually many steps taking place under the hood to achieve this.
1. Before the object is created it needs to pass its validations.
2. After the object is validated it is given the okay to be created.
3. After creation the item is finally saved to the database

Before, during, and after each of these steps takes places we are able to utilize callback methods to perform actions.

####Callback methods for Create

1. before_validation 
2. after_validation
3. before_save
4. before_create
5. after_create
6. after_save

In order to demonstrate the order the above callbacks are called in we can define a simple user model with a method that `puts` out the name of each callback. 

```ruby
class User < ApplicationRecord

    before_validation :bv
    after_validation :av
    before_save :bs
    before_create :bc
    after_create :ac
    after_save :as
    after_commit :a_com

    def bv
        puts "before_validation"
    end
    def av
        puts "after_validation"
    end
    def bs
        puts "before_save"
    end
    def bc
        puts "before_create"
    end
    def ac
        puts "after_create"
    end
    def as
        puts "after_save"
    end
```

Once we create an instance of the user model we can see in the console the order in which the methods are being called as the item is created and then saved to the database.

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/t5rmjsfnituqt5unc2kp.jpg)

##**Update**
```ruby
Object.update
```
####Callback methods for Update

1. before_validation 
2. after_validation
3. before_save
4. before_update
5. after_update
6. after_save

Callback methods for Update behave very similarly to the create callbacks.
* Note: `after_save` runs both on create and update, but always after the more specific callbacks `after_create` and `after_update`

##**Destroy**
```ruby
Object.destroy
```

####Callback methods for Destroy

1. before_destroy
2. after_destroy

##Conclusion

There are many uses for callbacks, which are covered in greater detail at the Ruby on Rails [guide](https://guides.rubyonrails.org/active_record_callbacks.html).
I encourage anyone creating a Rails project to look into them further and utilize there powerful features!
Learn how to write Hello World to the BSV Blockchain in < 4 minutes!
Tags: javascript, bitcoin, tutorial, html
Published: 2021-01-28 14:22:28

{% youtube pRLWWVyUQTA %}

Follow me on Twitter [@cryptoAcorns](https://twitter.com/cryptoAcorns)

On Twetch [u/145](https://twetch.app/u/145)

Join Twetch [here](https://twet.ch/inv/joshua)!
Front-end Design Skills
Tags: discuss, help, javascript, design
Published: 2021-01-28 14:09:51

Hello everyone. I am a backend software developer who knows some javascript. I know a little bit about react, angular. I want to improve my front-end design skills. Which tools do you use? How to design a components? Any online tools for auto code generations for components? any keywords or resource will help me a lot. Thank you for answers.
Just launched our iSmartLife on Product Hunt!
Tags: webmonetization, productivity, startup
Published: 2021-01-28 14:06:10

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/0uu54z9gi9tp650xwag8.png)

[https://www.producthunt.com/posts/ismartlife-useful-products](https://www.producthunt.com/posts/ismartlife-useful-products)

The main idea is to provide maximum information about products that somehow improve our life. This is not an unboxing of purchases or a presentation of a novelty, but practical and useful products.

Below I will give brief information on the new functionality.

Anyone can add a product, just register. Need to add up to 6 photos taken personally, enter the title, general information, and characteristics. After that, there are 3 forms in which you need to answer 3 questions. Imagine that you meet a friend and he says that he bought a great product that helps him a lot. You ask him 3 questions. Why this product? What did this product help improve in life? How this product used? The answers to these questions are very helpful in determining how useful the product is for you. After answering these questions, it remains only to tell where you bought it, there is a separate field for this.

Any user can expand information on already added products. There are 3 sections for this. Helpful information, helpful resources, and comments. Users can also vote on the product. If the product gets negative votes, it will be excluded.

There are quite a lot of good products, and everyone has products in case of loss of which you will buy them again. Please share information about such useful products.

Thank you for reading to the end)

Happy to hear your feedback and answer your questions