teleren/devto huggingface dataset:
Hello, World!
Tags: beginners, career, codenewbie
Published: 2020-02-26 12:05:58

Bom dia/boa tarde/boa noite!

Meu nome é Luiz, moro em Belo Horizonte e resolvi começar a postar sobre como estou avançando no aprendizado com desenvolvimento e sobre meus dias de trabalho como Analista de Sistema.
Mas primeiro acho que o melhor é contar um pouco da minha história. Sou formado em Análise e Desenvolvimento de Sistemas. Trabalho com TI há aproximadamente 5 anos, começando como estagiário, passando por suporte até onde estou hoje, que é bem recente.
Apesar de ter formado no fim de 2017, não aprendi realmente a programar na faculdade. Fazia as matérias e aprendia somente para passar na prova. Atualmente que percebi que é esta área que realmente gosto e resolvi aprender.

Com isso, a linguagem que escolhi para aprender foi Python. Escolhi por ver que é uma linguagem com uma comunidade grande, não é ligada a nenhuma empresa e está tendo um crescimento e visibilidade muito grande.

Estou usando a plataforma de cursos online [Alura](https://www.alura.com.br/) para meus estudos, junto com alguns livros como [Introdução à Programação com Python: Algoritmos e Lógica de Programação Para Iniciantes](https://www.amazon.com.br/gp/product/8575227181/ref=ppx_yo_dt_b_asin_title_o05_s00?ie=UTF8&psc=1), [Pense em Python](https://www.amazon.com.br/gp/product/8575225081/ref=ppx_yo_dt_b_asin_title_o03_s00?ie=UTF8&psc=1) e [Problemas Clássicos De Ciência Da Computação Com Python](https://www.amazon.com.br/gp/product/8575228056/ref=ppx_yo_dt_b_asin_title_o03_s00?ie=UTF8&psc=1). Também tenho lido vários artigos aqui e em outros sites e acompanhado pessoas da área no Twitter para ficar mais por dentro.

O objetivo das postagens será para fazer um acompanhamento do que aprendi, como estudei e alguns curiosidades também. Pretendo postar semanalmente o meu progresso, para quem sabe um dia auxiliar alguém que possa estar começando e tenha ficado um pouco perdido. No próximo post estarei postando um pouco dos meus projetos que tenho postado no Github.
Hello
Published: 2020-02-26 11:59:58

dsafasdfsda;flk sa;ldf 

adsflasd;fklas df

asdfsadf sadf asd




adfsadfsad
a

Screen Shot 2020-02-20 at 2.34.56 PMScreen Shot 2020-02-20 at 2.34.56 PMScreen Shot 2020-02-20 at 2.34.56 PM
How to Handle Dynamic Import Errors in Vuejs
Tags: javascript, vue, webdev, webpack
Published: 2020-02-26 11:50:19

Nowadays, one of the most challenging parts of frontend development is <b>error handling</b>. Sometimes we don't want to think about the worst cases or we just don't have time to handle them because of deadlines but it doesn't mean they aren't important.

Today, I'm going to talk about <b>dynamic import error handling</b>. Although this topic is about Vuejs, you can see this as a generic solution for other view libraries.

As our application grows, we may want to reduce JavaScript bundle size in order to decrease initial load time and performance. There are couple of techniques to achieve this goal like reducing image sizes, lazy loading and code splitting.

Code splitting is a technique which allows you to split your JavaScript bundles into different parts which can be loaded at anytime in the future. We can split route codes with JavaScript's <b>import()</b> method but due to nature of it, it returns a promise after completion or failure of an asynchronous operation.

<h2>How</h2>

In Vuejs, we can set import methods return value to component key of route object like below. With this way JavaScript bundle of About page will be only called if user navigate to it.

![Not handling error](https://thepracticaldev.s3.amazonaws.com/i/9pzqap8h3dfwoyjrh72e.png)

With this code above, we only handle the success scenario. If we want to handle failure case, we can create a generic component which isn't imported dynamically and then return it on catch like below.

![Handling error](https://thepracticaldev.s3.amazonaws.com/i/qkalbfdjs4j4giwnxlyq.png)

This generic DynamicImportError component will be loaded on initial request. What if our initial request fails? Well... I think that is different problem.

<h2>Conclusion</h2>

You can say that DynamicImportError will increase initial bundle size, but it is a dummy component and it only informs visitors that something went wrong so it won't have a big size. In my opinion it has a pretty low opportunity cost.
Atomic Habits Book Summary
Tags: book, summary, habits
Published: 2020-02-26 11:15:46

---
title: Atomic Habits Book Summary
published: true
date: 
tags: book, summary, habits
canonical_url: https://bhavaniravi.com/blog/atomic-habits-book-summary
---

# Atomic Habits

> The big idea 1% improvement = 37% better

## Why should you buy the book?

I was as skeptical when I saw all the hype this book was created when it came to the market, I read it last year in an audiobook and wrote a short piece. This year I took 3 weeks to read and assimilate every page of this book.

Good work creates as much noise too. So you should grab a copy soon. I would suggest a paperback since you would want your friends to read it too.

## Top 5 Takeaways

1. Habits are easy to form if it's based on building your identity
2. Make good habits easy and satisfying
3. Showing up is as important as doing things
4. Cue - Desire - Response - Reward
5. [Motivation is overrated](https://medium.com/@bhavaniravi/why-motivation-alone-is-not-getting-you-anywhere-atomic-habits-cc3eb1cbe2d2)

Read full blog and techniques from the book at https://bhavaniravi.com/blog/atomic-habits-book-summary
Clutch Celebrates VIBIDSOFT’s Excellence!
Published: 2020-02-26 10:53:59

There’s a reason why outsourcing has become such a popular business model — it’s a great way for businesses to lower operational costs and streamline operations while ensuring growth and innovation.

It might seem intimidating to hire a company from across the world, but our team at VIBIDSOFT will quickly dispel such fears and prove that investing is our services is more than worthwhile. We’re an Indian-based software outsourcing firm that provides offshore and onshore software development and IT services.

What sets VIBIDSOFT apart from other outsourcing companies is our focus on delivering cost-effective, timely, and high-quality services that satisfy our clients. We also know that no two businesses are alike — so no two development processes should be alike, either. We tailor our services and approach to each individual client’s objectives.

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

What else sets VIBIDSOFT apart? The fact that Clutch, the premier ratings and reviews platform in the B2B industry,

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

recently recognized us as a top web development company! The Clutch Leader Awards recognize a company’s commitment to building their expertise, providing outstanding customer service, and producing top-tier results for clients. Clutch highlights the highest-ranking firms across industries and locations, and we’re thrilled to be listed among the leading companies on the site!
“We are feeling immensely proud to be top web developer in India.” — CEO, 

To be eligible for a Clutch Leader Award, companies must show a remarkably strong capacity for delivering high-quality work to their clients. One of the main ways that companies can show this is by collecting client reviews on their Clutch profile, so we’re incredibly grateful to our clients that have taken the time to review our work and abilities as a software partner! We’re proud to report that we have a perfect 5-star rating.

https://clutch.co/press-releases/recognizes-150-best-web-developers-india

The above link shows the results of Clutch’s Leaders Matrices on January 23, 2020. Vibidsoft stands 86th in Top 150 web developers from India.
Here’s what a real estate company had to say about VIBIDSOFT after our team built their website from scratch:

“I was impressed with their integrity and their relentless efforts to solve problems. They earned my trust and I’m planning to use them again.” — CEO, Unlocked Real Estate
They also noted that we’re capable of doing “almost anything in the IT world.” That is something that we really appreciate hearing, since we strive to be the top company in the IT industry!

To learn more about our services, please don’t hesitate to reach out — we’d love to hear from you!
Lighthouse with boat
Tags: saas, css, html
Published: 2020-02-26 10:44:39


After a while, I got my hand dirty with code. I thought I have to refresh everything. But nothing has changed. This is the outcome of understanding coding.

Here comes my creation,
{% codepen https://codepen.io/sabitha_kuppusamy/pen/MWwbQwJ %}


Believe me, understanding coding never dies!
Unit Testing through out my career
Tags: unittesting
Published: 2020-02-26 10:42:07

When I started my career as a Software Engineer. I remembered very clearly I was taught how to cover each and every possible conditions of my source code. It was not automated back then, but it did help me ensure I am delivering code as I intend to deliver them.

As my career progress, automated unit tesing because a standard, and for some reason _code coverage_ became a thing. This was at a point where I am working at a much senior capacity, and I recalled clearly the negative impact of this _code coverage_ to developers. I saw unit tests hitting every simple if statements and properties for the sake of hitting them. I hated this as vowed to do everything I can to make sure this does not happen again.

With the popularity of Test Driven Design (_TDD_), I immediately jump at the chance to apply it on my projects. I believed having the end result in mind would help me build better software and would not need to worry the _code coverage_ requirement, as it would come naturally. Making sure I only built what I have in mind, ensure I would hit every single code I planned to build and nothing more. Don't get me wrong, I did not write test first, and see them fail, and write the code. I basically wrote the test and write the code to make sure the test passed. It might not be for everyone, but it does work for me.

But still, updating code results to breaking tests. Then, I'll have to recall why I did what I did. It seems like I could not remember the piece of code I've written a week ago, let alone the unit tests that comes with it. Maintaining the tests became a nightmare, and getting more and more troublesome. And let's face it, if a tight deadline is in play the first thing to be compromised are the unit test.

After all these years, I am wondering how would unit test really help me. Recently, I've applied a different set of thinking on the way I've done unit tests. I'm writting unit test to safeguard against future *me*. I wrote unit test to reflect what I intend the class to do and to make sure I don't update it to something I would not want it to do. I'm still thinking on the _TDD_ mindset, but I focus more on what I intend the class' responsibility are and what should not be added to it's responsibility later on. 

For example:

```
public class CarFactory{
    public Car Create(CarType carType)
    {
        ...
    } 
}
```

In the above example, I design my factory class to create cars but I am not intending it to produce anything else. If I want to create a boat, my intention is to introduce another factory (_BoatFactory_). So, I'll write unit tests to ensure it does produce a car, based on carType. But, I'll also add an additional test to make sure any of it's public method should not produce anything else. This way, I'll make sure I won't break the design I defined now. And if I do, there is a conscious decision of doing it then.

I know this post might not be for everyone, but I hope it does spark some idea into somebody brilliant. c",)
Use Tabs For Indentation
Tags: beginners, javascript
Published: 2020-02-26 10:41:55

{% devcomment lmlc %}

I have decided to use only tab for all my indentation going forward. I used to use only space, but my mild inconvenience is nothing compared to helping people with visual difficulties participate in the communities.

Let me quote the linked [reddit post], which I fully agree with:

[reddit post]: https://www.reddit.com/r/javascript/comments/c8drjo/nobody_talks_about_the_real_reason_to_use_tabs/

> aren't we all making our codebases worse as a workaround for the deficiencies in these websites we enjoy? why are these code-viewing apps missing basic code-viewing features?

> in the tabs-vs-spaces debate, i see people saying "tabs lets us customize our tab-width", as though we do this "for fun" — but this is about meeting the real needs of real people who have real impairments — how is this not seen as a simple cut-and-dry accessibility issue?

About that "how": because people with disabilities are a minority, so they do not enter our thought processes when we focus on a "minimal viable product". Accessibility is most of the time an afterthought. But late is better than never. Let's think about how to make using tab indentation more convenient.

Unfortunately most style guides recommend space indentations. Most code formatters turn tab indentations into spaces by default. Where I can configure them, I will configure them to use tabs.

#### JavaScript (Prettier)

```javascript
{
  useTabs: true
}
```

[useTabs](https://prettier.io/docs/en/options.html#tabs)

#### JavaScript (eslint)

```json
{
  "indent": ["error", "tab"]
}
```

[indent](https://eslint.org/docs/rules/indent)

#### Rust (rustfmt)

```toml
// rustfmt.toml
hard_tabs = true
```

[hard_tabs](https://github.com/rust-lang/rustfmt/blob/master/Configurations.md#hard_tabs)

#### Haskell (Emacs)

[haskell-tab-indent-mode](https://github.com/spwhitton/haskell-tab-indent)

#### Go (gofmt)

It uses tab by default!

If you do not see the language or the formatter you are using above, contribution is always welcome!

Discussions on making this default in each language:

#### Rust (rustfmt)

{% github https://github.com/rust-lang/rustfmt/issues/4067 %}
Writing Maintainable Unit Tests
Tags: tdd, testing, softwaredesign, training
Published: 2020-02-26 10:29:58

I’m very proud to announce that my [first video course](https://www.udemy.com/course/writing-maintainable-unit-tests) has been published on Udemy. This course teaches software developers how to write maintainable and readable unit tests. It’s for people who are serious about investing in their own skills.

The launch sale opens today with an additional discount. You can use coupon code `TDD-IS-AWESOME` to get a huge saving **until Monday, March 2, 2020**. Have a look at the [curriculum](https://www.udemy.com/course/writing-maintainable-unit-tests) and let me know what you think. Any feedback is very much appreciated.
Where are we going?
Tags: meta, design, ux
Published: 2020-02-26 10:20:23

For the last couple weeks we've been working pretty hard to improve the UI & UX on DEV. Our efforts so far were focused around the home page, but mostly under the hood. There's a lot of spaghetti in the frontend codebase and there were temporary solutions that were never replaced with  more sustainable ones. Hence, the work that we’re doing right now is not really visible.

But some of it is.

{% post https://dev.to/devteam/shipping-home-page-cleanups-2d3i %}

First of all, thank you for feedback! We really appreciate it and you helped us spot and fix many bugs. 🙌

I mentioned a couple times that what we’ve shipped so far is just a step towards something bigger. It's still far from being ideal but we’ve had to make some changes here and there to make it easier in future to implement new things. This is an ongoing process and will take time.

Today I'd love to show you a sneak peek of where we want to be in some time. Again: it's not ideal, it's not finished and it keeps evolving (like literally every day :)). But I still think it's worth sharing with a broader audience!

![Home page preview](https://dev-to-uploads.s3.amazonaws.com/i/bhs28idhma3xv91tyviy.png)

From yours, the community perspective, it should be more readable, easier to navigate and more fun to use. From our perspective this will be a step towards not only a more maintainable design system but also a North Star for UI improvements in other areas and views.
Plantillas HTML5 <template> | Formulario
Tags: codepen
Published: 2020-02-26 10:16:25

Para utilizarlo, pruebe escribiendo un título en un contenido en el formulario. Una vez que hayas terminado presione el botón Agregar o las teclas <kbd>Ctrl</kbd> + <kbd>Enter</kbd>.

Esta acción formarán unas tarjetas, colocando la última de primero.

Por ahora, esto no es funcional para entornos de producción pero puede ayudar al desarrollo de herramientas similares.

{% codepen https://codepen.io/dlunamontilla/pen/jOPyJmG %}

Permite colocar 30.000 caractereres, a la vez que los cuenta.

## Translation to English

To use it, try writing a title on a content on the form. Once you're done, press the Add button or the <kbd>Ctrl</kbd> + <kbd>Enter</kbd> keys.

This action will form some cards, placing the last of first.

For now, this is not functional for production environments but may help the development of similar tools.

Allows you to place 30,000 characters, while you count them.
Rewriting to Haskell–Intro
Tags: functional, haskell
Published: 2020-02-26 09:55:53

You can keep reading here or [jump to my blog](https://odone.io/posts/2020-02-26-rewriting-haskell-intro.html) to get the full experience, including the wonderful pink, blue and white palette.

---

At Lunar Logic we use an [internal web application](https://lunarlogic.io/design/stream) to handle announcements. Stream has been used by the entire company for the last 6 years or so. Over time we have discovered it's a great place to run tech experiments: production enough to feel real but internal enough not to cause too much damage if stuff goes wrong.

Stream was born as a Rails application, then transitioned to Rails API + Ember and after that Rails API + Elm. Rewriting the frontend to a functional language got some of us hooked into Functional Programming. As a matter of fact, on Slack somebody said "We've rewritten the frontend 100%. Do we really want to not have types in the backend too? 😏". This seed has been growing for a couple of years, until today we decided to take action.

We gathered the FP aficionados in Lunar and decided to rewrite the backend to Haskell. In particular, we want to focus on the following goals:

- no commitments, we will go on as long as it's fun;
- making Haskell accessible to newcomers;
- creating a proof of concepts for future projects;
- small valuable iterations like we did for [AirCasting](https://blog.lunarlogic.io/2019/elm-tricks-from-production-migration/).

I've personally worked in Ruby and JavaScript for a long time and the only [real contribution](https://odone.io/posts/2019-08-26-building-a-blog-in-haskell-with-yesod%E2%80%93giving-back.html) I made to OSS was to Yesod 😅
We truly believe Functional Programming is a great tool and perfect place to give back, thus together with [Alex](https://www.linkedin.com/in/alexander-suminski/), my partner in crime for this project, we want to spread the joy. Therefore, we decided to share with the world our journey rewriting Stream to Haskell.

Stay tuned!

---

Get the latest content via email from me personally. Reply with your thoughts. Let's learn from each other. Subscribe to my [PinkLetter](https://odone.io#newsletter)!
What is your experience as a freelancer developer with TDD/ATDD/BDD and CI/CD? When do you use them? How often do you use them?
Tags: survey, freelancing, cicd, tdd
Published: 2020-02-26 09:45:05

Recently, I had a tough discussion with a friend who wants to move to the freelancing world. We were talking about _Unit Tests_ and that he implements them in everything. I told him that I'm not sure if this would work in his new life as a freelancer since it would increase his costs and time.

This was a difficult argument because his logic made sense since he has been working for a large corporation all his life. However, when you're working as a **Freelancer** _-from my knowledge-_ all is about your **Delivery Time** and **Costs**:

> However if you are new to freelancing and you need clients it can be difficult to tell a client that a project will be around double the time and cost.

> _Source: https://www.crondose.com/2016/09/use-tdd-on-freelance-projects/_

And I agree with the comment above. I have more than one friend whose work is strictly freelancing for over 5 years. Their jobs are more they need to deliver me X App with this budget for Y date or they need to deliver me certain Plugin/Feature for my website for Y date with this budget.

I need to add that my friends' clients are not only StartUps but medium/large organizations around the world. I admit that certain organizations might tell you to implement these criteria like TDD or CI/CD, but I don't believe is a common practice.

If there is something I am sure of, it is if they had started to implement all these functionalities on pipelines, unit tests, etc. for each project that comes from completely different clients, their costs would have increased considerably and most likely hardly any company would want to pay. Especially, that in many cases they do not deliver the source codes, only the final app/plugin.

### How about you as a **_Freelancer_**?

Have you ever used anything of these features like pipelines or unit tests? As I said before I'm from the corporate side and this is a common practice that is almost standardized. Nevertheless, freelancing is becoming more popular and this is uncommon and hard to implement in this area _-in my belief-_.

### Follow me on:

|  Personal  |  LinkedIn  |YouTube|Instagram|Cyber Prophets|Sharing Your Stories|
|:----------|:----------|:------------:|:------------:|:------------:|:------------:|
|[![Personal](https://raw.githubusercontent.com/FANMixco/federiconavarrete/master/img/favicons/favicon.png)](https://federiconavarrete.com)|[![LinkedIn](https://i.stack.imgur.com/idQWu.png)](https://www.linkedin.com/in/federiconavarrete)|[![YouTube](https://i.stack.imgur.com/CFPMR.png)](https://youtube.com/c/FedericoNavarrete)|[![Instagram](https://i.stack.imgur.com/PIfqY.png)](https://www.instagram.com/federico_the_consultant)|[![RedCircle Podcast](https://i.stack.imgur.com/4XICF.png)](https://redcircle.com/shows/cyber-prophets)|[![RedCircle Podcast](https://i.stack.imgur.com/4XICF.png)](https://redcircle.com/shows/sharing-your-stories)|
WiFi firmware fails after installing Ubuntu on Lenovo IdeaPad Flex15
Published: 2020-02-26 09:28:21

I just got a brand new laptop. And of course, as any good dev would do, I tried installing Ubuntu on it. I ran into a huge issue, where the firmware for the `iwlwifi` device/drivers. It kept failing post-boot with a `UCODE=-110` or something like that. It took me three hours but I finally fixed it. It ended up having to do with `iwconfig`'s power management. You can disable this by doing the following in a terminal.

 - Boot into Ubuntu
 - After login screen appears, press `Ctrl+Alt+F2`. (You might need to hold down the function key as well, which would be `Ctrl+Alt+Fn+F2`).
 - Once at the terminal screen, login with your username and password.
 - Next, enter the following command: `sudo -i`
 - This will prompt you to enter your password again, and by doing so you will be logged in as root.
 - Now, enter `echo "options iwlwifi power_save=0" >> /etc/modprobe.d/iwlwifi.conf`
 - `reboot`
 - In the grub boot menu, select `Advanced Options`
 - select `ubuntu-linux-5.0.28-generic`

### Additional Steps
There are a few additional things I did that I am uncertain as to whether or not they might have had an impact on my success.

 - Edit grub and add `arm=off` to GRUB_DEFAULT_COMMAND.
 - Boot into your ubuntu installation media, and open a terminal.
   - `sudo apt update`
   - `sudo apt upgrade-dist`
 - Boot into the grub of the installation media, and type `c` on your keyboard
   - This will bring up a simple grub terminal
   - enter `acpi=off`

That's all I've got folks. I thought I'd write this down just incase anyone else ran into trouble just like me. Cheers!