teleren/devto huggingface dataset:
How do you populate your development databases?
Tags: discuss, productivity, database
Published: 2017-10-09 21:45:19

---
title: How do you populate your development databases?
published: true
description: 
tags: discuss, productivity, databases
---

For small projects, it's very easy -- if not always good practice -- to grab a copy of the production database and save it locally for use in development.

However, as a project grows, this becomes increasingly more time consuming and increasingly more unsafe (as individual team members should probably not be walking around with tons of actual user data on their local machines).

Further, for organizations that are open source, it certainly doesn't make sense to freely distribute copies of production data to anyone who wants it.

So, my question to you is this: how do you populate your development databases?
Depression & Anxiety in programming
Tags: mentalhealth, discuss, career
Published: 2017-10-09 17:29:29

---
title: Depression & Anxiety in programming
published: true
description: How do YOU handle it?
tags: mentalhealth, discuss, career
---

I recently attended a developer retreat in beautiful Golden, Colorado and ran into something that surprised me. We were doing an ice breaker exercise and you were supposed to mention something that you were working on improving about yourself. So I mentioned that I was working on finding better ways to handle my depression and anxiety. To my surprise, the majority of the people in our little group expressed similar desires.

With World Mental Health Day being October 10th, (and it seems like these are very prevalent issues in our industry), I wanted to post here and ask: Do you suffer from depression or anxiety? If so, what are some ways that you've found help you when you're having a tough day?
How to find a wifi password you've saved on your Mac
Tags: tips
Published: 2017-10-09 16:32:08

---
title: How to find a wifi password you've saved on your Mac
published: true
description: A quick and easy tip to find a saved wifi password on your computer.
tags: tips
---

Occasionally I'll need to find the password for a wifi network that I joined ages ago.  Maybe it's because I'm meeting a friend at a coffee shop who needs the password, or I want to join from my phone, or I just want to be double-sure before telling someone else.

I had previously assumed the info would be hidden somewhere in Network Settings.  No luck.  After searching there, I eventually stumbled upon the quick/easy solution that I'll share here.

Assuming you're using a Mac, simply open up Keychain Access.
![Keychain Access](https://cl.ly/2M2w0j331u1l/Image%202017-10-09%20at%2012.23.50%20PM.png)

From there, you can search for the network name.
![Keychain search view](https://cl.ly/2P2j2U0T001m/Image%202017-10-09%20at%2012.31.39%20PM.png)

Select that entry and hit "show password."
![show password option](https://cl.ly/2Z3q1A3r1Q3l/Image%202017-10-09%20at%2012.28.21%20PM.png)

You'll probably need to provide system access, but then you should be all set.

Hope this quick-tip helps save you some frustration the next time you need to find a saved network password!
The 7 Most Popular DEV Posts from the Past Week
Tags: top7
Published: 2017-10-09 16:09:42

---
title: The 7 Most Popular 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/xsr1z6iqv0pd7p3s6ns3.png
---

#1. ðŸ‘¤ Staying in the shadows is not the fastest way to grow ðŸŒ±

[Lorenzo](https://dev.to/lpasqualis) offers advice on how software engineers can be deliberate about creating their personal brand. 

{% link https://dev.to/lpasqualis/personal-brand-development-for-software-engineers-ac6 %}

#2. Ask Jenn Schiffer Anything! 

We hosted an AMA with [Jenn Schiffer](https://dev.to/jennschiffer), the community engineer on the Glitch team at Fog Creek. She's also the creator of [make8bitart.com](https://make8bitart.com/) and an organizer of javascript meetups. 

{% link https://dev.to/jennschiffer/im-the-community-engineer-on-the-glitch-team-at-fog-creek-ask-me-anything-8ao %}

#3. Better tasks and more money ðŸ’¸

[Patrick](https://dev.to/_patrickgod) gives us three reasons to quit our jobs and apply for another. 

{% link https://dev.to/_patrickgod/3-reasons-why-you-should-quit-your-job-88g %}

#4. From Clipper to Salesforce

"For the first time in my life the word "creativity" had an empirical meaning. I was creating things. Digital things, but still, things. Pieces of code doing exactly what I told them to do. That was fascinating." [Matheus](https://dev.to/toadgeek) shares his story of how he ended up becoming a Salesforce developer. 

{% link https://dev.to/toadgeek/how-i-ended-up-becoming-a-salesforce-developer-1m6 %}

#5. Terminal UX

A list of command line applications that might make you a happier person. 

{% link https://dev.to/sobolevn/using-better-clis-6o8 %}

#6. Can we create web apps in rust?

Yes! And [Huy](https://dev.to/huytd) shares a few different approaches in this post. 

{% link https://dev.to/huytd/rust-for-the-web-55 %}

#7. Hard challenges are the best challenges

[Sean](https://dev.to/nektro) decided to take on the challenge of writing a compiler. In this post we learn about Lexing, Parsing, and Code Generation.

{% link https://dev.to/nektro/how-i-accidentally-wrote-an-awesome-html-preprocessor-995 %}


_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 Monday!_
Is git the be all and end all of version control?
Tags: discuss, git
Published: 2017-10-09 15:54:29

---
title: Is git the be all and end all of version control?
published: true
description: Git was invented by the Linux project in order to move beyond the crappy solutions they had in place before, and since then it has established itself as the de facto standard for version control and software collaboration.
tags: discuss, git
---

Git was invented by the Linux project in order to move beyond the crappy solutions they had in place before, and since then it has established itself as the de facto standard for version control and software collaboration.

But I'm wondering if, now that we've lived with git for a while, are there any clear alternate approaches we could be considering for what we do in software development. Git is not exactly the easiest thing to _not_ mess up.

But it can be hard to even imagine an alternative to such an ingrained practice, but I'd love to hear any thoughts on the subject at all.
The long over-due commit of Open Source
Published: 2017-10-09 06:02:51

---
title: The long over-due commit of Open Source
published: true
canonical_url: https://www.lirantal.com/blog/2017-10-09_the-long-overdue-commit-of-opensource
---

This is a story of patience in Open Source, where every bug, every Pull-Request gets attention.

I discovered [freeboard](https://github.com/Freeboard/freeboard), an opensource dashboard for Visual UI Widgets. I needed to use it for a Hackathon we were performing in my team last year.

The framework is very cool and mature, the creators of freeboard even have a SaaS offering for anyone to sign-up and share dashboards. Getting the product to work on your own computer is easy, but for new comers the README documentation is lacking.

So [here’s my Pull-Request](https://github.com/Freeboard/freeboard/pull/129) to fix that, and ease new-comers to the project.
Yes, you’re reading right, this PR is from last year! 7 months ago…

![](https://cdn-images-1.medium.com/max/1760/0*GHZRJDJRseq6v8n5.png)

Some people commented on the PR, but only months later this was reviewed and merged to freeboard’s mainstream branch:

![](https://cdn-images-1.medium.com/max/1760/0*HQFFIkttsMtRvhE0.png)

So don’t give up. Do your best to improve software wherever it is.

As Eric Raymond says and attributes Linus:
> "given enough eyeballs, all bugs are shallow"

So what open source projects have you been working on lately?



p.s.
this is a re-publishing of an old post, but I always find it relevant and motivates developers to get into open source.
Are you a Boy Scout?
Tags: programming, refactoring, practices
Published: 2017-10-09 15:03:02

---
title: Are you a Boy Scout?
published: true
description: 'A look at how the simple practice of "boyscouting" can improve your code.'
tags: programming, refactoring, practices
canonical_url: https://jason.pureconcepts.net/2015/01/are-you-a-boy-scout/
---
A while back [Samuel Goodwin](https://twitter.com/samuelgoodwin) left a commit message of *"Boyscouting"*. When I asked him about the commit he reminded me of a rule from the Boy Scouts:

> Leave it better than you found it.

Applied to development, this meant [eliminating dead code](http://en.wikipedia.org/wiki/Dead_code_elimination), removing comments, and standardizing format. Samuel did this before he made changes.

Since then, I have tried to follow this practice. It requires discipline. Not only in routine, but in restraint. It's tempting to add other changes to your *"Boyscouting"* commit.

It is important to understand boyscouting does not *change* code, only *cleans* it. Boyscouting is not refactoring. Boyscouting is not fixing bugs.

When in doubt, see if your boyscouting passes this test:

> Would reverting the commit result in code loss?

If so, then you've done more than boyscouting. Commits are cheap. As shown in the screenshot, separate changes into their own commit.

![Commits for Boyscouting](https://thepracticaldev.s3.amazonaws.com/i/1fhrjcdopr96kvgv0d0m.png)

Practicing something as simple as boyscouting not only improves the codebase, it improves my development. I no longer waste time on dead code or fixing formatting. Instead I can focus on making changes and use any extra time to improve the code further.

Share the practice of boyscouting with others as Samuel did with me. Boy Scout your code!

_**Want to learn more of these practices?** Check out my other posts on [Writing Clean Code](https://dev.to/gonedark/writing-clean-code) or [pair program with me](https://coaching.pureconcepts.net) to level up your skills._
What one should know about VIM before starting to use it?
Tags: discuss, vim, editor, vimeditor
Published: 2017-10-09 13:09:07

---
title: What one should know about VIM before starting to use it?
published: true
description: 
tags: discuss, VIM, editor, VIM editor
---

I really want to start using VIM, but I would like to know what do you think it is important to know before starting to venture out with it.
How do YOU deal with imposter syndrome?
Tags: impostersyndrome, juniordeveloper, discuss, junior
Published: 2017-10-09 11:26:11

---
title: "How do YOU deal with imposter syndrome?"
published: true
description: Dealing with imposter syndrome and not feeling good enough.
tags: impostersyndrome, juniordeveloper, discuss, junior
---
How do **YOU** dealwith imposter syndrome?
What are the best freebies you ever seen at a conference or contest?
Tags: fun, conference, discuss
Published: 2017-10-09 11:14:34

---
title: What are the best freebies you ever seen at a conference or contest?
published: true
description: 
tags: fun, conference, discuss
---

My favourites - RC helicopter from New Relic and [ContentSocks](https://twitter.com/hashtag/Contentsocks) 

![](http://i.imgur.com/5my0iqd.jpg)
Will a Jack Of All Trades, Master Of None developer get hired these days?
Tags: discuss, career, junior
Published: 2017-10-09 10:36:25

---
title: Will a Jack Of All Trades, Master Of None developer get hired these days?
published: true
tags: discuss, career, junior      
---

I know how to start a product with a wide spectrum of languages/frameworks/tools, but I don't excel in any. I can make a good native android app with medium functionality, but I don't master the design and layouts. I can make a minimal Ruby on Rails app, but nothing more. I can make a small game in Unity 3D. I'm learning Elm, JS, and ReactJS, but I can't really build anything with them right now.
I usually learn technologies when I need them.

I'm trying to get hired overseas or work on a remote position, but it seems like a bit hard.
Should I just quit applying and focus on learning a narrow set of skills, or do companies hire learners like me?
How to star contributing to Open source projects ?
Tags: opensource, github, discuss, firsttimers
Published: 2017-10-09 10:30:26

---
title: "How to star contributing to Open source projects ?"
published: true
description: discussion to help first timers contribute to open source projects.
tags: #Open-Source, #Github, #discuss, #first-timers 
---

as a first-timer and many other programmers just like me we would need help getting started with open source projects this discussion is to share 
experiences and guide those first-timers
Find sublists in list by sum
Tags: lisp
Published: 2017-10-09 09:52:55

---
title: Find sublists in list by sum
published: true
description: 
tags: lisp
---

Help me please with task.

Given a list L = (A0, A1 , A2, ..., An). Find sublists if they exist  L1 = (Ai, Ai + 1, ..., Ai + k), i + k <= N, i >= 1, for which  M = Ai + Ai + 1 + ... Ai + k.

For example:

L = (1 3 -16 5 7 8 2 2), M=12 
Result:

L1 = (1 3 -16) //1+3-16=12
L1 = (5 7)     //5+7=12
L1 = (8 2 2)   //8+2+2=12
Hi, I'm Adnan Kičin
Tags: introduction, php
Published: 2017-10-09 09:33:32

---
title: Hi, I'm Adnan KiÄin
published: true
description: 
tags: #introduction #php
---

First of all, it's my birthday today, so I expect only unicorn reacts on this post.

I have been programming for 5 years.You can find me on GitHub as [TheAdnan](https://github.com/TheAdnan/), or on [Quora](https://www.quora.com/profile/Adnan-Ki%C4%8Din).

I live in Sarajevo, Bosnia & Herzegovina, if one can call this living.

I've been programming mostly in PHP, specifically using Yii (Yeah, Yii), Laravel and Slim as of late. I'm also familiar with C, C++, Scheme (IKR?), Node.js and several other, but I feel most at home with PHP. Recently, I've been learning Rust, React and A-Frame (and generally all the WebVR/AR stuff).


Lovely to meet you all :)
学习幂等性 Learning Idempotence
Tags: idempotent, idempotence, idempotency
Published: 2017-10-09 06:53:08

---
title: å­¦ä¹ å¹‚ç­‰æ€§ Learning Idempotence
published: true
description: å¹‚ç­‰æ€§çš„å­¦ä¹ èµ„æº resources about learning idempotent
tags: idempotent, idempotence, idempotency
---

[ç†è§£ HTTP å¹‚ç­‰æ€§ï¼ˆ15'ï¼‰](http://www.cnblogs.com/weidagang2046/archive/2011/06/04/idempotence.html) Understanding HTTP idempotence

[ç³»ç»Ÿå¹‚ç­‰ä»¥åŠå¸¸ç”¨å®žçŽ°æ–¹å¼ï¼ˆ10'ï¼‰](http://yongpoliu.com/idempotent/) Common Implementation

[åˆ†å¸ƒå¼ç³»ç»Ÿäº’æ–¥æ€§ä¸Žå¹‚ç­‰æ€§é—®é¢˜çš„åˆ†æžä¸Žè§£å†³ï¼ˆ30'ï¼‰](http://tech.meituan.com/distributed-system-mutually-exclusive-idempotence-cerberus-gtis.html) Meituan Solution: Mutually Exclusive Idempotence on Distributed System

å¯¹â€œå¹‚ç­‰â€ä¸€è¯çš„è®¨è®ºä¸ŽæŽ¢ç©¶ï¼š[REST ä¹‹ä¸­çš„å¹‚ç­‰æŒ‡çš„æ˜¯ä»€ä¹ˆï¼Ÿï¼ˆ20'ï¼‰ï»¿](http://www.infoq.com/cn/news/2013/05/idempotent) Discussion on Definition and Concept of the Word "Idempotent"
ReduxJS in 30 seconds
Tags: javascript, redux, react, inthirtyseconds
Published: 2017-10-09 03:00:42

---
title: ReduxJS in 30 seconds
published: true
description: Redux is a JavaScript library that aims to simplify how we manage stateful data.
tags: javascript, redux, react, inthirtyseconds
---
Redux is a JavaScript library that aims to simplify how we manage stateful data. Redux keeps all of our data in a single JS object called the `Store`. A single function, the `reducer`, is responsible for making modifications to the Store. We trigger the reducer by 'dispatching' an `action` - a JS object that describes how our data should change. The reducer function receives the action as an argument and makes changes accordingly. Other parts of the code (usually React Components) can subscribe to data in the Store. When data changes, Redux notifies subscribers of the change.
Coder's Life Comic 003: RegEx
Tags: fun, comic
Published: 2017-10-08 20:04:50

---
title: "Coder's Life Comic 003: RegEx"
published: true
description: 
tags: fun, comic
---

The risk of overusing RegEx in your project ðŸ˜‚

![](https://thepracticaldev.s3.amazonaws.com/i/v80sccjuqgcq71a22wpm.png)
Coder's Life Comic 002: Learning JavaScript
Tags: fun, comic
Published: 2017-10-08 20:02:06

---
title: "Coder's Life Comic 002: Learning JavaScript"
published: true
description: 
tags: fun, comic
---

Being a JavaScript developer these days is tough...

![](https://thepracticaldev.s3.amazonaws.com/i/jlw1vek74esh8wh8dwsa.png)
Coder's Life Comic 001: Algorithm
Tags: comic, fun
Published: 2017-10-08 19:59:49

---
title: "Coder's Life Comic 001: Algorithm"
published: true
description: 
tags: comic, fun
---

Don't you think `npm` got everything we need?

![](https://thepracticaldev.s3.amazonaws.com/i/57345ul20xw0dcgo4dss.png)
Design patterns. How do you select yours?
Tags: discuss, javascript, coding, beginners
Published: 2017-10-08 16:37:13

---
title: Design patterns. How do you select yours?
published: true
description: There have been many published design patterns and selecting the right one to use for the problem at hand can make or break your project. How do you select yours?
tags: discuss, javascript, coding, beginners
---

I’ve recently found myself spending time reading up on the various design patterns out there, primarily JavaScript based but they can be applied to any language. I found [this great free book](https://addyosmani.com/resources/essentialjsdesignpatterns/book/)  which provides a good overview of what is possible in JS but it got me thinking. With so many design patterns out there I’ve hit a number of questions such as:

- How should I identify a pattern that best suits my situation, what questions should I be asking myself?
- Should I start out with a pattern for my whole project?
- Is not knowing all of the patterns a bad thing? I feel there is great risk in only knowing a set way of doing things.
- Can I just pick one or two and get quite far through my projects without bad practice?
- How should I document my pattern for others to easily understand the structure of my project and code?
- Is following something better than nothing?

My worry would really be selecting the wrong pattern and trying to force my code and project to match. It would be great to see how other people tackle these decisions.
How to Begin Contributions to Open Source Projects?
Tags: opensource, beginners, discuss
Published: 2017-10-08 14:59:03

---
title: How to Begin Contributions to Open Source Projects?
published: true
description: open source, beginner
tags: open source, beginner, discuss
---

Hello Everyone. This is my first post. So kindly bear with me. I've programming for so many years. Most of them are mostly concentrated on learning languages and projects just to make professors happy in college. I always dream contributing myself to the open source community. But frankly I don't know where to start.

I have close to an year of experience in developing enterprise application (That's my current full time job). Is that enough to qualify me to begin my contributions?

Would you suggest starting my contributions on fairly new projects or well established ones?
Hi, I'm CS
Tags: introductions
Published: 2017-10-08 14:57:50

---
title: Hi, I'm CS
published: true
description: My introduction post
cover_image: 
tags: introductions
---

I have been coding professionally since 2011.

You can find me on Twitter as [@cschmitz81](https://twitter.com/cschmitz81)

I live in St. Louis, MO, USA.

I work for [Paradowski Creative](www.paradowski.com).

I mostly program in these languages: javascript, php, python, C++.

I'm also an aspiring maker. I work with raspberry pi, arduino, fusion 360, laser cutters, and 3d printers.
Quickfire Discussion: I'm a Junior Developer, tell me your top 3 pieces of advice.
Tags: juniordeveloper, advice, discuss, intern
Published: 2017-10-08 14:15:18

---
title: "Quickfire Discussion: I'm a Junior Developer, tell me your top 3 pieces of advice."
published: true
description: 
tags: JuniorDeveloper, advice, discuss, intern
---

Quickfire Discussion: I'm a Junior Developer, tell me your top 3 pieces of advice.

What did you wish you knew when you were a Junior Developer?

What would you tell current Junior Developers?

etc
What's the best way to learn and practice data structures and algorithms 
Tags: discuss
Published: 2017-10-08 09:56:22

---
title: What's the best way to learn and practice data structures and algorithms 
published: true
tags: discuss
---
What is the best way to learn and practice data-structures and algorithms? Apart from reading books and practicing in Hackerrank is there any other recommendations to improve our problem-solving skills.
Benchmarks comparing gRPC+Protobuf vs JSON+HTTP in Go
Tags: go, grpc, protobuf, rest
Published: 2017-10-08 08:04:46

---
title: Benchmarks comparing gRPC+Protobuf vs JSON+HTTP in Go
published: true
description: Benchmarks comparing gRPC+Protobuf vs JSON+HTTP in Gousing Go.
tags: go,grpc,protobuf,rest
---
![grpc-json.png](http://pliutau.com/grpc-json.png)

Simplest possible solution for communication between services is to use JSON over HTTP. Though JSON has many obvious advantages - it’s human readable, well understood, and typically performs well - it also has its issues. In the case of internal services the structured formats, such as Google’s Protocol Buffers, are a better choice than JSON for encoding data.

gRPC uses protobuf by default, and it's faster because it's binary and it's type-safe. I coded a [demonstration project](https://github.com/plutov/benchmark-grpc-protobuf-vs-http-json) to benchmark classic REST API using JSON over HTTP vs same API in gRPC using Go.

This repository contains 2 equal APIs: gRPC using Protobuf and JSON over HTTP. The goal is to run benchmarks for 2 approaches and compare them. APIs have 1 endpoint to create user, containing validation of request. Request, validation and response are the same in 2 packages, so we're benchmarking only mechanism itself. Benchmarks also include response parsing.

I use Go 1.9 and results show that gRPC is **10 times faster** for my API:

```
BenchmarkGRPCProtobuf-8   	   10000	    197919 ns/op
BenchmarkJSONHTTP-8       	    1000	   1720124 ns/op
```

### CPU usage comparison

Restart applications, then use profiling tool `pprof` during 30 sec when the client is talking to the server with these commands:

```
go tool pprof http://localhost:6060/debug/pprof/profile
go tool pprof http://localhost:6061/debug/pprof/profile
```

Run tests to get client connections. Then in each `pprof` run `top` to see CPU usage.
My results show that Protobuf consumes less ressources, **30% less**.

### Test it by your own

If you want to test it by yourself you can clone this [repository](https://github.com/plutov/benchmark-grpc-protobuf-vs-http-json) and run the following commands:

```
glide i
go run grpc/main.go
go run json/main.go
go test -bench=.
```

### Conclusion

It's totally clear that for internal-only communication it's better to use gRPC, your client calls will be much cleaner, you don't have to mess with types and serialization, because gRPC does it for you.

[Original post in my Blog](http://pliutau.com/benchmark-grpc-protobuf-vs-http-json/)