teleren/devto huggingface dataset:
Defer Panic Recover
Tags: tutorial, go, beginners
Published: 2019-06-10 23:15:37

---
title: "Defer Panic Recover"
published: true
description: "A simple app that shows how `defer`, `panic`, and `recover` work together in Go"
tags: tutorial, go, beginners
---

I was reading a bit about Go's builtin for `panic()` and `recover()`. I wanted to understand it a bit more, so I made a small app that tries to show how `defer`, `panic()`, and `recover()` all work together.

Enjoy!

[https://github.com/bearcherian/defer-panic-recover](https://github.com/bearcherian/defer-panic-recover)
Web Development Part 2D: Let's Get Weird!
Published: 2019-06-10 22:44:27

---
title: Web Development Part 2D: Let's Get Weird!
published: True
description: 
tags:
cover_image: https://gallery.mailchimp.com/fbd7db24d41cbb15fbb6a072f/images/76567adb-d5bf-4b2b-aa20-ddbbcb8ce243.png
---

Let's Get Weird!
We're going to learn all about Pseudo elements and classes! Don't forget to use the hashtag #TimTeachesCode on twitter! Remember, you can all contact me whenever you have questions or feedback.

This course is completely free and will be free forever. It takes a bit of time to prepare and support, so if you'd like to contribute, you can do so at https://paypal.me/tevko. Any contribution helps!
This week: Pseudo elements and Pseudo classes.
In the last lesson, we learned about the "checkbox hack" and used it to build another Nav element.

In this lesson, we're going to look at some strange new properties: Pseudo classes and Pseudo elements. 
A fun fact: You used one of these in the last lesson. I'll leave it up to you to determine which one!

These elements are incredibly important in a web developers toolbox. It's up to you to learn about them all, but I'll leave a few helpful links.

http://quantityqueries.com/

https://bryanlrobinson.com/blog/2018/08/07/top-3-uses-of-after-and-before-css-pseudo-elements/

https://css-tricks.com/almanac/selectors/n/not/

Homework: 
Reply to the email with a new codepen demonstrating as many CSS Pseudo elements and Pseudo classes as you can. They can be random and you don't need to incorporate anything into a larger design.

Extra points.
Demo all of them.
videojs 
Tags: javascript, advice, beginners, videojs
Published: 2019-06-10 22:29:10

---
title: videojs 
published: true
description: Is it Necessary to have all this JavaScript?
tags: #javascript #advice #beginner #videojs
---

Being a beginner and having no idea what I’m doing: I’ve been wondering just how hard it is to write a library to manipulate HTML video tags. I look at videojs and I’m baffled before I even begin. 
1. Is it really necessary to have that much JavaScript, when all you’re doing is fine tuning those tags? 
2. How do you make sense of what is there, anyway? It just looks like it is spaghetti 
3. Where do you start?
Thoughts?
Hello dev.to!  CS prof, into: FP, compilers, container tech
Published: 2019-06-10 22:16:04

Hi all,

I recently learned about this community [thanks to HeavyBit](https://www.heavybit.com/library/blog/building-blocks-for-an-innovative-and-inclusive-developer-community-part-1/). I look forward to engaging with this you all on topics like functional programming, Haskell, DevOps, build systems, containers, k8s, etc.

Best,
  -Ryan
Hey Tech Community! What are your favorite shortcuts?
Tags: discuss
Published: 2019-06-10 22:01:05

---
title: Hey Tech Community! What are your favorite shortcuts?
published: true
description: Share you favorite web development shortcuts
tags: #discuss
---

I was pair programming the other day when my programming partner Christian used a keyboard shortcut in Codepen that I didn't know but was happy to learn! (Command F or Ctrl F to search through your code) 
{% twitter 1136286560985518080 %}

I feel like I miss out on all of these "commonly known" shortcuts.

So what are shortcuts in web development you have learned and/or use often?
Best DEV.to Posts for Beginners: Week of June 2, 2019
Tags: codenewbie, beginners, tutorial, bestofdev
Published: 2019-06-10 21:53:19

---
title: Best DEV.to Posts for Beginners: Week of June 2, 2019
published: true
description: These are some of the best beginner posts of the week!
tags: #codenewbie, #beginner, #tutorial, #bestofdev
series: Best DEV.to Posts for Beginners
cover_image: https://thepracticaldev.s3.amazonaws.com/i/x9acs27zebb19v5rf8ml.png
---

One of the reasons I've been so drawn to DEV.to over other platforms is the super encouraging and helpful community that gathers here. Initially I felt like it was going to be more a place where I sat back and watched, rather than write and contribute, but I've been so pleased to find not only helpful articles and tutorials that I understand, but also that input from new coders and devs is well-received.

I thought it would be nice to compile some of the best posts every week for those of us who still identify as #codenewbies!

{% link https://dev.to/molly_struve/diversity-vs-inclusivity-understanding-the-difference-5hh6 %}

For a long time, the conversation in workplaces across industries was **diversity**. What wasn’t being addressed — and is even more important — was _inclusion_. Now, they’re often covered in tandem initiatives, which is great! But if you’re still not sure what the difference is, and exactly why they’re so important, Molly helps shed some light.

{% link https://dev.to/christopherkade/what-s-one-resource-most-devs-don-t-know-that-you-use-regularly-5cp5 %}

From prototyping layouts in CSS flexbox to generating nice placeholder color schemes, supportive communities to code challenge lists, devs from all languages and areas of interests shared their favorite resources. I definitely have a pile of great bookmarks to check out hat I wasn’t familiar with before!

{% link https://dev.to/unseenwizzard/learn-git-concepts-not-commands-4gjc %}

If you’re like me and have long struggled with remembering what git command does what, stop the rote memorization attempts and instead learn the _why_ behind the commands.

{% link https://dev.to/rg4real/how-to-become-a-better-programmer-and-unblock-your-inspiring-ideas-3e0k %}

Lately, I’ve had so many ideas and so much inspiration for side projects that it’s felt overwhelming and stifling, but there are also extremely long stretches where I don’t have any ideas that feel good or worth it. The tips shared here are helping me not only get more clear on my current ideas, but gave me some great ways to cope with creative block in the future.

{% link https://dev.to/flippedcoding/why-devops-is-useful-4d5k %}

I felt very #seen by this tweet last week:

{% tweet 1136391449937793024 %}

I might not ever totally understand what it is, but I get why it’s so important now!

# What articles did I miss? Feel free to toot your own horn too! :)
The Web Application Hacker's Handbook
Tags: infosec, hacking, security, coding
Published: 2019-06-10 20:49:00

---
title: The Web Application Hacker's Handbook
published: true
description: A review of a great book for information security researchers.
tags: infosec, hacking, security, coding
---

# [The Web Application Hacker's Handbook](https://amzn.to/2IBFkuD)

I normally don't read tech books. In college, I'd purchase books from the university book store, but if I could avoid reading them, I did. I mostly needed them to do the class homework. Most of the time, teachers provided in-class materials on their website in powerpoint/slideshow format or a PDF. 

So, why [this book](https://amzn.to/2IBFkuD)?

During my time at Kratos Secureinfo, the person who hired me recommended this book in particular. They said "if you are serious about this sort of gig, read [this book](https://amzn.to/2IBFkuD)". 

So I did. And I re-read sections of it all the time. 

It is a bit of an older book, but contains many useful sections and helps to wire your brain towards looking for vulnerabilities in general. If you want to learn how to think like a hacker, this is [the book](https://amzn.to/2IBFkuD) for you.

The authors worked on burp suite, which [this book](https://amzn.to/2IBFkuD) encourages the use of, and tbh, there aren't any good alternatives to burp that I can think of, to the point of me considering writing my own implementation. The situation is THAT dire!

Inside its cover, you'll find information about mapping attack surfaces, intelligence gathering, vulnerability discovery, exploitation, attacking javascript, mysql, php, perl, web servers, databases, WAFs (web application firewalls), native applications, source code, random tokens, cookies, and more!

Coming at this from a programmer background, there is a world to explore just with [this book](https://amzn.to/2IBFkuD) alone. Join me, won't you, on this journey to hackerdom.

-----

# [If you need a Computer Science tutor, code reviewer, or just someone to pair program with, click here](https://codementor.io/mikebell66)
Welcome to the Big Thread Club, Egwuenu Gift. You are the latest winner of the Big Thread Badge. 🎉
Tags: meta, bigthreadbadge
Published: 2019-06-10 20:42:29

Egwuenu joins @philnash in the club as the second winner of this badge.

{% user lauragift21 %}

The Big Thread Badge is awarded to the person who creates a discussion thread on the site that sparks the most collective comment love (e.g. score as determined by total ❤️ reactions and adjacent ranking factors).

This was Egwuenu's thread:

{% link https://dev.to/lauragift21/dear-developers-what-s-your-work-home-setup-like-16g4 %}

Details about this contest can be found in this post:

{% link https://dev.to/devteam/we-ll-be-adding-more-design-and-moderation-clarity-to-tags-like-help-discuss-etc-we-re-also-introducing-a-new-badge-483a %}

Entry is simple: Start a thread that is bound to spark a lot of comments. Ask the community to tell a certain kind of story and get lots of comments! Even if these threads aren't always answering _the deep questions_, they are often great for seeing what the broader community thinks of a topic and are usually a lot of fun!

DEV employees are not eligible for the Big Thread Badge. 🙂

P.S. We have another new badge coming which will be announced on Wednesday.
New Project: Repo Recap!
Tags: meta, showdev, ruby, opensource
Published: 2019-06-10 20:20:32

As you may know, I've been writing periodic "Repo Recaps" for the work getting put into DEV by our team and contributing community members. The recaps are a quick summary of what is getting merged and shipped in our project. Transparency is great, but if our process is hidden away in commits and pull requests without context or curation, it's not reaching as many people as it could.

{% link https://dev.to/devteam/dev-to-repo-recap-from-the-past-week-5727 %}

Since creating this recap was growing ever-more time-consuming, I began automating it. And now we are officially open-sourcing the script I created!

{% github thepracticaldev/repo-recap %}

The script included is still very much related to my personal process, but we think by opening this up we could extend this for re-use on other projects and add functionality that automates more of this in more clever ways.

Any pull requests or issues are welcome in terms of cleaning code, pitching UX improvements, adding functionality, etc.

Thanks a lot, and happy coding!
Do you clone Git repos via HTTPS or SSH?
Tags: discuss
Published: 2019-06-10 20:10:43

---
title: Do you clone Git repos via HTTPS or SSH?
published: true
description: 
tags: discuss
---

Hey All! Random question: when you clone a Git repo, do you use `HTTPS` or `SSH` to do it? Furthermore, is your decision based on a specific reason (e.g. `HTTPS` is traditionally easier on Windows?, team policy?), or mostly just habit (e.g. you've already got an SSH key so why not re-use it! 🚀, that's what GitHub shows by default)? I've noticed a diverse set of opinions across folks I know, and I'm mostly just curious about others' usage in-the-wild.
Using shell/bash commands in code? Use "long" options
Tags: bash, shell
Published: 2019-06-10 19:48:27

---
title: Using shell/bash commands in code? Use "long" options
published: true
description: A very minor style choice to save the next developer some headaches.
tags: bash, shell
---

Many developers at one point or another need to use a bash or shell script inside code.

Maybe it's a command being issued in Docker, or an exec function in Node.js, or perhaps a shell command in a Jenkins pipeline.

One short and simple tip though I've picked up after having to do this a few times is, **when documenting commands in code, always use the long options when available**.

Long (`--`) and short (`-`) options are there for good reason -- one for clarity in documentation, the other for brevity when typing out commands in the terminal.

For example, here's a sample docker command below. Imagine you found this in code:

```sh
docker build --no-cache -t myimage:latest -f path/Dockerfile -q .
```

Let's say you were new to docker and encountered this in a Jenkinsfile or bash script.

The `--no-cache` seems quite clear about what it does. But what about the rest?

Wouldn't it have been better if this had been how it was written:

```sh
docker build --no-cache --tag myimage:latest --file path/Dockerfile --quiet .
```

Even better yet, what if it had been broken into a longer statement, using line breaks for each option?

```sh
docker build \
    --no-cache \
    --tag myimage:latest \
    --file path/Dockerfile \
    --quiet \
    .
```

Now the next person who reaches this code is less likely to have the urge to look up what `-q`, `-f`, and `-t` is for. 

Not all terminal applications are consistent with what their short options mean, it can be easy to mix them up. It is often the case that things like `-q` will mean `--quiet` in one application, and `--query` in another.

Do this, and your code reviewers and inheritors may very well thank you for it.
The word development world is missing
Tags: discuss, watercooler
Published: 2019-06-10 19:05:57

---
title: The word development world is missing
published: true
description: 
tags: discuss, watercooler
---

Following my twit here:

{% twitter 1137797483541749760 %}

I am totally confident that each and every of you knows that feeling. Is there an English word for that? If not, shall we create it?
How Did You Find Your First Dev Job?
Tags: discuss, beginners, career, womenintech
Published: 2019-06-10 18:51:17

---
title: How Did You Find Your First Dev Job? 
published: true
description: Discussion of how experienced devs found their first dev roles.
tags: discuss, beginners, career, womenintech
---

For all of you hired and working devs, I have a question for you: **How did you land your first job as a dev?** By this I mean, how did you come across this first position? Did you randomly see it on LinkedIn? Company job board? A friend? Old co-worker? Meetup? Career fair? etc. **Did you have a CS degree or attend a bootcamp? Were you self taught?** 

I am asking as a young dev looking for my first role. I’ve been searching for a little over 2 months now and feel like I’m hitting that point of asking myself if it’ll ever happen for me. I understand that 2 months is not long, don’t get me wrong, but there always seems to be ups and downs during the job search and I’m currently sitting in a down. I think it’ll help inspire/motivate me (and other young devs) to see how experienced devs came across their first opportunities. 

If you’d also like to include **how long you searched for the job** as well, that would be great too.
C-mpler Introduction
Tags: c
Published: 2019-06-10 18:33:54

As a C lover, I've always wanted to be a master in programming in this language, but I never had the time for that. (My main language as a developer, for more than 5 years, is Python).

During the last year as a BSs CS student at Bar-Ilan University, I started to be a tutor for the "Intro to Computer Science" course, which in Bar-Ilan University is taught in C.

I had a lot of fun teaching many many students to program in C, and decided to write a notebook, in which I summarized the lessons I gave.

I published this notebook (If you want a copy - __it's in Hebrew__ - please send me an email) to my students and their friends - and it became pretty famous in the University. (I still get emails from time to time - and more than 5 years passed since I published it).

In the next posts, I will rewrite this notebook (this time in English!).

After that, I will talk about Python or Kotlin - because I really believe you __have to learn C first in order to be the best programmer you can__ and only then move on to another programming language. (You will understand why in the next posts).

Please feel free to send me an email about everything: giladCmplier@gmail.com

####__Always remember, it's much C-mpler than you thought!__

Have fun and Good luck,
Gilad
Perl 5.30 deprecates use of my() in a false conditional
Tags: perl, deprecated
Published: 2019-06-10 18:08:23

---
title: Perl 5.30 deprecates use of my() in a false conditional
published: true
description: Assigning a variable in a false conditional has been deprecated.  I'll have to update some old code.  Perhaps you will too.
tags: perl, deprecated
---

Perl 5.30.0 is released ([changelog](https://metacpan.org/pod/release/XSAWYERX/perl-5.30.0/pod/perldelta.pod)).  With it comes a breaking change for me.  It has been a long time since I've faced a breaking change with perl.

[Deprecated use of my() in false conditional](https://metacpan.org/pod/distribution/perl/pod/perldiag.pod#Deprecated-use-of-my()-in-false-conditional.-This-will-be-a-fatal-error-in-Perl-5.30).

I have been using this deprecated syntax liberally like so:
```perl
# This syntax generates a fatal error in perl 5.30
#
# Initialize $foo
#   If $bar tests true, $foo = 'foobar'
#   If $bar tests false, $foo = undef
my $foo = 'foobar' if $bar;
```

> There has been a long-standing bug in Perl that causes a lexical variable not to be cleared at scope exit when its declaration includes a false conditional.

This could make for interesting bugs.  The scoped variable declared this way may unexpectedly persist data!

```perl
# Use this instead
my $foo;
if ( $bar ) {
  $foo = 'foobar';
}

# Or this
my $foo;
$foo = 'foobar' if $bar;
```

According to [RT# 133543](https://rt.perl.org/Public/Bug/Display.html?id=133543#txn-1599917), the deprecation will not always be triggered with this syntax!  Therefore, I feel I can't trust a run of a test suite under 5.30 to identify all the offending code statements.

Is anybody else surprised to learn this declaration pattern is problematic?
Tell me about your experiences with tech recruiters
Tags: career, jobs, recruiters, discuss
Published: 2019-06-10 17:47:05

---
title: "Tell me about your experiences with tech recruiters"
published: true
description: "A discussion about working with recruiters - pros and cons"
tags: career, jobs, recruiters, discuss
---

I'm mid-career, which means I've already been through one round of job-hunting where I got "help" from recruiters. On the one hand, having someone write you about job opportunities is awesome. On the other, they can be very unprofessional, and I get the feeling that there are a class of recruiter jobs and another entire pile of jobs that recruiters don't have access to. And I wonder if that second pile is where all the "good" jobs are.

What has been your experience? Did you work with a recruiter at your current role? Do you recommend or advise against letting a / many recruiters steer your job hunt?
📚 Read all Medium posts for free
Tags: opensource, javascript, webdev, showdev
Published: 2019-06-10 17:43:24

---
title: 📚 Read all Medium posts for free
published: true
description: Try Medium with membership-features!
tags: opensource,javascript,webdev,showdev
---

My current situation is this: I'm subscribed to a lot of newsletters that curate content in the tech domain and almost all of them are behind a paywall!

I want to get out of the Medium ecosystem, but I can't. Not everyone can be expected to pull off the FreeCodeCamp move (leaving Medium to their own publishing platform).
To make matters worse, Medium now puts all new stories behind paywall by default! And you know how we process defaults - we just leave them be.

I'm guilty of opening the posts in incognito mode to read them. To be honest, I started doing that subconsciously. Then I came across this tweet from Medium's CEO: https://twitter.com/ev/status/1100899021621583872

Excited, I opened Chrome after a long time. I'm used to developing extensions in Chrome (dates back to college days) and then port to Firefox.

The extension works in the background, w/o any user intervention, for all posts. It lets you read all Medium stories for free.

[Check it out on Product Hunt ->](https://www.producthunt.com/posts/mediumship) 💯  
🤗 Hugs /  🐛 bugs  welcome!
Selling for Technical Founders
Tags: startup
Published: 2019-06-10 17:29:29

---
title: Selling for Technical Founders
published: true
description: 
tags: startup
---

[Selling for Technical Founders](https://www.sidepact.com/blog/2019/5/selling-for-technical-founders).

Technical founders love building innovative products. However, it’s a common mistake for engineers-turned-founders to focus all of their effort on development. This can end in disastrous results when a founder builds a product that nobody wants.

In this summary of Jason Mark’s presentation at Sidepact, technically minded founders will learn how to leverage their technical abilities to drive sales.
The 7 Most Popular DEV Posts from the Past Week
Tags: top7
Published: 2019-06-10 17:22:13

---
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/sfwcvweirpf2qka2lg2b.png
---
Every Monday 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. ❤️

#1. Choose Your Path

A thorough and visual guide to the different paths of becoming a web developer.

{% link https://dev.to/javinpaul/the-2019-web-development-frontend-backend-roadmap-4le2 %}

#2. React Native Takeaways

As a web developer that's used React before, Laura shares their takeaways from an app with React _Native_.

{% link https://dev.to/walaura/i-picked-up-react-native-as-a-web-developer-and-here-s-what-i-ve-learned-59h6 %}

#3. Face Your Fears

Steffan makes CSS less scaring by teaching us more about cascading, browser support, and building from the ground up.

{% link https://dev.to/steffenpedersen/why-most-developers-fear-css-3h99 %}

#4. Mystery Machine

Over 4gbs uploaded within six hours or so, Sam asks the community for their theories on this mystery!

{% link https://dev.to/samthor/what-did-a-iot-device-do-on-my-network-1i8m %}

#5. Wishes Do Come True

An interesting take on loading async content, inspired by a tweet.

{% link https://dev.to/joelnet/react-i-really-wish-this-is-how-i-could-write-components-1k4j %}

#6. Why so popular?

A dive into the internal of Docker. Frank share a quick overview, basic architecture, and introduces the four main functionalities that form the foundation of for isolation in Docker containers.

{% link https://dev.to/frosnerd/docker-demystified-27kl %}

#7. Beautiful Buttons

A lovely collection of fun and beautiful buttons!

{% link https://dev.to/webdeasy/top-20-css-buttons-animations-f41 %}

_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!_