teleren/devto huggingface dataset:
First Post - A new journey begins
Published: 2020-09-24 23:35:00

So many times I decided to start making some blog posts but I always heard a little voice that says the following statement: "What are you going to write in your blog? There is a huge amount of posts writing about the same thing."<br/>

Today, don't know why, but I'll start my blog 💪 🙂<br/>

Let me introduce myself<br/>

### Hi! I'm Cesar 👋
I'm a software developer. I was born in 1987 and grew up in Quilmes (Argentina). I started coding when I was 15 in high-school.<br/>

I've written code for Hewlett-Packard, Accenture, Lagash, N5, Virtualmind, Morean to name a few (Some are bigger than others)<br/>

In all these companies I've learned a lot and I am very grateful for all the experience that I've achieved through the years.<br/>

For two years I was an educator for Acamica, it was a really amazing experience.<br/>

The languages I used were: Pascal, C, Visual Basic, Visual Basic .NET, C#, Javascript<br/>

Nowadays my mainly stack are these:<br/>

* Languages: Javascript, Typescript

* Tech: NodeJS, React, Redux, AWS (Amazon Web Services), Serverless, ElasticSearch, Git, Mocha, Chai, Jest, Express.

* Cloud (AWS): IAM, CloudFormation, DynamoDB, EC2, IoT, Kinesis, SQS, Lambda, RDS, S3 

In my free time, I love listening to music, play video games (I'm an Xbox fan), stream on twitch.<br/>

I used to play baseball and used to have a band (I'll make a post about them in the near future)<br/><br/>

So, that's about it.<br/>

Please follow me or contact me!!<br/><br/>

Twitter - [https://twitter.com/cesmunoz35](https://twitter.com/cesmunoz35)
LinkedIn - [https://www.linkedin.com/in/cesar-muñoz-61675949/](https://www.linkedin.com/in/cesar-mu%C3%B1oz-61675949/)
Github - [https://github.com/cesmunoz](https://github.com/cesmunoz)<br/><br/>


P.S: It's my first time writing a post in English. I hope it can be understood well. Also making post are a way to improve myself 🙂. Sorry for all the grammar issues
When Job ads look ideal but the interview....
Tags: discuss
Published: 2020-09-24 23:26:00

How many times have you encountered an employment ad which practically 'has your name written in its'?. You check each item on the list and see that the 'requirements' and the 'nice to have' match your education and experience.
Then you write the best cover letter, modify your resume accordingly and send them via e-mail.
Days go by (sometimes only hours) and you receive a response from the company's HR or Hiring Manager. In the conversation/email this person is impressed by your resume and asks to schedule an interview in person on a certain day and at a certain time. You are happy, you accept the agreed date.
When you arrive at the place of the interview, you find a place in which you imagine what it would be like to work there, right? while you are somewhat nervous (something normal) prior to the interview itself.
Once the interview has started and the interviewer(s) start talking about the position shadowing sensations comes to your mind and makes them feel that the position was not for you, why?
-The requirements are the 'nice to have'
-The 'nice to have' are the requirements for the position.
-New requirements appear that maybe you have ... or maybe not.
-Or worst…the interviewer(s) have no idea what the company really needs.

When any of these cases appears in the interview, it is better to clarify if you are misunderstanding things or wasting your time. Keep a printed copy of the ad at hand.

If you misunderstood something just smile, maybe apologize, and continue with the interview.
However, if you notice in the interview the position is not for you it is better to stop, say thank, and leave. Yes, you wasted your time, your resources, and sometimes dreams. Blame them and take it as experience.

I cannot tell if some HR / Hiring Managers are doing that on purpose ( in order to look busy and then justifying their own position at the company) or there were some typos, mistakes, misunderstood, or just because posting a job ad is free nowadays so these people do not care to write the proper ad.

What do you think?
Aha! The feeling of completing the Start.
Tags: opensource, github
Published: 2020-09-24 23:10:30

Honestly... The 1st and 2nd week has been the best starting weeks I had so far. Learned tons of things regarding opensource, programming, in general the whole development. I started of my week in a not so happy note as I lost my grandmother last week, so was not on my best mood. The opensource slack communinty played a huge part on the motivation that I needed to go back to coding. Thank you to the CDOT Slack community by staying super active!

I created my first ever CLI named nlinks. what nlinks does is, it goes thorugh a list of websites and comes back with a result. If the link is working, it will show up as "GOOD", "BAD" if it isn't, and "UNKNOWN" if it's lost or due to timeout. Had so much fun making it as it was my first time doing it.

You know what was more fun? Yep, interacting with the open-source world. I had few people reviewing my code and suggesting very good examples and pointing out errors. This not only helped me learn, it also made me proud to be a member of the open-source community. They always have your back (regarding development). Ohh, Guess what? I also tested and reviewed few programs during this week. I issued handfull of errors, fixed, and made new friends. I found something I had common with the errors I found, it was that when we code, we tend to forget very small details. I was able to fix all of my issues as it wasn't major. The problems that I issued to others were also fixed. 

(I'll add my github as well as the ones that I found issues in at the end of this blog)

Well, to conclude on this week, started of with 0 energy, now looking forward to what open source has next. I am very eager to learn about pull request which I'll be doing the upcoming week. Oh, and I am getting ready or Hacktober, gotta fix some issues. Till then, Thank you.

My GitHub (Nlinks) repo -
https://github.com/Niaz-Ul-Haque/nlinks

Found/Fixed/Recommended some issues in - https://github.com/sanji11/find-broken-link
https://github.com/joelazwar/linkChek
What are your "must reads" for programming beginners?
Tags: discuss, beginners, career, reading
Published: 2020-09-24 22:58:10

---
title: What are your "must reads" for programming beginners? 
published: true
description: We all start somewhere. What was the most useful thing you read when you were just starting out? 
tags: discuss, beginner, career, reading
cover_image: https://dev-to-uploads.s3.amazonaws.com/i/dm2v2oyhaeml20dcvfqy.jpg
---

We all start somewhere. What was the most useful thing you read when you were just starting out?
How to create Helpers function in Laravel 8 (Global function)
Tags: helper, laravel, php, webdev
Published: 2020-09-24 22:35:08

Good day, today, we are going to create a helper function in laravel 8, this is the same method in creating a helper function in laravel 7. Helper function helps us to create a function that can be called anywhere in our app. That is a global function that can be called both in the views and also in the controller.
Laravel and PHP also provide some basic functions that can be called anywhere, however, there are some times we might need to write our own custom functions that we will need both in the controller and in the views or other parts of our app.
Today, we are going to write a helper function to get the email address of the user that is login into our app. This is a very simple function, just for illustration. But the logic can be applied to any other function, provided the function is correct.

Click on my [profile](https://dev.to/kingsconsult) to follow me to get more updates.

### **Step 1: create a helper file**
Go to **app/** directory and create a file called helpers.php
 ![app directory](https://res.cloudinary.com/kingsconsult/image/upload/v1600983796/laravel%208%20helpers%20function/1_iy6ecr.png)
### **Step 2: Write the helper function**
![user email function](https://res.cloudinary.com/kingsconsult/image/upload/v1600983796/laravel%208%20helpers%20function/3_hhipb0.png)
### **Step 3: Include it in our composer.json**
we need to include the helpers.php file in our composer.json, so that when we autoload, it will load the file.
in the value of "autoload" key, add "files" as a key, with an array as the value, the array will contain **"app/helpers.php"**.
![composer.json file](https://res.cloudinary.com/kingsconsult/image/upload/v1600983796/laravel%208%20helpers%20function/2_wnl60v.png)
### **Step 4: Regenerate the  list of all classes in the app**
> composer dump-autoload

![composer.json file](https://res.cloudinary.com/kingsconsult/image/upload/v1600983796/laravel%208%20helpers%20function/4_yvq33a.png)

That is all, we can now call our function anywhere in our app
**In view**
```
 <div>
     @php
        $email = user_email();
     @endphp

        {{ $email }}
 </div>
```
** In controller**

```
  $userEmail = user_email();
```
![composer.json file](https://res.cloudinary.com/kingsconsult/image/upload/v1600986128/laravel%208%20helpers%20function/5_g7aw0n.png)

You can follow me, leave a comment below, suggestion, reaction, or email, WhatsApp or call me, my contacts are on the screenshot. Visit my other posts
{% link https://dev.to/kingsconsult/how-to-create-modal-in-laravel-8-and-laravel-6-7-with-ajax-m25 %}
{% link https://dev.to/kingsconsult/laravel-8-auth-registration-and-login-32jl %}
{% link https://dev.to/kingsconsult/laravel-8-crud-bi9 %}
Day 224: Hardware
Tags: hiphop, code, coding, lifelongdev
Published: 2020-09-24 21:53:27

_liner notes_:
- Professional : Had our larger team meeting. Got to demo I've been working on this week. Everything worked! That's always good. haha Made sure I was close to the WiFi and to close a bunch of tabs and extra programs. haha Rest of the day, getting together all the different screen recordings together for the video tutorial I'm putting together.

- Personal : Edited the recording of the radio show and submitted it to the station so it will be played on air. Can't wait till we are able to go back into the studio and do the show live! Other than that, went through tracks for this week's radio show.

![Green moss covered gray mountains with a river running in the valley in Fjaðrárgljúfur, Iceland](https://dev-to-uploads.s3.amazonaws.com/i/vrr0dozat7bsjj9670rc.png)

Going to spend some time and finish the screen recordings. Maybe do some audio recording also. I have everything scripted, just have to get it done. Might as well finish your plate. haha. The hardware to put the solar panels on my roof are supposed to be delivered tomorrow so I may try to work on that.

Have a great night!

peace piece
Dwane / conshus
https://dwane.io / https://HIPHOPandCODE.com
{% youtube hwrEjx3Zqm4 %}
What's YOUR Linux Distro of choice? (and hurdles?)
Tags: linux, discuss
Published: 2020-09-24 21:49:57

If possible, please also tell about

- Hardware, or base PC / laptop
- Package manager, or compiling, and its failures
- Desktop environment
- Comparisons between your past choices
- ext4 vs btrfs filesystem, Swap

Also, tools to cleanly migrate to a new distro?
Performance testing web hosts, minimizing DOM reflow, and the Xbox pre-order mess
Tags: performancematters, performance, monitoring
Published: 2020-09-24 21:46:18

Hi folks, 

Welcome to Performance Matters. The recording for last week's webinar with Octopus Deploy is [now available](https://www.youtube.com/watch?v=q3vd2j2wj-M&t&ab_channel=Raygun)! See how with the right tools and workflow in place, you can deploy code at speed, while ensuring your customers are having a lightning-fast experience. 

For this edition, we're digging into the top web hosting services of 2020, website speed repercussions, minimizing DOM reflow, and the mess that was the Xbox pre-order launch. 

Enjoy! 

Your Curator 

-----------------------------

### FEATURED ARTICLES

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

<strong>The 7 fastest web hosting services of 2020</strong>

Planning on building a website? Or looking to swap from your current hosting provider? Why not dig into the most performant hosting services out in the market today, with detailed insights into the findings. 

[Make an informed decision](https://www.bitcatcha.com/research/fastest-web-hosting-services/)



------------------------------

<strong>How fast should a website load?</strong>

We all know that fast load times are important, but have you ever seen the compelling metrics behind why? 

[Inform yourself](https://www.hobo-web.co.uk/your-website-design-should-load-in-4-seconds/)

------------------------------

<strong>Minimizing DOM reflow</strong>

Discover how a DOM reflow/ layout shift can occur, the negative performance implications, and more.

[Learn more](https://medium.com/better-programming/web-performance-dom-reflow-76ac7c4d2d4f)

------------------------------

### BUG OF THE WEEK

<strong>Xbox pre-orders are causing mass retail website crashes</strong>

Retail sites are crumbling under the pressure of millions of eager gamers this week, all flocking to be the first to try the new Xbox Series X/S. Retail giants such as Walmart and Target were among the affected, with many more falling victim. 

[Find out what happened](https://screenrant.com/xbox-series-x-pre-order-sold-out-crash/)

------------------------------

### COMMUNITY

<strong>Hacktoberfest 2020</strong>

Are you looking to contribute to more open-source projects? Then you need to get involved in Hacktoberfest, the event encouraging participation in the open-source community through swag incentives. It starts in October - don't miss out! 

[Start contributing](https://hacktoberfest.digitalocean.com/)

------------------------------

If you think Performance Matters is pretty great, why not [sign up](https://performancematters.dev/) to receive it in your inbox every week? 🙌

------------------------------

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

------------------------------
Working from elsewhere
Tags: 100daystooffload
Published: 2020-09-24 21:39:29

My work-life blend has taken a positive step forward in the last fortnight, and I feel quite buoyant.

After my much-needed week off in July, I spent the next few weeks being kinder to myself but still working comfortably hard. After about six weeks of that, I spent a little under a week with my relatives again, although this time I wanted to test the feasibility of working whilst being there. Therefore this wasn't time off, but still it had a fantastic effect on my wellbeing. I think there are two main reasons for this:

1. Being around people
2. Realising what constitutes true productivity

## The social side of life

I am a comfortable introvert and do not need much social engagement. But despite that, it appears that I benefit from some. Having a few people to talk to in person each day helped to reset my mind a bit. Sometimes it's easy to fall into your own mind and if it's not pleasant in there, it's hard to deal with. Other people help keep you above water in that sense, in ways as simple as having fairly dull conversations about nothing in particular.

## Productivity

The big concern about this experiment was that I wouldn't be able to do my job effectively. With all the distractions of other people, I wouldn't feel the imperative to work, and there would always be something better to do.

To my great surprise, it was easy to get into a good work routine. This was obviously a good result, as it opens up the possibility of spending more time with my family on a regular basis. But just as importantly, it reinforced the fact that my productivity is not tightly coupled to time spent at the keyboard. I most likely did not spend the same amount of *time* working during those days, but I have no doubt that I was just as productive there than I am at home. For all the distraction and time spent with other people, I could still produce my work effectively, and I am confident that there would be no obvious difference between my support to my team and the wider project whether I was working at home or at my parents'.

*I'm publishing this as part of 100 Days To Offload. You can join in yourself by visiting [https://100daystooffload.com.](https://100daystooffload.com)*
Bootcamp Java Developer Day #5
Tags: java, bootcamp
Published: 2020-09-24 21:33:24

#### Day 5:

I was on the second topic of course 6 "Basic Development in Java" when I got a version incompatibility. It was the same problem I had last year when I was building a service in Java EE. So I uninstalled everything Java related (I had like 7 java versions installed) and performed the steps of Installation and Environment again. 

In addition, I bumped into a problem when I tried to stop the applications of the second topic using IntelliJ. I decided to run and stop the applications using the terminal so I can avoid this issue.


#### 6) Restarted: Basic Development in Java

- Topic 1: Java - Installation and Environment 

Today I only installed the following:
1. **Java** JDK
2. **Gradle** Build Tool 
3. Apache **Maven**
4. **IntelliJ** Idea!

Installed wrapper to Gradle and to Maven.

- Topic 2: Java - Project Creation

I started two projects using **Spring Initializr**, one in Maven and the other in Gradle. Executed both of them in IntelliJ and on Command Terminal (and found errors.) 

- Topic 3: What we need to know about Java?

It was a summary about Java, how it compiles the code, javac, bytecode, java virtual machine, the java versions, *.java and *.class files. At the end, it was shown how to create, compile and execute a file in java using the command line.

*Hello!*

```java
public class Hello {
        public static void main(String[] args) {
                System.out.println("Hello!");
        }
}
```
5 useful TypeScript tricks
Tags: webdev, typescript, javascript
Published: 2020-09-24 21:00:51

## 1. Create a type checking function

```ts
interface IDog{
   name:  string;
   age: number;
   kidFriendly: boolean;
}

interface ICat{
   name: string;
   age: number;
   activityLevel: number;
}

type Animal = IDog | ICat;

/** Is the animal a dog ? */
const isDog = (animal: Animal) : animal is IDog => (animal as IDog).kidFriendly !== undefined;

if(isDog(animal)){
   console.log(animal.kidFriendly);
}
```

More information here: 

{% link https://dev.to/basilebong/custom-type-guards-in-typescript-dg8 %}

## 2. Set all properties of an interface to optional

```ts
interface IDog{
   name: string;
   age: number;
   kidFriendly: boolean;
}

const dog : Partial<IDog> = {
   name: "Rex"
}
```

## 3. Get the type of the parameters of a function

```ts
const walkDog = (dogName: string, distance: number) => { /** ... */ }

const params: Parameters<typeof walkDog> = ["Rex", 48];
```

## 4. Use Setters and Getters

*Setters and Getters also exist in plain JavaScript. Still, they are very useful in TypeScript (and other languages).*


```ts
class Dog{
   private _name: string = "";

   get name(): string{
      return this._name;
   }

   /** Check the length of the name before setting it **/
   set name(newName: string){
      if(newName.length < 8) {
         throw new Error(`The dog's name needs at least 8 charachters`)
      }
      
      this._name = newName;
   }
}
```

## 5. Optional chaining

*Optional chaining has recently been added to JavaScript (ECMAScript 2020).*

```ts
let cat?: ICat;  

/** With optional chaining **/
let animal = cat?.fur.length;

/** Without optional chaining **/
let cat = cat === null || cat === undefined ? undefined : car.fur.length;
```
I'm Participating in Hacktoberfest 2020
Tags: hacktoberfest, opensource
Published: 2020-09-24 20:57:54

![Hacktoberfest](https://hacktoberfest.digitalocean.com/assets/HF-full-logo-b05d5eb32b3f3ecc9b2240526104cf4da3187b8b61963dd9042fdc2536e4a76c.svg)

Like last year, I'm Participating in Hacktoberfest 2020. Hacktoberfest is the most awaited event in a year for all the opensource contributors. 
The 2019 year was the first year of my opensource journey, within this one year I gained a lot of knowledge about the opensource culture. I hope my contribution adds value to an opensource project.
localhost + service worker & caches = serve old app
Tags: webdev, beginners, localhost, cache
Published: 2020-09-24 20:44:16

I will share with you an issue that occurred while I was developing a new app. When I try to open the new app with the localhost at the port 3000 it always opens the old app :(

You can imagine what I felt, stop the server, and then start again many times and I couldn't believe why the old app continuously appears???

I googled for a solution to kill that old app.

My Sincere friend StackOverflow help me, please then I found a [solution](https://stackoverflow.com/questions/39632667/how-do-i-kill-the-process-currently-using-a-port-on-localhost-in-windows). Open cmd and `run netstat -ano | findstr :<PORT>` and then a list will appear and you can kill it by `run taskkill /PID <PID> /F`

Wow, I killed it. let's try to open our new app in confidence. What???? No, the old app is still alive :(

I tried many other solutions but it is still alive!

Take a breathe and think and think again and suddenly I asked myself what weapons the old app had to beat me in this game?? The old app is a weather app with a manifest file and service worker and cachhhhe. I google again and found [this solution](https://stackoverflow.com/questions/47953491/chrome-loading-cached-files-on-localhost). Now -a loud hahaha- I know how to kill it :D

![Game over by Darius Dan Blue
 from flaticon](https://dev-to-uploads.s3.amazonaws.com/i/avliwksofqehjd6pxaij.png)

Just by clearing storage from developer tools. What caused the issue is that chrome was loading cached files for the old app. So every time I tried to open at the port 3000 it was opened from caches.

Thanks for reading! If you meet a similar issue leave a comment and share how you did solve it.

Don't forget to follow me to get real programming problems that you may face and get solutions for them.

Hope this article helps, feel free to share it with your friends, any feedback will be appreciated :)
Noodel.js, a beautiful, intuitive user interface for content trees
Tags: showdev, webdev, javascript, ux
Published: 2020-09-24 20:29:10

Hello DEV community!

I'm here to share my project, Noodel, a user interface for presenting hierarchical content. It is based on a 4-way scroll-snap mechanism that allows you to navigate by just moving up, down, left, and right.

### Demo

The best way to get how it works is to :point_right: **[see it in action here](https://js.noodel.io/)** :point_left:. Noodel eats its own dog food (is there a better expression?) by rendering its own docs using itself :wink:

### Why?

Long story short, this is the result of an exploration into a better way to view and navigate complex nested content (like software documentation). Eventually I realized this pattern can be generalized across all sorts of use cases, and so this library was born.

### What you can use it for

Any content that is, or can be, arranged in a tree structure, like documentation, blogs, wikis, mindmaps, etc. You can even use it to create a whole single-page site or app that can be navigated with just 4 arrow keys!

### Open sourced for the web

Noodel is currently released as Noodel.js, a free and open source JavaScript component for use in web projects. While it has potential to be used in other contexts, the JS library is what I’m focusing on at the moment.

{% github zlu883/noodel-js no-readme %}

**Feedback and contributions are most welcome!**