teleren/devto huggingface dataset:
Dad, Developer and continuously learning ?
Published: 2021-06-02 20:17:35

The hassle is real - it can't be easy to combine a great rising career as a developer and a new grown family at once, or could it ?

If you expect to find the answer here - Sorry - got ya, you won't.

It is not as easy as a single answer or solution, and it is exactly what I'm currently experiencing.

# How everything changed

At the 13th of march this year my first son was born.
It is the greatest gift and completes my family.

Now after some amazing but also confusing weeks I'm getting back to work life and answering myself more questions than ever before.

# How goals transform habbits

I'm working as a developer now for some years and tried to increase my knowledge day by day.
I liked the cliché of the nerdy developer that is isocialized and lives in his own world. And - I kinda was one of this strange nerds.

During university, we didn't know about day - night cycle.
Whenever we created our side project, we created it until it was finished. 
It was exactly like I thought developer life would be - long nights, no sleep, energy drinks and coding.
When I joined my company I tried to keep this habbits but with around 60% employees which have families it wasn't the same.
Now I did most of the learning and side projects at myself at home, and it was ok.

I always knew that one important habbit for guys in the tech industry - especially devs - is learning, learning, learning ...

And now I knew that all is about learning ...

## New goals need old habbits

Now with a son and a wife, my complete view on my future changed:

* Currently we live in the city in a flat - but I want my son to grow and rise out of the city with a house and a garden
* I want to spend as much time with my son - not with hobbies and learning
* But for my wanted future I need a save job
* The save job is being a developer - because this is what I live for
* And being a good developer is all about learning, learning, learning...

And there it is : a strange loop with, it seems, no solution ?

# The Solution ?

Currently, I'm not sure about the solution and trying to use sleeping time of my family to keep learning.

I will keep you up to date, and maybe I could develop the number one recipe for being a great dad and a always evolving and learning dev.
"Final" keyword
Tags: beginners, java, final, keyword
Published: 2021-06-02 19:45:20

In this post I am going to be reviewing the final keyword and how it is used in Java applications.  The final keyword can be different depending on the context.  When variables are declared using it they are locked to the value they are assigned.

    final String string = "Hello World";

A final variable can be declared but not initialized.

    final String string;

This allows for each object to then assign that constant variable with a value rather than locking in the same for all instances of the class.  Class constants can be created by combining static with final.  A useful example of this is if a Math class was created and the developer wanted to make pi a constant that can be called in every instance.

    final static float PI = 3.14;

Reference variables are similar in that once they have been assigned they cannot be reassigned.  This does not mean the object is immutable however.  The properties of the class can be updated and set using the available methods.

    final Object object = new Object();
    object.setName("NewName");  

Methods with the final keyword are restricted to not being overridden.  Classes that are extended but have methods that need to stay the same can make use of the final keyword.  An example of this is the thread class’ isAlive() method.  The class can’t be overridden and the compiler will throw and error if attempted.  Lastly, the parameters of a method can also utilize the final keyword.  The parameters marked with final are not changeable in the method from what they are assigned.

    public void myMethod(final String string);

Thank you to everyone that has read this post.  If you learned something new please like or comment down below.

Sources:

1. final keyword in java. GeeksforGeeks. (2021, February 17). https://www.geeksforgeeks.org/final-keyword-java/.

2. Baeldung. (2020, May 3). The "final" Keyword in Java. Baeldung. https://www.baeldung.com/java-final.
100 algos in 100 days (Day 1)
Tags: algorithms, challenge
Published: 2021-06-02 19:34:25

Today I took on this kata during a code dojo at work :

http://codekata.com/kata/kata19-word-chains/

We used a TDD approach, allowing us to come up with the key guard clauses.

A sticking point was when we moved from two words in the word chain to three. Here we ran out of time.

If I was to do it again I would start implementing the dictionary from the beginning and thinking about the letter changing algorithm earlier. ( I probably will give it another go!)
Nmr
Tags: node, npm, moduleresolver, nor
Published: 2021-06-02 19:27:09

# Nmr
<p align="left">
<a href="https://www.producthunt.com/posts/nmr-node-module-resolver?utm_source=badge-featured&utm_medium=badge&utm_souce=badge-nmr-node-module-resolver" target="_blank"><img src="https://api.producthunt.com/widgets/embed-image/v1/featured.svg?post_id=298323&theme=dark" alt="Nmr (Node Module Resolver) - A CLI to prevent you from downloading packages again & again | Product Hunt" style="width: 250px; height: 54px;" width="250" height="54" /></a>
</p>

Nmr (`Node module resolver`) is a command line utility that stores `npm` modules in a safe place and prevetn your from installing the same module for different projects again and again.

## Aim

`nmr` is aimed for reducing the space hogged by the `node_modules` folder in ever `node.js` project.

## Installation

To install `nmr`, enter the following command in the terminal:

```bash
npm install -g @svel-ai/nmr@latest
```

## Usage

To use `nmr` you have to install package globally, and then `add` them to your project.

For example, if you want to use the `commander` module in your project, you will have to install the `commander` module to your system through the following command:

```bash
nmr install commander
```

The above command can be run form anywhere in the terminal.

To use the module in your project, run the following command inside of your project directory:

```bash
npm init -y
nmr add commander
```

That's it. Your ready to use `commander`. You can use it in your project and import it normally

```javascript
const { program } = require("commander");
// import { program } from "commander" // If you are using ES6 syntax
// ...
```

## Contributing

We love adding new features to our projects. If you have a new idea, a new bug report or a feature request, please feel free to create a new `issue` and explain.

## License : `MIT`
Day 80 of 100 days of SwiftUI
Tags: swift, 100daysofcode
Published: 2021-06-02 19:03:00

I just completed day 80 of 100 days of swiftui. I learnt about to use the swift result class and how manually publishing ObservableObject changes.

The swift result class is simply a class that is used to represent success or failure. It makes error handling easier because you have to handle all the cases explicitly.

Maually publishing observableobject changes is a simple as calling `objectWillChange.send()` in a property observer. For example, you can do this
```swift
var value = 0 {
    willSet {
        objectWillChange.send()
    }
}
```
Twitter clone
Tags: django, tailwindcss, javascript
Published: 2021-06-02 18:49:52

Hi.
I just finish a project that I was working on and want to share it with you.
It mimics core twitter functionality such as:
* tweet and mention.
* notification for follow and like.
* simple algorithm Who to follow section.
* like/unlike tweet and mentions.
* and ...

-----------------------------------
It isn't that big of a deal but I'm new to Django and if you have time to take a look at it, I'll be glad to hear you comments.
you can find it on my <a href="https://github.com/mohammadekhosravi/twitterClone">github</a> page.
DEV Community Caption Contest
Tags: devmeme, watercooler
Published: 2021-06-02 18:41:56

---
title: DEV Community Caption Contest
published: true
description: Help us come up with the most dev-tastic caption for this pic!
tags: devmeme, watercooler
cover_image: https://dev-to-uploads.s3.amazonaws.com/uploads/articles/g71kcnwxuqvebxfwxr4x.png
---

**Update, June 9 — Congrats to @dendihandian for winning the caption contest! We will be sharing your caption on Twitter & Instagram soon!**

### **Winning caption: `Interview Test v.s. Actual Job`**

---

_This week, we're going to try a lighthearted contest here on DEV. Below is a picture without a caption. Your task is to fill in the blank to make a hilarious programming/tech/developer meme._

**Here are the rules...**
> 1. Write in your idea of the funniest caption for the picture as a comment below.
> 2. Keep the humor appropriate (see our [Code of Conduct](https://dev.to/code-of-conduct) ) and developer/software/tech-related
> 3. Include your Instagram _and_ twitter handle in your submission comment if you have accounts on those platforms (and don't mind sharing)

**Then...**
> 1. We'll pick several submissions to be featured in a Twitter poll via [@thepracticaldev](twitter.com/thepracticaldev) in the coming days
> 2. The community will vote on their favorite caption
> 3. Finally, we'll post the winner on our [Instagram](instagram.com/thepracticaldev) and Twitter, and tag them if they shared an Instagram handle. We'll also give the winner a special DEV profile badge!

Ok, let's get to the meme-age 🙃 

---

## Fill in the blank...

![One real bird on a branch with a blank text box next to a Marshmallow Peep candy with a blank text box](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dq3yesxggmo69y1xoc3l.png)

_(Photograph taken by [Nancy Uggla](https://www.rd.com/list/hilarious-bird-photos-you-shouldnt-miss/) )_
Do you know <a href ="" ... > tags also used to track users behavior ?
Published: 2021-06-02 18:27:15

<a href="https://www.buymeacoffee.com/areeburrub" target="_blank"><img src="https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png" alt="Buy Me A Coffee" style="height: 41px !important;width: 174px !important;box-shadow: 0px 3px 2px 0px rgba(190, 190, 190, 0.5) !important;-webkit-box-shadow: 0px 3px 2px 0px rgba(190, 190, 190, 0.5) !important;" ></a>

If you have ever used HTML before then you might know the anchor tags (`<a href="" >Link</a>`) but do you know it have many attributes and `href` is just one of them.

In this post I will tell you about the `ping` attribute and also tell how it tracks you.

### Ping Attribute,
The `Ping` attributes contains URLs/Address which take post requests. Whenever you click the link it takes you to the website mentioned in the `href` and simultaneously sends a Post request to server.

### So how it tracks you,
The post request sent to the server can contain data related to sites you are browsing or which site you are going on using the link.

Sites like *Google* uses this to track the users behaviors and also to rank pages.

You can try this by simply doing any google search then open _inspect element tool_ (`ctrl+shift+c`) now click on any search result link, in the elements tab you can see the anchor tag which have the `href` as well as `ping`.
![image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0bk9i160ncz39a6kzwvu.png)


### Firefox doesn't support ping
![image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/t9blcs4jjh6orvx9r6ye.png)
The ping attribute isn't supported by Mozilla Firefox browser but this don't stop Google to have a track of data, on firefox you will notice that all the links first redirects to a google server link then redirects to the target.

### Why Ping-Tracking is done?
The most important reason of tracking is the analytic purpose the search result rankings are done on this analytics only and if no record is made anything will become top search result.

<hr>

> <a href="https://www.buymeacoffee.com/areeburrub" target="_blank"><img src="https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png" alt="Buy Me A Coffee" style="height: 41px !important;width: 174px !important;box-shadow: 0px 3px 2px 0px rgba(190, 190, 190, 0.5) !important;-webkit-box-shadow: 0px 3px 2px 0px rgba(190, 190, 190, 0.5) !important;" ></a>

Read Also:
{% post https://dev.to/areeburrub/using-weather-api-with-javascript-3a04 %}
Follow me for more:
{% user areeburrub %}
Welcome Thread - v127
Tags: welcome
Published: 2021-06-02 18:23:19

---
title: Welcome Thread - v127
published: true
description: Welcome to DEV! A thread of hellos and intros.
tags: welcome
canonical_url: 
---

![wizard dog saying welcome](https://media.giphy.com/media/3o6ZtpxSZbQRRnwCKQ/giphy.gif)

### Welcome to DEV!

1. Leave a comment below to introduce yourself! You can talk about what brought you here, what you're learning, or just a fun fact about yourself.

2. Reply to someone's comment, either with a question or just a hello. 👋 

**Great to have you in the community!**
Language Creation with Edaqa Mortoray & Sam Scott
Tags: discuss, podcast, language
Published: 2021-06-02 18:08:59

---
title: Language Creation with Edaqa Mortoray & Sam Scott
published: true
description: Listen to S5E4 of DevDiscuss!
tags: discuss, podcast, language
series: DevDiscuss Season 5
cover_image: https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bw0vstt6biosaz8dwbph.png
---

On DevDiscuss, we like to talk about both the burning questions that directly impact your life as a developer _and_ the programming topics that are endlessly fascinating, but you might not have directly encountered in your own journey (yet).

Depending on your circumstances, this week's episode might fit into both categories... 

{% podcast https://dev.to/devdiscuss/s5-e4-have-you-ever-wanted-to-create-your-own-language %}
 

**This week, we're talking about creating your own programming language with two people who have done exactly what the title of this episode indicates:**
- [Edaqa Mortoray](https://dev.to/mortoray), Puzzle Designer at Edaqa’s Room and creator of the Leaf programming language
- [Sam Scott](https://twitter.com/samososos), co-founder and CTO of Oso, which is powered by the language they created called Polar.


P.S. Check out this great post by @mortoray, which we talked about on the show:
{% link https://dev.to/mortoray/sadly-i-must-say-goodbye-to-leaf-my-programming-language-d6 %}


---

_You can [follow DevDiscuss](dev.to/devdiscuss) to get episode notifications and listen right in your feed_ — or subscribe on your platform of choice! Plus, if you leave us a review, we'll send you a free pack of thank-you stickers. Details [here](https://airtable.com/shr8oKAIMZgdYnBxx). 

## Quick Listening Links
- [Apple Podcasts](https://podcasts.apple.com/us/podcast/devdiscuss/id151305388)
- [Spotify](https://open.spotify.com/episode/30FEuaQl67Oty9InxzhGDJ)
- [Google](https://podcasts.google.com/feed/aHR0cHM6Ly9mZWVkcy5kZXZwb2RzLmRldi9kZXZkaXNjdXNzX3BvZGNhc3QueG1s/episode/aHR0cHM6Ly9kZXZwb2RzLmRldi9wb2RjYXN0cy9kZXZkaXNjdXNzLzM3?sa=X&ved=0CAQQkfYCahcKEwjo-OaexPnwAhUAAAAAHQAAAAAQCA)
- [Listen Notes](https://www.listennotes.com/podcasts/devdiscuss/s5e4-have-you-ever-wanted-to-meKR17iftIw/)
- [TuneIn](https://tunein.com/podcasts/Technology-Podcasts/DevDiscuss-p1324596/?topicId=163491002)
- [RSS Feed](http://feeds.codenewbie.org/devnews_podcast.xml)
- [DEV Pods Site](https://devpods.herokuapp.com/podcasts/devdiscuss/episodes/168)

---
_Acknowledgements_ 
- _@levisharpe for producing & mixing the show_
- _Our season five sponsors: [CockroachDB](cockroachlabs.com/devdiscuss), [Cloudways](https://www.cloudways.com/en/?id=893892), [Scout APM](https://www.scoutapm.com/devdiscuss) & [Rudderstack](https://rudderstack.com/?utm_source=devto&utm_medium=podcast&utm_campaign=CMPGN_3_PS&utm_content=None&utm_term={keyword}&raid=6dbc05eeb293b421f68d02ce12648240)!_

# 🗣️🗣️🗣️
Occupy The Bookstore!
Published: 2021-06-02 17:54:01

Hi. Trying to find "Peter Kim Frank" to get information regarding an old extension "Occupy the Bookstore" This was a price comparison extension for textbooks associated with texts.com.

The reply email from texts.com said you guys Peter/Ben had moved on.

Any information on/regarding the extension would be helpful.

ps. I'm completely new to browser/dev for extensions and working on a time limit. I'm looking to connect with "serious" devs who have sills to develop a basic price comparison tool/extension. The tool will target the bkstr.com college/textbook data page.

thanks
-bruce
Multiple environments in Create React App
Tags: react, node, javascript, npm
Published: 2021-06-02 17:38:17

In this article we are going to learn how to configure multiple environments in a single React application. For example, you might want your dev environment connected to your dev API Endpoint, QA to QA endpoint and production to a production endpoint. We could solve this by using a single .env file but, each time you push your code to specific environments you need to remember to change the endpoint values, which is a slight headache and can be error prone. Let’s see how we can solve this!

![Hero Image for multi environments](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9c2bje7w61bkio1pf6a1.png) 

First, get the package *env-cmd* from npm by running
`npm install — save-dev env-cmd`

Next, create your environment specific .env files. In this example, I’ve created a folder named “environments” in my root directory (same level as package.json). Important the environment variables MUST start with REACT_APP_ . Read more here.
Then, I’ve my .dev.env , .qa.env and .prod.env created inside environments folder.

`REACT_APP_API_END_POINT==http://my-dev-url.com
//.dev.env
REACT_APP_API_END_POINT==http://my-qa-url.com
//.qa.env
REACT_APP_API_END_POINT==http://my-prod-url.com
//.prod.env
`
Please note .dev.env, .qa.env and .prod.env are three separate files in the environments folder. See below
![Code structure screenshot from VS Code](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/761ejvqvuetojgu7v9vv.png)

Next, update the package.json . Update the scripts portion of your package.json to include the following:

`“scripts”: {
“start”: “react-scripts start”,
“build”: “react-scripts build”,
“test”: “react-scripts test”,
“eject”: “react-scripts eject”,
“start:dev”: “env-cmd -f ./environments/.dev.env react-scripts start”,
“build:dev”: “env-cmd -f ./environments/.dev.env npm run-script build”,
“start:qa”: “env-cmd -f ./environments/.qa.env react-scripts start”,
“build:qa”: “env-cmd -f ./environments/.qa.env npm run-script build”,
“start:prod”: “env-cmd -f ./environments/.prod.env react-scripts start”,
“build:prod”: “env-cmd -f ./environments/.prod.env npm run-script build”
},`

Next start your local/dev react application by running

`npm run start:dev`

You can test your env variable in your app by doing the following

`console.log(process.env.REACT_APP_API_END_POINT);`

For QA and Production build replace the command npm run build to the newly added environment specific command npm run build:qa or npm run build:prod respectively. (For example, if you are on AWS, edit the buildspec on Codebuild and replace npm run build with npm run build:qa or npm run build:prod)
Always use your judgement skills, and remember not add any sensitive information in those files.
And that’s it. We’ve learned how to create multiple environments in a react application using Create React App.

I hope this article was helpful. Thanks and Cheers!
Understanding geospatial data
Tags: geospatial, vector, crs, raster
Published: 2021-06-02 17:33:12


##What is geospatial data? 

When a set of data encompasses geographic location as the reference component, it is referenced to as geospatial data. It represents some information about a specific location or over a range of a given location. The location can range from a specific point to a larger area. Oftentimes, GIS and geospatial data are interchangeably used. 

>GIS is a programmatic system that creates, stores and analyses geospatial data. 

View the original blog here [Understanding Geospatial Data] (https://www.nitorinfotech.com/blog/understanding-geospatial-data/)
 
To know more about, how geospatial data can be used using postgis please take a gander at the follow up article: [Getting started with PostGIS.](https://dev.to/antaradatta3/getting-started-with-postgis-57pm)
HarperDB & Google DevOps Event
Tags: devops, tutorial, kubernetes, discuss
Published: 2021-06-02 17:23:40

###Don't miss this event led by Brett Mitchell, Principal Architect at Google
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8f0hzkchmf7f3xnzowh8.jpg)


We hosted Brett Mitchell, who is a Principal Architect / Cloud Customer Engineer at Google, for this [interactive livestream](https://www.youtube.com/watch?v=ogaimCj2F1A) on June 8th. Brett discussed DevOps best practices, and demonstrated how to deploy globally on the Google Kubernetes Engine (GKE) and Google Anthos platform. He also shared a bit about what's to come for Kubernetes and more. 

___
###Meet Brett
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/suls2u6b94aq0ywwsvg1.JPG)
Brett Mitchell is a Principal Architect at Google, primarily focused on helping customers in the telecommunication, cable, media and entertainment industries adopt and flourish within the Google Cloud ecosystem.

Before joining Google, he spent 5+ years in the technology consulting space with industry leaders KPMG and Slalom.  He spent the majority of his career as a CTO, founding and cultivating start-ups in the telco/broadband, logistics, media, and fin-tech sectors.
___
###More Info
[Kubernetes](https://cloud.google.com/learn/what-is-kubernetes) is an open-source container-orchestration system for automating computer application deployment, scaling, and management. It was originally designed by Google and is now maintained by the Cloud Native Computing Foundation.

[Anthos](https://cloud.google.com/anthos) is a managed application platform that extends Google Cloud services and engineering practices to your environments so you can modernize apps faster and establish operational consistency across them.

[HarperDB](https://harperdb.io/?utm_source=devto) is a geo-distributed database that enables speed, performance, and low latency. With SQL on JSON, you no longer have to pick a database based on the structure of your data. HarperDB runs anywhere and ingests any type of data at scale. Accessed via an intuitive REST API, you can perform all CRUD database operations using one single endpoint.
___