teleren/devto huggingface dataset:
new Developer(you); // How not to suck as a new developer
Tags: career, beginners
Published: 2019-08-31 19:24:53

Everyone has to start somewhere and with how broad the field of software development is, it's impossible to know everything you need to know at the start of your career - even in a very narrow area such as a single language or framework.

So how can you possibly perform well in this type of environment - either right out of college, boot camp, or even potentially self-taught?

Well, the good news is that we do not expect you to know everything day one. Expectations on junior team levels are fairly narrow:

- We expect you to know the basics of software development
- We expect you to know common program flow and components (if statements, loops, functions, classes, etc)
- We expect you to be able to build and run code using the editor of choice for the organization

That's pretty simple, right? Most educations will prepare you for this level of competence. However, on top of that we also expect some things that may not be obvious:

- We expect you to ask questions when you don't understand something (technical or business-related)
- We expect you to work hard
- We expect you to continually learn and grow to the point where you can contribute more
- We expect you to tell us how you want to grow and improve
- We expect you to bring us problems after working through them yourself
- We expect you to not spend hours on trying to work through a blocking issue someone could spend 10 minutes helping you with
- We expect you to show up on time and be responsible
- We expect you to be professional and respectful
- We expect you to be honest when you mess up (and you will - we all do)
- We expect you to be open to feedback

---

If an organization has hired a developer at the beginning of their career, the organization realizes that the dev is going to need some investment, mentoring, and time to become a solid contributor to the team. That's okay, but we do expect that developer to work hard to continue to contribute.

And if you get that job and don't feel like a developer? That's okay, impostor syndrome is real, but the best antidote to it is just to keep working and learning.

Keep learning, keep growing, be reliable, honest, respectful, and a hard worker, and you're going to get better and get more and more opportunities to shine. Read technical books, watch learning videos on YouTube, Pluralsight, LinkedIn Learning, or other platforms, ask questions, attend user groups and/or conferences, but just keep getting better.
Add Webpack to Rails 5
Tags: rails, rails5, webpack, webpacker
Published: 2019-08-31 18:54:29

---
title: Add Webpack to Rails 5
published: true
tags: rails,rails5,webpack,webpacker
canonical_url: https://candland.net/rails/2019/08/30/add_webpack_to_rails5.html
---
<p>The push to use webpack with rails is getting too much to resist!</p>

<p>You can setup some good stuff with sprockets, but it’s a pain and
a lot of it doesn’t seem too updated.</p>

<p>So… to get things like good ES6 support, minification, easier
script managment with Yarn, and PostCSS support; It’s time for
webpacker</p>



[Full post](https://candland.net/rails/2019/08/30/add_webpack_to_rails5.html)
I am a .NET and JavaScript / TypeScript development manager and application developer, Ask Me Anything!
Tags: ama
Published: 2019-08-31 18:23:35

My background includes:

- Programming since I was 7 (in 1987)
- 13 years in the Software as a Service industry
- Desktop application development in WPF on home automation software
- Building agile and waterfall project and resource management software in WPF, Silverlight, ASP .NET, SignalR, Angular, and TypeScript
- Focusing on software quality in Interstate and Local move pricing and surveying software in .NET and .NET Core Web API projects
- Team Leadership and Management
- Being an unabashed nerd
Gem markdown_helper Adds Feature:  Run Irb
Tags: ruby, markdown, github, documentation
Published: 2019-08-31 17:05:27

---
title: Gem markdown_helper Adds Feature:  Run Irb
published: true
description: 
tags: ruby, markdown, github, documentation
---

I've added a feature to <code>markdown_helper</code>:  the ability to execute markdown-embedded Ruby snippets in the Ruby interactive shell, <code>irb</code>.

* [Use case](https://github.com/BurdetteLamar/markdown_helper/blob/master/markdown/use_cases/run_irb/run_irb/use_case.md#run-irb)
* [Project documentation](https://github.com/BurdetteLamar/markdown_helper#markdown-helper)
* [Gem](https://rubygems.org/gems/markdown_helper)

Reminder:  <code>markdown_helper</code> is available via the command line, so you can use it without writing Ruby code:

* File inclusion: <code>markdown_helper include [options] includer.md included.md</code>
* Run irb: <code>markdown_helper run_irb [options] template.md markdown.md</code>

And, as before, also available via its Ruby API.
Youtube Channel
Tags: youtube
Published: 2019-08-31 15:58:40

---
title: Youtube Channel
published: true
description: Youtube Channel
tags: Youtube
---
Hello to Dev Family, I am just sharing my youtube channel link and please subscribe it.
I came here because I know all devs will help me to grow.

[My Youtube Channel Link](https://www.youtube.com/channel/UCj_2lsnsKLuaA1dEh2os8xg?view_as=subscriber)



Thank you
How to Run single micro front End application
Tags: microservices
Published: 2019-08-31 15:54:10

I want the help , how can i learn about micro front. I had seen your tutorial in micro front end , But the problem is all application are running together, I want single application example React to run when I do npm start in react folder

please help me to edit the code and how can i achieve this.

Thankyou 
regards
harjinder singh
Angular Performance: Virtual Scrolling with the CDK
Tags: angular, performance, javascript, videos
Published: 2019-08-31 15:36:19

---
title: 'Angular Performance: Virtual Scrolling with the CDK'
canonical_url: 'https://juristr.com/blog/2019/08/ngperf-virtual-scrolling-cdk'
published: true
description: Reduce the amount of DOM nodes with CDK's virtual scrolling
cover_image: 'https://juristr.com/blog/assets/imgs/ngperf/ngperf-virtual-scrolling.jpg'
tags:
  - angular
  - performance
  - javascript
  - videos
---

_This post has originally been published on [https://juristr.com/blog/2019/08/ngperf-virtual-scrolling-cdk](https://juristr.com/blog/2019/08/ngperf-virtual-scrolling-cdk). Go to [juristr.com/blog](https://juristr.com/blog) for more content_

---
    


  This article is part of my "Angular Performance Week" series, where I publish a new video each day based on the performance articles on web.dev/angular.

<!--more-->



> Note: this article and attached Egghead video lesson are based on the articles on [web.dev/angular](https://web.dev/angular) by [Minko Gechev](https://twitter.com/mgechev) and [Stephen Fluin](https://twitter.com/stephenfluin). Full credit goes to them :thumbsup:

## Angular Performance Series

1. [Route Level Code Splitting](https://juristr.com/blog/2019/08/ngperf-route-level-code-splitting/)
1. [Preload Lazy Routes in Angular](https://juristr.com/blog/2019/08/ngperf-preloading-lazy-routes)
1. [Performance budgets with the Angular CLI](https://juristr.com/blog/2019/08/ngperf-setting-performance-budgets)
1. [Optimize Angular's Change Detection](https://juristr.com/blog/2019/08/ngperf-optimize-change-detection)
1. **Virtual Scrolling for large lists with the CDK**
1. [Precaching with the Angular Service Worker](https://juristr.com/blog/2019/08/ngperf-precaching-serviceworker)

Don't miss the other videos [by subscribing to my newsletter](https://juristr.com/newsletter).

## Leverage the Angular CDK to implement virtual scrolling

Browsers become faster every day, but still, **DOM updates are costly**. If we have large lists, the browser needs to render them upfront, creating hundreds if not thousands of DOM nodes, even though the user might not scroll that far down the list. Not only does this slow down the scrolling itself, but even the page load of our app can suffer from it. To optimize this experience, we can use **virtual scrolling**, in particular, in this lesson we’re using Angular’s CDK to implement that.

{%youtube 5L4YTcSrRXs%}

### Original web.dev article

Wanna read the original web.dev article? [Check it out here!](https://web.dev/virtualize-lists-with-angular-cdk/).
Turtle graphics in JavaScript the goofball way
Tags: javascript, html, coding, tutorial
Published: 2019-08-31 15:36:05

http://slicker.me/javascript/turtle.htm

Turtle graphics is available for example in Logo (since 1960s) and Python, but not in JavaScript.
Or is it? It dawned on me that context.rotate basically emulates 'turn left/right' and context.translate combined with moveTo/drawTo behaves just like 'move forward/back'.
This is definitely not an elegant or scalable way of programming graphics - kind of like tying your shoe with an earthworm: it looks cool, but only works in certain conditions. Just another gizmo in my collection of weird code. If you to play with real turtle graphics, I suggest you use one of the many available JS libraries, Python or Logo. Or at least create actual functions that move and rotate the turtle to make your code readable.
Sorry if you've heard this one before
Tags: jokes
Published: 2019-08-31 14:52:27

---
title: Sorry if you've heard this one before
published: true
description: The engineer and the hot air balloon
tags: jokes
---

Apologies if you've heard this before - it's not exactly a new joke...

A man is standing on a hill when a hot air balloon sails towards him, and stops around five feet above his head.

The man in the hot air balloon calls down to the man on the ground: "Excuse me!  Could you help me?  I'm a bit lost - please could you tell me where I am."

The man on the ground looks up, looks around, and replies: "Yes, you're in a hot air balloon, hovering about 9 - 10 feet off the ground!"

The man in the hot air balloon replies: "You wouldn't happen to work in IT support would you, Sir?"

The man on the ground looks surprised: "Yes, as a matter of fact, I do.  How did you know?"

The man in the balloon smiles: "Well, everything you've told me is factually correct - but absolutely no use to anyone."

The chap on the ground rubs his chin for a minute, and replies: "This is a strange situation, but I encounter people like you every single day in my job.  You don't know where you are and you don't know where you're going!  You're in the same position you were in before we met, but now it's my fault!"
Productivity. Put the theory aside and practice !
Tags: discuss, productivity, motivation, beginners
Published: 2019-08-31 14:44:54

---
title: Productivity. Put the theory aside and practice ! 
published: true
description: How not practicing can kill effort !
tags: discuss, productivity, motivation, beginners
cover_image: https://media.giphy.com/media/Fn1XLXZORb7H2/source.gif
canonical_url: https://blog.yafkari.dev/blog/productivity-put-the-theory-aside-and-practice-876
---

Hello everyone,
It's been a while since I wrote articles, but we'll fix it !

Today, we will speak about productivity.


One of the biggest concerns of developers is their productivity. That's a fact.

We hear about it every time and everywhere. 

*"You have to be more productive."
"You have to be more competitive"*

We hear about it so often that at one point of my life, I was only reading and documenting about how to be more productive and produce code quicker and cleaner.

Reading posts and watch people's life on YouTube to see how they manage their time (the hype of "a day in the life of.."), ...

Actually, I learned a lot and found some good ideas, but it took me sooo much time.

And it is not useful to look at videos the whole day and at the same time not practicing those concepts and ideas.

*And that's how I became non-productive because of articles/videos about productivity !*

Instead of following some people's advice and apply them in my life, I have just lost my time and that's it.

I was watching people get better and I stayed comfortably in my role as a spectator.


So, if you are in the position I was a few months ago, please get up of your bed, stop reading anything and practice what you already learned. 


That's it, you reached the end of this post.
I hope you enjoyed it and you earned something of it.

If you see some English mistakes, do not hesitate to correct me in the comments 😅


Finally, feel free to share your experience / give your opinion! 😃
Fish Shell: Private Mode For No Logging
Tags: fish, shell, privatemode, nologging
Published: 2019-08-31 14:39:30

---
title: Fish Shell: Private Mode For No Logging
published: true
description: fish shell has private mode for the time when you don't want to record history at all 🙂 All you have to do is just start session with --private option.
tags: fish, shell, private mode, no logging
---

[`fish` shell](https://fishshell.com/docs/current/index.html) has [private mode](https://fishshell.com/docs/current/index.html#private-mode) for the time when you don't want to record history at all 🙂

Just start session with `--private` option:

```console
$ fish --private
```

The result is:

```console
Welcome to fish, the friendly interactive shell.
fish is running in private mode, history will not be persisted.
$ # You can run some commands...
```

In order to stop private mode, just type `exit`:

```console
$ exit
$
```

After that, the latest history is like this 😉

```console
$ history | head -1
fish --private
```

There is no history around any execution in private mode.
Daily Challenge #54 - What century is it?
Tags: challenge
Published: 2019-08-31 13:48:25

---
title: Daily Challenge #54 - What century is it?
published: true
series: Daily Challenge
description: Write a function that returns a year in century format.
tags: challenge
---

**Challenge** 
Write a function that will return an inputted numerical year in century format. The output should have the appropriate written ending ('st','nd','rd','th') as well.

**Examples**
In: `2259` Out: `23rd`
In: `1124` Out: `12th`
In: `2000` Out: `21st`

Good luck!

***
_This [challenge](https://www.codewars.com/kata/52fb87703c1351ebd200081f) comes from Cpt.ManlyPink on CodeWars. Thank you to [CodeWars](<https://codewars.com/>), who has licensed redistribution of this challenge under the [2-Clause BSD License](<https://opensource.org/licenses/BSD-2-Clause>)!_

_Want to propose a challenge idea for a future post?  Email **yo+challenge@dev.to** with your suggestions!_
Generate a QRCode vCard using Go
Tags: go, qrcode
Published: 2019-08-31 13:31:19

---
title: Generate a QRCode vCard using Go
published: true
description: Example on how to generate a QR code with vCard data using Go
tags: golang, qrcode
---

Every time I receive a business card, I always check if there is a QR code in it. QR codes are very useful since most mobile phone cameras  nowadays can automatically recognise QR codes. Once a QR code which contains vCard data is detected, phones automatically launch "Add Contact" with the details read from the QR code. So all you have to do is just tap "Save" to add the new contact. There is no need to fill in your contacts' information  from the business card.  This saves a few seconds of our lives. Who wants filling in data? :)

I've always been curious how to create these QR codes which contain vCard data so I searched on how to generate them using Go. So after a few minutes, I've come up with a solution using an existing library called go-qrcode. The solution is pretty simple using go-qrcode.

Below is the full source code of the example. Since Go is very straightforward, it just takes a few lines to do it. The example reads data from a vcard.txt file and the vcard data is passed into the qrcode library which generates the qrcode image with the encoded vCard data.

```
package main

import (
	"io/ioutil"
	"log"
	"os"

	qrcode "github.com/skip2/go-qrcode"
)

func main() {

	file, err := os.Open("vcard.txt")
	if err != nil {
		log.Fatal(err)
	}
	defer file.Close()

	b, err := ioutil.ReadAll(file)
	if err != nil {
		log.Fatal(err)
	}

	str := string(b)
	qrFname := "vcard-qr.png"

	err = qrcode.WriteFile(str, qrcode.Medium, 256, qrFname)
	if err != nil {
		log.Fatal(err)
	}

}
```

You can use the ZXing generator to generate the vCard data. Below is sample content of vcard.txt

```
BEGIN:VCARD
VERSION:3.0
N:Melvin Vivas
ORG:Freelance
TITLE:Senior Software Engineer
TEL:+1234567
URL:https://www.melvinvivas.com
EMAIL:melvindave@gmail.com
ADR:Singapore
END:VCARD
```

To run the example, you need to first download go-qrcode.

Then, just do the usual, run main.go

```
$ cd src
$ go run main.go
```

After running the application, this will generate a vcard-qr.png image file in the same directory as your application.

![Alt Text](https://thepracticaldev.s3.amazonaws.com/i/btjqzmdnd8th62mz2k29.png)

That's it! Hope you find the example useful! Source code for this example is in my github repo.

{% github donvito/go-qrcode-vcard-example %} 

Blog reposted from my Tech Blog
https://www.melvinvivas.com

By the way, I'm looking for some Go-related development work. Ping me if you have any requirement. :) http://www.melvinvivas.com/looking-for-remote-software-development-work-outsource
Apple wants to remove scripting languages from macOS
Tags: news, discuss
Published: 2019-08-31 13:24:28

---
title: Apple wants to remove scripting languages from macOS
published: true
description: "Scripting language runtimes such as Python, Ruby, and Perl are included in macOS for compatibility with legacy software. In future versions of macOS, scripting language runtimes won’t be available by default"
tags: [news, discuss]
cover_image: https://thepracticaldev.s3.amazonaws.com/i/2gcm2qktmaztfa0a0jg8.jpg
---

> Scripting language runtimes such as Python, Ruby, and Perl are included in macOS for compatibility with legacy software. In future versions of macOS, scripting language runtimes won’t be available by default, and may require you to install an additional package. If your software depends on scripting languages, it’s recommended that you bundle the runtime within the app. (49764202)
>
> -- [Xcode 11 Beta 7 Release Notes](https://developer.apple.com/documentation/xcode_release_notes/xcode_11_beta_7_release_notes)

The question is: who wants to rewrite [Homebrew](https://brew.sh/) in golang (or another compiled language)? What else will be affected by this move?

> Photo by Rishi Deep on Unsplash
NodeJS: How To Create A Simple Server Using The HTTP Module
Tags: beginners, tutorial, javascript, node
Published: 2019-08-31 12:30:51

---
title: NodeJS: How To Create A Simple Server Using The HTTP Module
published: true
description: How To Create A Simple Server Using The HTTP Module
tags: beginners, tutorial, javascript, node
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 learn how to create a _simple server_ using the [HTTP module](https://nodejs.org/api/http.html).

## Write a simple script

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

```sh
touch index.js
```

- Add this JavaScript code into it:

```js
// import http module
const http = require('http');

// server configuration
const HOST = '127.0.0.1';
const PORT = 8080;

// create the server
const server = http.createServer((req, res) => {
  res.end('Hello!');
});

// make the server listen to requests
server.listen(PORT, HOST, () => {
  console.log(`Server running at: http://${HOST}:${PORT}/`);
});
```

**Note**: This is an _extremely simple server_. I would recommend you to [read the docs of the HTTP module](https://nodejs.org/api/http.html), especially how headers work and how to send them.

---

## Run it from the terminal

- Run it: 

```sh
node index.js
```

- Result: 

```sh
Server running at: http://127.0.0.1:8080/
```

Now you can click on the link and reach your created server.

---

## Further Reading

- [HTTP module](https://nodejs.org/api/http.html)
- [Anatomy of an HTTP Transaction](https://nodejs.org/en/docs/guides/anatomy-of-an-http-transaction)
- [HTTP/2 module](https://nodejs.org/api/http2.html)
- [HTTPS module](https://nodejs.org/api/https.html)

---

## Questions

- Do you use the native `HTTP/HTTPS` module or some libraries like [express](https://www.npmjs.com/package/express)? Why do you use it?
Smart is not always smart
Tags: go, architecture, programming, javascript
Published: 2019-08-31 05:05:04

---
title: Smart is not always smart
published: true
description: Why smart solutions can be a boomerang sometimes
tags: go,architecture,programming,javascript
cover_image: https://thepracticaldev.s3.amazonaws.com/i/8jzie4y035k0u0n676s9.jpeg
---

Today I was checking a more or less old profile I have on ex-codementor page, now arc().

I saw then that I have my experiences listed like this:
![Alt Text](https://thepracticaldev.s3.amazonaws.com/i/7aerqyr0c02vwlof2hyf.png)

Ok... correct, but not all of them I would like to list here, as I'm more looking into Go and JS Projects, not anymore .NET/C#

Ok, so I dug to Edit Profile Section and Skill Settings and found out, that I can not define this 5 listed Experience Skills.

But they have a very SMART solution, which list's the skill's, where the profile owner has the most extended experience.

Does this make sense?
Well. I have 4+ years of Go experience. Go exists for more or less 7 years (v1+). But I started with HTML and then .NET 20 and 12 years ago...   
So this smart solution may be working correctly, what Dev or PO thought it should work. But it's probably not what I as the oooold guy want to see here. Imagine I would have 20y of Cobol, 25 years of Pascal etc listed, none of my "new" languages I know and want to work with would ever list here.

This is NOT a blaming of arc()'s solution.
They tried to do something smart, which may work for profiles of younger guys, but are not that smart for older (in that case).

Sometimes we try to make things to smart as developers or PO's.
So when we do a smart thing, we really must check it to be smart in all possible situations.

Now...  Personally, I also think in frameworks out there, which are trying to be very smart for everything. This mostly works, but it can be dangerous, or at coming to be a problem, as soon you must handle something with it, which is for that then specific case not more so smart.  

Cheers
Stefan