teleren/devto huggingface dataset:
Rant on JS naming
Tags: javascript, webdev, rant
Published: 2021-08-17 23:18:28

What bothers me about JS is the way packages and tools are named.

This post is inspired by this [post](https://dev.to/pigozzifr/what-s-the-worst-part-about-the-js-ecosystem-42l0/comments).

---


I don't like the naming with an extension.

Like "Node.js".

It is not the name of a file.

Similally, react.js, vue.js, next.js... are not the names of files. Well maybe sometimes, as a compiled result, but not in the source code and it usually it is `vue-1.2.3-esm.js` or whatever as a long name anyway.

So why add extension? And not use it consistently?

You don't have to tell people the name of your language in your runtime or package name. Who doesn't know what Node or React are in JS or might confuse them with something else of JS if ".js" was omitted?

We don't call it "pandas.py", "requests.py", "grails.jar" or "jekyll.rb" or "rails.rb" in other languages. Yes, Python packages have Py names sometimes like Pygame or Numpy, but that is fun and artistic and doesn't go to extension level convention.

And Node and Node.js and NodeJS are all (sort of) correct spellings. Things diverge in the JS community, rather than converge
ECMAScript and ES. And ES6 and ES2015.

And some say "Node dot JS" aloud,  which is annoying. It sounded so verbose on NextConf for the presenters to say Next dot JS all the time when it is clear from the context and "Next" would be fine.

Typing "next.js" is the most common way for packages while "DocsifyJS" is the preferred way of some packages like in Docsify docs.

Anyway, that has been bothering me a while and wanted to vent about inconsistencies in the language we love to hate but can't do without (yet).
What I have been learning from the job hunt.
Tags: career
Published: 2021-08-17 23:06:56

---
title: What I have been learning from the job hunt.
published: True
description: What to expect when your on the job hunt.
tags: #Career 
//cover_image: https://direct_url_to_image.jpg
---
So as the title states I want this post to be about what I have learned from the dreaded job hunt so far.

I have recently, been applying for work, and going through the interview process. And I can say with out a shadow  of a doubt, be prepared to be rejected. Because its going to happen a lot. 

I don't say this to be negative, but Its more of a reality when hunting for your first job. You will get a ton of advice on how to go about doing it. But nobody really tells you just how dam hard it really is. Unless they are a new dev them self's.

My past three interviews I thought all went fairly well. Most specifically my last interview I just got done with. I went through three rounds of interviewing. All with high praise from the company all to just receive the "The decision came down to start up experience and a few more related projects.". 

So this leads me to my one main piece of advice when job hunting managing your expectations. As its easier said than done. Its going to suck your going to get mad. Your going to want to quit, but don't. 

Take the feed back take literally anything away from the interview that you can. Keep learning and filling in the gaps, and keep applying. 

I'm contusing to follow this advice till I land a job. And I hope to come back here one day and follow up with this statement. But in the time being, just know its hard you will go through a lot of trial and error. And the biggest thing is manage your expectations, don't let these companies set your own self worth, and realize its just business..

Just know if your on the same path your not alone. But just because your not alone does not mean it doesn't suck. Embrace it learn from it move forward till you break through. As again the only person who is going to get you a job is your self.

Feel free to share your journey down below. And I hope you all who are the hunt best of luck as well!
Day 432 : Grow
Tags: hiphop, code, coding, lifelongdev
Published: 2021-08-17 22:01:58

_liner notes_:
- Professional : Had a one of our team meetings to start my day off. After that, got to check out a new tool a team mate has been working on. Added another way to send some data in a demo project I've been working on. I also added the ability to delete some things from the demo's dashboard. Spent the rest of the day working on styling some Web Components I made. Not a bad day.

- Personal : So I tried to use a camera I was planning for the media server I deployed earlier, but couldn't get it to work. I can connect successfully, but the video doesn't show up. To make sure it was working, I was able to stream successfully from my phone, but not the camera. I'll have to look into it. I have another camera I want to use, so I'll check that out later. Last night, I watched an episode of "Invincible". It's pretty good! Went through some tracks for this week's radio show. Even looked over some Japanese. I still remembered some things. Think it's starting to really grow and stick with me.

![Large stone statues shaped like bells sit on a platform over looking a jungle with a mountain in the distance in Wanurejo, Indonesia](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6qjx9c04f9g6ijxuegud.jpg)

Another thing I noticed with the streaming video is that the audio seems to go out of sync with the video. I wonder if that has to do with the specs of the server I'm using. That's another thing I'll have to look into. Planning on going through some tracks for the radio show, study some Japanese, and maybe work on my side projects dashboard layout. Right now, going to eat some dinner and watch "Invincible". Only have a couple more episodes in this season.

Have a great night!

peace piece
Dwane / conshus
https://dwane.io / https://HIPHOPandCODE.com
{% youtube Fr8MIpKnvjk %}
Questions-I-ask-during-my-interviews
Published: 2021-08-17 21:40:22

Goals and Objectives

This repo is a collection of interview questions that help identify your future company. These are the questions I've collected during my interviews with different companies. Remember they are interviewing you, and you are interviewing them.
Remember, these questions can be different for each company, but I hope this repo can help you succeed in your interview process.

Company culture

- How are your teams structured?
- How many women work in this team?
- What's your process to ensure you have diversity in other ways?
- How does internal communication work in your company?
- What is the on-boarding process in your company?
- How much vacation do people get?

Community involvement

- Do you contribute to open source projects?
- Do your employees speak at conferences about the work they do? What is the company's support for that?

Career development
- Do your company support continuing education? This is an important question if you want to grow in your field.
- What are the ways your company supports career development?

Engineering practices

- Can you give me an example of someone who's been in a technical role at your company for a long time, and how their responsibilities and role have evolved?
- How is performance evaluated?
- How is this team structured?
- Tell me more about this team?
- Are there any specific written goals for this opportunity?
- Is there a written road map available to developers? And how far into the future does it extends?
- Do you use TDD or BDD in your company?
- Do you do code reviews?
- Do you have a dedicated designer or team of design?
- Who is the best candidate for this job (Characteristic)?
- Who is responsible for deployment? How often do you deploy?
- Can I see some code from the team you are interviewing? Ask for open source projects.
- How often do teammates pair in this team?

Management practices

- How is performance evaluated?
- How are technical decisions made and communicated?
- How are decisions made in this team?
- How often do we have meetings? Do we have morning standups?
- Let's say my interview went well, and I get this job. In a year, what skills do I need to show to consider this hire a successful hire?
- Does this position require travel?
- How much are you planning to hire this year?

Other

- What do you wish you had known before joining this company?
- Why did you choose to join this company?
- Can you give me an example of an issue this team is facing and what's currently being done to address that?
- At the end of your technical interview, ask if they are willing to share some feedback with you.
Top 7 Featured DEV Posts from the Past Week
Tags: top7
Published: 2021-08-17 21:37:40

---
title: Top 7 Featured DEV Posts from the Past Week
published: true
description: A round up of the most-read and most-loved contributions from the community this past week.
tags: icymi
cover_image: https://thepracticaldev.s3.amazonaws.com/i/sfwcvweirpf2qka2lg2b.png
---
_Every Tuesday we round up the previous week's top posts based on traffic, engagement, and a hint of editorial curation. The typical week starts on Monday and ends on Sunday, but don't worry, we take into account posts that are published later in the week._ 


## Improving the experience of a product with technical solutions

@michaelmangial1 explains how to stand out as a developer when collaborating with product teams. The secret? The more trusted you are, the more valuable you are.

{% link https://dev.to/michaelmangial1/3-not-so-obvious-ways-to-stand-out-on-a-product-team-as-a-developer-2d20 %}

## Navigating... mapping 🗺 

Ever encountered the error `field type is not supported for [whatever you are trying to do with Elasticsearch]`? @lisahjung is here to help. 

{% link https://dev.to/lisahjung/beginner-s-guide-understanding-mapping-with-elasticsearch-and-kibana-3646 %}


## Sometimes, the fastest solution is ok!

@dekel makes an argument for using jQuery for certain types of projects. 

{% link https://dev.to/dekel/last-week-i-wrote-some-jquery-and-no-one-fired-me-3iao %}

## The React learning curve

Congrats to @stuxnat for completing their final project for the Flatiron School! Thanks for sharing it with us.

{% link https://dev.to/stuxnat/final-react-project-2poi %}

## The ongoing journey of being a dev

"Learning how to code isn't the end of the journey for a software developer," says @bk_973. So, how can you continue to improve? Read on...  

{% link https://dev.to/bk_973/these-habits-will-make-you-a-better-developer-4gl7 %}

## Illustrating music

A few months back, @aneeqakhan created a boombox illustration by only using CSS. In this post, they share how they animated it!

{% link https://dev.to/aneeqakhan/animating-my-illustration-using-animate-css-1cm8 %}

## "Entities can not inject services!"

@salah856 explains that it's simple to implement a business rule in an entity method when the business logic only uses the properties of that entity. But what if the business logic requires you to use any external services? This post will help you navigate this conundrum.

{% link https://dev.to/salah856/implementing-domain-driven-design-part-iii-pe8 %}



_That's it for our weekly wrap up! Keep an eye on dev.to this week for daily content and discussions...and if you miss anything, we'll be sure to recap it next Tuesday!_
How to find the right CHROMIUM_REVISION value for a given chromium version
Tags: javascript, npm
Published: 2021-08-17 21:34:20

If you use [node-chromium](https://www.npmjs.com/package/chromium) for installing chromium, it can be really a headache to install the exact version. The official solution is to set:
```sh
$ export NODE_CHROMIUM_REVISION=729994
```

But the problem is to map the application version (for example, 92.x) to the revision that can be successfully installed. If we fail to provide the right value, we will get an error similar to this one:
```sh
Step 1. Retrieving Chromium revision number
Step 2. Downloading Chromium revision 72999
Downloading Chromium - 0 MB [--------------------] 0% 0.0s An error occurred while trying to download file Response code 404 (Not Found)
An error occurred while trying to setup Chromium. Resolve all issues and restart the process HTTPError: Response code 404 (Not Found)
    at Request._onResponseBase (/home/marcin/workspace/github/chromium-install/node_modules/got/dist/source/core/index.js:899:31)
```

# Solution
So far, the best solution I found is to check https://npm.taobao.org/mirrors/chromium-browser-snapshots/, and pick the values shown for your platform. For example, for Linux, we have:
```
809590/                                           2020-10-23T15:36:20.890Z                          -
818858/                                           2020-11-16T13:59:10.648Z                          -
843427/                                           2021-02-02T11:18:32.464Z                          -
848005/                                           2021-02-03T15:50:06.496Z                          -
856583/                                           2021-02-26T08:47:06.448Z                          -
869685/                                           2021-04-21T11:32:14.871Z                          -
884014/                                           2021-05-31T12:43:15.851Z                          -
901912/                                           2021-08-04T12:55:01.223Z                          -
```

By picking some of those values, I can install some past versions successfully:
```
$ NODE_CHROMIUM_REVISION=856583 
$ npm install chromium                

> chromium@3.0.2 postinstall /home/marcin/workspace/github/chromium-install/node_modules/chromium
> node install.js

Step 1. Retrieving Chromium revision number
Step 2. Downloading Chromium revision 856583
Downloading Chromium - 136.8 MB [====================] 100% 0.0s 
Step 3. Setting up Chromium binaries
Process is successfully finished
npm WARN chromium-install@1.0.0 No description
npm WARN chromium-install@1.0.0 No repository field.

+ chromium@3.0.2
updated 1 package and audited 67 packages in 28.403s
found 0 vulnerabilities
```

After that, I can double-check what version was installed:
```
$ ./node_modules/chromium/lib/chromium/chrome-linux/chrome --version
Chromium 90.0.4427.0
```

# Summary
This article presents a quick & dirty solution to picking past chromium versions with **node-chromium**. Please share if you found some better solution.
HNG INTERNSHIP 8.0 
Published: 2021-08-17 21:12:26

Availing myself this opportunity of an eight weeks internship program with an article is such a rare thing to come by. I'm a front-end developer (beginner). I have confidence that enrolling for this 8 weeks HNG internship programme will serve as an eye opener for me in this career path that I have chosen and make me stand out among the best.
My primary aim is to learn, get more exposure to more real-life projects, and build wonderful problem-solving websites for individuals and companies, and also to connect with people during and after the internship.
One of my planned purposes at the end of the internship is to be more proficient with my front-end development, building more projects to include in my portfolio.
If you want to know more about the programme:
Visit https://internship.zuri.team or learn more about the internship. You can also visit https://training.zuri.team to enroll in the training version of the internship or visit https://zuri.team for future updates on training and internship.
Below are links to beginners learning resources to get you started on this path to success.
1.	Learn the basic and designing with Figma
https://www.youtube.com/watch?v=FTFaQWZBqQ8
2.	Learn how Git work. 
https://www.youtube.com/watch?v=USjZcfj8yxE
3.	Getting started and familiar with HTML
https://www.youtube.com/watch?v=qz0aGYrrlhU
4.	Getting started with JavaScript
https://www.youtube.com/watch?v=W6NZfCO5SIk
It is said that “Journey of a thousand miles, starts with a single step”
My first step is this and hope to refer back to this at the end of the internship with goals achieved.
Thoughts on solving basic algorithm problems
Published: 2021-08-17 20:41:55

I relized that while solving basic algorithm problems like 
https://www.hackerrank.com/challenges/birthday-cake-candles/problem
I should use basic logic/process like for/while/recursion. It's helpful to analyze my solution in view of complexity.

The last time I solving problems in an interview, I carelessly use built-in methods like map/sort, I was used to the habit of writing business code, "get things done whatever it takes, optimize later". Which left a bad impression to the interviewer, he might think that I'm suck at handling complixity.
Top 10 websites for internship opportunities!
Tags: jobsearch, internship, career, computerscience
Published: 2021-08-17 20:41:40

This article is specifically for those who are based in the **UK** and are looking for an internship opportunity.

 An internship is a 3 to 4 months of work experience. Normally employers hire university students for summer internships. An internship is a great way to gain some remarkable experience without interrupting your university degree. It can help you understand what you would like to do as a career, either by reinforcing your beliefs or by realizing that you should try something different.


-  [Prospects](https://www.prospects.ac.uk/) 
- [TargetJobs](https://targetjobs.co.uk/)
- [GradCracker](https://www.gradcracker.com/)
- [StudentJobs](https://www.studentjob.co.uk/jobs)
- [RateMyPlacement](https://www.ratemyplacement.co.uk/)
- [Milkround](https://www.milkround.com/)
- [DigitalGrads](https://www.digitalgrads.com/)
- [e4s](https://www.e4s.co.uk/docs/internships.htm)
- [GovUK](https://www.gov.uk/find-internship)
- [Internwise](https://www.internwise.co.uk/)
Terraform: take a slice of a list with an unknown depth
Tags: terraform
Published: 2021-08-17 20:20:40

---
title: Terraform: take a slice of a list with an unknown depth
published: true
description: How to take a slice of a list using terraform functions
tags: #terraform
//cover_image: https://direct_url_to_image.jpg
---

Say you have an s3 bucket with an **unknown depth**:

`s3://<bucketname>/dir1/dir2/dirn...`

say you wanted to output everything after the bucket:

`dir1/dir2/dirn/`

Theres no easy way to do this in terraform. Here is how you can do it. First determine the length of the string:

```terraform
locals {
   arn_length = length(split("/", "s3://bucket-name/dir1/dir2/dirn/"))
...
```

next use the length to slice and then rejoin the string (goes in the locals block mentioned above):

```terraform
  bucket_depth = join("/", slice(split("/", "s3://bucket-name/dir1/dir2/dirn/"), 3, local.arn_length))
}
```

voila!

try it out!

```
echo 'join("/", slice(split("/", "s3://bucket-name/dir1/dir2/dir3/"), 3, length(split("/", "s3://bucket-name/dir1/dir2/dir3/"))))' | terraform console
"dir1/dir2/dir3/"
```
Welcome Thread - v138
Tags: welcome
Published: 2021-08-17 20:14:57

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

![Welcome Jurrasic Park](https://media.giphy.com/media/jF1oqkXJL0Mda/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!**
Database views in SQL — View of Data
Tags: database, sql, data, databasetables
Published: 2021-08-17 19:46:09

Before going into the Database views in SQL, first, let’s see what a Database is?
The database is a collection of interrelated data, for example, the Database of the Hospital. It contains the data related to Patients Drugs, their illness, etc., which are somehow related. A Database must be efficient and sensible; for example, if a nurse has a database of patients and can’t get sense out of it, it is for no use.
Read more at https://hecodesit.com/database-views-in-sql-view-of-data/
Codewars Python — Integer to Roman conversion
Tags: codewars, python, integertoromanconversion, codingsolution
Published: 2021-08-17 19:40:55

Codewars Python in its 6kyu Kata has given us a problem to convert an integer into the Roman numeral Symbols. In Ancient Roman times, people use Roman numbers instead of integers.
My approach to the Problem:
Firstly, I made two Lists in Python, first to store the Numbers which have a Single Roman Symbol Available and Second List for Roman Symbols.
To Find the Solution Read
https://hecodesit.com/codewars-python-integer-to-roman-conversion/
Can you get the loop? — Codewars C++ Solution
Tags: cpp, codewars, cppsolution, cprogramming
Published: 2021-08-17 19:39:33

It has been my habit for the past 2 years to do daily coding practice on Codewars. The programming language which I prefer is C++. Today when I was doing my daily coding practice, I came through a difficult problem to solve, where I was given a cycle of Linked List Nodes along with a tail node attached to one of the Nodes in Cycle.
What I had to do was to find the length of the cycle discarding the length of the tail. To know more about the problem and how I solved it read.
https://hecodesit.com/can-you-get-the-loop-codewars-c-solution/
Day 4: 100 days of code, innerHTML and innerText difference in JS
Tags: 100daysofcode, javascript, webdev, beginners
Published: 2021-08-17 19:04:40

### DIfference between innerHTML and innerText in js
see this [medium](https://betterprogramming.pub/whats-best-innertext-vs-innerhtml-vs-textcontent-903ebc43a3fc) article for details.


[This](https://medium.com/@parasbisht/difference-between-innerhtml-innertext-and-textcontent-c0789c6dd9c1) is short summary of the above article.

### Difference between `getElementById` and `getElementsByClassName`
The difference that I found through trial and error:-  
The `getElementById` will select only one element(as only one element will have that unique id), while in the arguments of `getElementsByClassName` we can provide multiple classes, and it will select all the elements matching those classes. Hence `getElementsByClassName` is like an array. Example:-  
```
<div class="parentDiv"></div>
```
To access the above, you have to write
```
var divToBeAppended = document.getElementsByClassName("parentDiv");
divToBeAppended[0].appendChild(newButton);
```

## Important things to remember:-
* ![centering using margin auto](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jcaromptgkar914mtxqi.png)

* In case of a image as direct child of an div with rounded corners, the image will overflow through the container. To stop that, you can use:-
```
.container{
overflow:hidden;
}
```


### Things i couldn't make a summary of:-
* Change button colors project
* Kotlin basics:- functions, variables, etc.


### Things couldn't complete ( try again)
* CP problem:- Time is Mooney 
* CP DP handbook last section
Como aprender tráfego pago
Published: 2021-08-17 18:48:23

No marketing digital, o tráfego pago continua sendo a forma de maior conversão que existe. Os canais que podemos utilizar são diferentes, assim como os tipos de tráfego, pois cada canal tem o seu público, o seu contexto e uma procura diferente. 

Podemos, em geral, dividir esse tráfego em canais de busca e canais sociais. Posso dizer que os canais de busca (o Google é o mais famoso, e também inclui o YouTube) estão entre os que apresentam melhor desempenho em termos de taxa de conversão. Permitem que você alcance usuários que usam certas palavras-chave quando procuram um objeto ou tópico.

Os canais sociais (o Facebook é o mais poderoso) permitem chegar facilmente a muitas pessoas, mas acima de tudo criar engajamento e interesse nos serviços oferecidos. Na verdade, são os próprios usuários que tendem a compartilhar o que consideram útil para a comunidade, o que lhes permite alcançar uma ampla gama de clientes em potencial. 

Fonte: [Metodo Turbo Trafego]( https://adeusponto.com/metodo-turbo-trafego-funciona/ )