teleren/devto huggingface dataset:
8 things to look for in your next hire instead of 10x engineers
Tags: hiring, 10x, toxic, twitter
Published: 2019-08-22 22:31:52

Some weeks ago there was a thread about the kind of engineersa startup should be going after. The thread both praised and unintentionally stereotyped toxic tech-bros. It got a big reaction myself included. I tweeted out of a heated disagreement, and ended up with a lengthy (by my average) thread.

But twitter is by its own nature impermanent, so following [@happywebcoder's suggestion](https://twitter.com/happywebcoder/status/1164552339765809152?s=19), here you have my not-so-hot-take on what to look for instead of a _10x engineer_, minus some of the typos that twitter will keep forever.

* Hire someone that sees the value of calling a meeting they won't enjoy to make sure they are building the right thing a bit later, instead of the wrong thing right away

* Hire someone who works reasonable hours, and then goes home to do other stuff, and sets a healthy example for less experienced colleagues

* Hire someone who can make four interns twice as productive by looking away from code long enough to help them gain autonomy, mastery and purpose *and* improve the onboarding process for the ones coming after them

* Hire someone that praises individual accomplishments of every team member under their guidance but owns team failures creating the psichological safety that science suggests is the keystone of most productive teams

* Hire someone that can write great quality code for the business core *and* hacky patches for an unexpected demo, and knows by relating with product and marketing enough, when time-to-market is more valuable to the company than pristine design patterns

* Hire someone that listens to people with different points of view, and humble enough to change their mind, or to execute wholeheartedly on someone else's vision because helping the team is higher in their list than "being right"

* Hire someone ready to learn and maintain a technology they don't like because sometimes trends fall out of fashion long before the usefulness of the components that were written with them

* Hire someone that understands that their skillset is a small piece in a complex endeavor, and values every sales, marketing, support, accounting, and cleaning staff as equals, partners and essential contributors despite/specially because of the otherness of their crafts

What do you think? Do you agree? What are the things you look for in a new hire?
Code Story E1: Rylan Barnes on Not Outsourcing Vision
Tags: podcast, codestory
Published: 2019-08-22 22:05:14

{% youtube w4pvrtt0cyE %}
For some builders, there is a moment where  technical creativity is catalyzed. For others… it starts much earlier. Rylan Barnes has been working with technology since childhood, starting out by programming his legos to move, and all the way through college, where he built early marketplaces for trading textbooks and built physical, automated chess boards.

When he started creating a solution for mobile phone barcode scanning, he had no idea the doors it would open and lead to the formation of his most successful product, venture… and exit – called ShopSavvy.

In the clip above, Rylan discusses how you can't outsource vision and why that is. If you like what you hear, check out the full episode below.


{% podcast https://dev.to/codestorypodcast/e1-rylan-barnes-shopsavvy %}
Code Story E1: Rylan Barnes on the Company's Name Change
Tags: podcast, codestory
Published: 2019-08-22 22:04:04

{% youtube iRHsoNf9nUc %}
For some builders, there is a moment where  technical creativity is catalyzed. For others… it starts much earlier. Rylan Barnes has been working with technology since childhood, starting out by programming his legos to move, and all the way through college, where he built early marketplaces for trading textbooks and built physical, automated chess boards.

When he started creating a solution for mobile phone barcode scanning, he had no idea the doors it would open and lead to the formation of his most successful product, venture… and exit – called ShopSavvy.

In the clip above, Rylan discusses why the name of the company changed and what T-Mobile had to do with it. If you like what you hear, check out the full episode below.


{% podcast https://dev.to/codestorypodcast/e1-rylan-barnes-shopsavvy %}
Code Story E1: Rylan Barnes on Quiet Engineers
Tags: podcast, codestory
Published: 2019-08-22 22:01:30

{% youtube Ozc3cwVrBHw %}
For some builders, there is a moment where  technical creativity is catalyzed. For others… it starts much earlier. Rylan Barnes has been working with technology since childhood, starting out by programming his legos to move, and all the way through college, where he built early marketplaces for trading textbooks and built physical, automated chess boards.

When he started creating a solution for mobile phone barcode scanning, he had no idea the doors it would open and lead to the formation of his most successful product, venture… and exit – called ShopSavvy.

In the clip above, Rylan discusses how sometimes it is the quiet engineers who do the best work. If you like what you hear, check out the full episode below.


{% podcast https://dev.to/codestorypodcast/e1-rylan-barnes-shopsavvy %}
Code Story E1: Rylan Barnes on the Android Beta SDK
Tags: podcast, codestory
Published: 2019-08-22 21:59:57

{% youtube MoY48CB03xI %}
For some builders, there is a moment where  technical creativity is catalyzed. For others… it starts much earlier. Rylan Barnes has been working with technology since childhood, starting out by programming his legos to move, and all the way through college, where he built early marketplaces for trading textbooks and built physical, automated chess boards.

When he started creating a solution for mobile phone barcode scanning, he had no idea the doors it would open and lead to the formation of his most successful product, venture… and exit – called ShopSavvy.

In the clip above, Rylan shares what it was like working with the Android Beta SDK. If you like what you hear, check out the full episode below.


{% podcast https://dev.to/codestorypodcast/e1-rylan-barnes-shopsavvy %}
Why I work on silly personal projects
Tags: sideprojects, discuss
Published: 2019-08-22 17:33:02

---
title: Why I work on silly personal projects
published: true
description:My thoughts on why I work on personal projects, which are silly sometimes
tags: side-projects, discuss
---

> Originally published on "https://blog.smurfpandey.me/silly-personal-projects/"

Since many years I have been working on many personal projects. Some of them are quite silly if you think about what they do. The current project I am working is one of them. It’s an application to track & broadcast which game I am playing on my desktop, in real-time. And it's silly because, frankly speaking, who cares what game I am playing. But I have been spending my after-office hours working on it since past few days. So why am I doing it? Why do I work on silly projects? There are few reasons I can think of -

### - Because it's interesting & it's fun

While the functionality of this application might be silly, the "How" part is quite interesting to me. And, when I start collecting this data, I am sure I can find some interesting insights in that data, like:
- What games I play again and again every few months,
- What time of day I usually play and for how long

### - Because I get to learn about new things
Since these are personal projects, and no-one is paying me for it, I don’t have any pressure to finish it. So I take my time to figure out the best solutions. I sometimes pick new languages, new databases, and new tools to work with on such projects. To give you an example, in my current project I am using golang, and interfacing with native APIs provided by MS Windows via `user32.dll`. Also since this application needs to run in background, I also had to figure out how to create Windows Service using golang. While these things might not be useful today in my office work, but you never know tomorrow I might be facing a similar challenge, and then I will know exactly how to solve it.
Note: The [project](https://github.com/smurfpandey/what-game) is available on my Github account if you want to explore the source code.

### - Because it’s an exercise
These projects are like brain-teasers which I enjoy. Sometimes I fail, sometimes I succeed. But in the end, I keep my brain working, and that’s my way of exercising. :)

### - Because I can
I know few people who have interesting ideas for projects on which they want to work, but they don’t get enough time. In my case I have lots of time, and lots of ideas. So I spend time working on personal projects, just because I can.

So to conclude, by working on these projects I get to learn new concepts, new ways of doing things. And these learning sometimes I implement at my work, and great work sometimes leads to more money $$$.

What are your reasons for your side projects?
What is Global Travel Hackathon?
Tags: hackathon, teamwork
Published: 2019-08-22 17:31:16

At Kiwi.com, we care. We love the world of travel, but we’re aware of its dark side. That’s why we’re inviting everyone to help us reshape the way we travel to make it smarter, sustainable and accessible for everyone.

Let’s celebrate **World Tourism Day** by attending and organizing travel hackathons all over the globe on **27 September**. We want to bring together engineers, designers, and innovators: providing them with a creative and supportive environment, and encouraging their ideas on how to hack travel.

We hope to trigger a global **#HackTravel** movement that would become a platform for constant improvement in the travel industry. Here are the main topics for this year:

* **Sustainability**: Do you have an idea about how to make travel more responsible? How to deal with mass tourism? Join us to make travel sustainable and bearable for everyone.
* **Accessibility**: How to make travel better for people with disabilities? How to find well-adapted hotel rooms or accessible restaurants? Or how to make travel smooth for travelers flying with their musical instruments, bikes or surfboards? Accessibility can be perceived from different perspectives, help us find the one which will change the world of travel.
* **Community**: How to find one's travel network? How to connect offline communities? Help us connect the unconnected.


More details here: https://hack.travel/

![Global Travel Hackathon](https://res.cloudinary.com/ideation/image/upload/dpr_auto,w_470/w0sppik67tmzspgjwmqm)
React Radio Button Tutorial with Example
Tags: react, javascript, typescript, reactradiobutton
Published: 2020-02-01 19:43:10

---
title: React Radio Button Tutorial with Example
published: true
tags: React JS,JavaScript,react,Typescript, React Radio Button
canonical_url: https://www.positronx.io/react-radio-button-tutorial-with-example/
---

The post [React Radio Button Tutorial with Example](https://www.positronx.io/react-radio-button-tutorial-with-example/) appeared first on [positronX.io](https://www.positronx.io).

Today In this React tutorial, we will explore how to work with **Radio buttons in React** app. Radio buttons are HTML elements and help the user to choose one option among two or more than two options. In this tutorial, we will learn how to use Radio buttons in React app. Using radio buttons in React is a little bit different than we use in regular HTML. However, we will learn the effortless way to integrate Radio buttons in React.
## React Radio Button Example

[Click here to read more](https://www.positronx.io/react-radio-button-tutorial-with-example/)
Help the job offer to be closer to you 🎉
Tags: career, productivity, offers, beginners
Published: 2019-08-22 20:45:42

As a front-end team leader in a growing department, I have to interview a lot. Often some small details can make a big difference. And I’ll try to share some tips with you to help you get your dream job (you don’t need any other).

## 1. Modify your CV to fit position description
Of course, there are a lot of desriptions, that are written badly and you can see something like _databases experience_ in front-end position. Or _jQuery_ in 2019.
But let's imagine that description is written by somebody, who really wants a candidate like he or she described. It really saves time and makes you look more confident when interviewer looks at Summary section and first four rows are a perfect match. And in opposite, when I see CV and in first paragraph I read about one’s great DevOps experience when candidate applied to a Full-stack developer position it makes me *Hmmmm...* even if in front of me sits really great dev.

## 2. Let your CV be a two-page document
I have almost 10 year of experience in field of web development and it is really hard not to brag about it in 5 pages. But also I understand, that almost nobody cares about things I coded in 2012 with some fancy jQuery plugins and how my grid looked perfect with lots of `float: left` (though it wasn't always easy). Because technology have changed. Because I have changed. And simply because it is unrelevant to modern reality. Imagine that you are on a fast date party and you have to impress quickly.

## 3. Don't be afraid to say “I don't know”
Just because, if you speak with genuine confidence about some internal PHP method that doesn't exist, you lose your points. And the more you continue, the more it looks like stupidity. Lifehack to handle it: you always can say something like “oh, I forgot how it can be done in pure *langName*, but I’ve always used library X* earlier to achieve this — probably it’s not the best way”.

## 4. Discern general questions and specific questions 
When I ask people to tell me everything they know about performance optimization, too often I hear 2 or 3 sentences. C’mon! This is SOOO big field to walk on. Just enumeration of tools and services can make interviewer’s heart melt. But what’s strange is that I hear 2 or 3 sentences with no clear answer when I ask how to clone an array (even from devs with over9000 years of experience).

## 5. Pay attention to “As a plus” section
It will take you about an hour to read a couple of articles — you’re already on DEV.to — about things that are mentioned there. Often interviewer asks about something from this section as a one of general questions. “As a plus” almost always means that it’s not your daily job to develop with these technologies or team just started to use them, but it’s a part of infrastructure, working environment etc. This is really low-hanging fruit, don’t miss it.

As always, thank you for reading and I hope this info will help you to be a developer that every company desires.


*lodash if you’re front-ender.
Raise Exceptions in D
Tags: dlang, tutorial
Published: 2019-08-22 20:41:56

I had a desire to throw exceptions in my Python script. Well here is what you need to know in D.

```dlang
throw new Exception("Error message.");

import std.exception;
enforce(true, "Error message");
```

The standard library provides a function to check a condition, if false it throws with the error message.

It is also possible to specify a custom exception to utilize. In D anything deriving from `Throwable` can be thrown or caught. `Error` derives from Throwable and is not intended to be caught as the compiler may not unwind the stack, thus not calling except handling code (no guarantee the catch will be called).

```dlang
class MyException : Exception {
... /// https://tour.dlang.org/tour/en/basics/exceptions
} 
```
"Don't Rewrite Code" is bad advice
Published: 2019-08-22 19:32:10

I have read many times the advice that you shouldn't do a rewrite of a working program. I think the idea was popularized many years ago in a blog post by Joel Spolsky. That's probably reasonable advice for a million-lines-of-code program you're using in production. It's bad advice when your programs is only a few thousand lines. Here are a couple of reasons rewriting code is a good thing.

**Freedom to rewrite makes you more productive.** If you know in the back of your mind that you can do a rewrite if it doesn't work out, you won't try to engineer a perfect, general solution on the first go. The critical step is writing a working program, complete with tests, that does exactly what you need it to do. You want to silence the voice in the back of your head that keeps asking, "What if I decide to add X in the future?" Once you give in to that urge, you'll be going down rabbit holes and spending long hours engineering solutions for problems you don't have.

Rewrites are cheap. Your time, on the other hand, is not - don't waste it writing programs that don't provide an immediate return.

**You can rewrite and test a lot of code quickly.** I can knock out a lot of (fully tested) code in a couple of hours if I'm doing a rewrite. I can reuse much of the earlier code, and once I understand the logic, I can do a much better job. And it can be hard to write good tests while you're trying to define the problem. When you start a rewrite, you know what you're trying to accomplish, and that makes it a lot less challenging (and faster!) to write good tests.
Why Angular Teams Fail at Code Sharing and How This Monorepo Approach Will Fix It
Published: 2019-08-22 19:00:43

After wasting countless hours been held back by managing NPM libraries, I started to look into using monorepoes as a better and faster alternative for code sharing. I have never looked back and will almost always recommend going with a monorepo approach. The hard part about monorepo is the extra tooling required to get it running on the CI. This post, as one of the only on the internet, will give you a guide for the practical steps to get it set up and working with your CI


Read the whole post here:

https://christianlydemann.com/why-angular-teams-fail-at-code-sharing-and-how-this-mono-repo-approach-will-fix-it/
How to Bookmark commands in Terminal
Tags: productivity, terminal, linux, tutorial
Published: 2019-08-22 18:48:17

Always we hate to type or search or copy and paste most often used commands in the terminal.

I found a great tool to ease the navigation in the terminal, called [**Apparix**](https://micans.org/apparix/). It lets you bookmark a folder so that you easily can navigate to it just by typing

```to nameofbookmark```

To install apparix in Ubuntu, type

```sudo apt-get install apparix```

To install in Mac, type

`brew install -v apparix` or  [Run this Script](https://gist.github.com/glombard/a91a822098aed7bb50a7) 

in a terminal window.

After installation, you need to set up the aliases `bm` for bookmarking and `to` for going to a bookmark by adding a few functions to your `.bashrc file` in your home folder (if you don’t have this file, you can create it yourself).

You’ll find the functions you need to add by issuing the command

```apparix –shell-examples```

in a terminal window. Copy everything below **Bash-style functions** except the **CSH-style aliases**. Paste this into your `.bashrc file`.

Open up a new terminal, cd to your directory of choice and type

```bm mybookmark```

to bookmark the folder. Afterward, you can go to any folder and type

```to mybookmark```

to go to your bookmark.

This tool is, of course, available for other Linux distributions too.

Reference:  [https://micans.org/apparix/](https://micans.org/apparix/)
What's your favorite time of day to start coding? 
Tags: watercooler
Published: 2019-08-22 18:13:19

As a hobbyist, and being home-schooled, I have a semi-flexible schedule on when I can code. Don't worry, my Mom makes me do plenty of schoolwork.  I usually wake up around 2am, but really only start "moving" around 3. So after I do my morning routine, around 3:30 I can start coding which I do to around 6am. But I was wondering as a hobbyist (or not) when do you code, and how long?
@CacheResult of Hystrix is not working with RxJava
Tags: discuss, java
Published: 2019-08-22 17:49:59

I am using Hystrix request level caching but with RxJava new threads are created depending on the kind of schedulers. I am using schedulers.io.
I get error Hystrix Request Context should be initialized wheb it's already initialized but they are threadlocal and hence to just main thread.
Can they be used together?
How to be a good dev on bad environment place?
Tags: discuss, career, devs, mexico
Published: 2019-08-22 17:02:58

---
title: How to be a good dev on bad environment place?
published: true
description: Question, What can I do for continue grow up for create a good experience?
cover_image: https://thepracticaldev.s3.amazonaws.com/i/3znvyjx3h1syooko0q5y.jpg
tags: #discuss, #career, #devs, #mexico
---

This is my first post, I'm from Mexico, in southeast of the country, we have a economy from the oil industry and tourism, but in this region in I.T. or tech, we´re in a bad environment for new work oportunities or meet a new people with more kwnoledge about this work. What can I do for continue grow up for create a good experience?
How do you balance social media and work?
Tags: discuss, productivity, watercooler
Published: 2019-08-22 16:55:22

I'll admit, I'm spoiled in that my current role allows me to work from home. So, Twitter or my favorite Slack group isn't too far away. 


In the tech or developer space, being active in the community is a big part of it. But it can easily take over if you are not careful.

How do you balance keeping up with social media while also getting work done?
NodeJS: How To Run Scripts From The Terminal & Use Arguments
Tags: javascript, node, eli5
Published: 2019-08-22 16:46:30

---
title: NodeJS: How To Run Scripts From The Terminal & Use Arguments
published: true
description: how to run scripts from the cli & use arguments
tags: javascript, node, eli5
series: Intro to NodeJS
---

## Intro

So we [installed NodeJS](https://dev.to/miku86/what-is-nodejs-how-to-install-it-1900) on our machine.

Now we want to write a simple script, run it from the terminal & use some commandline arguments.

---

## Write a simple script

- Open your terminal
- Create a file named `index.js`:

```sh
touch index.js
```

- Add `console.log('Hello')` into it:

```sh
echo "console.log('Hello')" > index.js
```

---

## Run it from the terminal

- Run it: 

```sh
node index.js
```

---

## Use commandline arguments

- Update `index.js` to use the commandline arguments and print them:

```sh
echo "const args = process.argv" > index.js 
echo "console.log(args)" >> index.js
```

- Run it with an argument:

```sh
node index.js miku86
```

- We are seeing an array with 3 elements:

```sh
[ 
'/usr/bin/node', 
'/home/miku86/index.js', 
'miku86' 
]
```

args[0] is the path to the executable file,
args[1] is the path to the executed file,
args[2] is the additional commandline argument from step 2.

So if we want to use our additional commandline argument,
we can use it like this in a JavaScript file:

```js
console.log(args[2])
```

---

## Further Reading
[Node process.argv documentation](https://nodejs.org/api/process.html#process_process_argv)

---

## Questions

- Do you use the native `process` or some libraries like [`yargs`](https://www.npmjs.com/package/yargs)? Why?