teleren/devto huggingface dataset:
Getting Better!
Tags: programming, career, productivity, discuss
Published: 2018-12-02 19:33:18

---
title: Getting Better!
published: true
description: 
tags: programming, career, productivity, discuss
---
When I start any non-trivial development task, I try to keep in mind that I want three things:

- The work product itself, usually new code.
- Some reusable code.
- An improved developer (that's me).

About the third:  I try to shape the task so that there's room for me to learn and grow.  That's usually easy.

But here's my standby:  pick up one or two new keyboard shortcuts.

It's simple to identify the candidates.  I just take note of something I'm doing with the mouse repeatedly (which I call _mousing about_).  Then I look to see whether there's a shortcut for that.  If so, I try to form the new habit of using the shortcut instead of the mouse.

Your shortcuts:  Any faves to share?
ArcType - Easy Math Documents
Tags: math, octave, gnuplot, javascript
Published: 2018-12-02 18:06:08

---
title: ArcType - Easy Math Documents
published: true
description: quickly create math documents
tags: math, octave, gnuplot, javascript
cover_image: https://thepracticaldev.s3.amazonaws.com/i/6tkhfhkt63e9dq762vmo.jpg
---

In 2015 I was writing lots of short recreational math documents. To aid myself in the creation of these, I built <a href="http://zevanrosser.com/arctype-editor/" target="blank">ArcType</a>.

![shotz](https://thepracticaldev.s3.amazonaws.com/i/an23xc5z7q09qyrzqe7e.jpg)

<a href="http://zevanrosser.com/arctype-editor/" target="blank">ArcType</a> is a minimalistic editor that combines LaTeX, Markdown, HTML/CSS, gnuplot and Octave all in one place. A few months back I took <a href="http://zevanrosser.com/arctype-editor/" target="blank">ArcType</a> and finalized it so that others could use it. It’s free and you can download your creations. Both the welcome screen and the helpfile cover most of the features available to you. <a href="http://zevanrosser.com/arctype-editor/" target="blank">Check it out here…</a>

<a href="http://zevanrosser.com/shapevent.php" target="blank">Here is a link to some of the docs I created…</a>

![shotz](https://thepracticaldev.s3.amazonaws.com/i/6tkhfhkt63e9dq762vmo.jpg)

It’s pretty self-explanatory - planning to do a tutorial about it soon. In the meantime, give this code a shot if you’re looking for more to play with than just the welcome/about demos.

```js
# Modified Bicuspid Curve
*by Zevan Rosser*
 
Original equation from somewhere on [this page](https://en.wikipedia.org/wiki/Quartic_plane_curve)
 
@@
(x^2 - a^2)(x - a)^2 + (y^2 - a^2)^2 = 0
@@
 
 
@@@@
%-> width: 70%; min-width: 300px;
a = 1.21;
lx = -2:0.1:2;
ly = -2:0.1:2;
[x,y] = meshgrid(lx, ly);
z = (x.^2 - a^2) .* (x - a).^2 + (y.^2 - a^2).^2;
 
contourf(x, y, z, -3.9:0.3:1, 'LineWidth', 0);
colormap(1 - gray);
axis([-1.5, 2, -2, 2]); 
@@@@
```

_the above will render this_
![shotz](https://thepracticaldev.s3.amazonaws.com/i/z3fzf1nkvda02ywvtfzf.jpg)

There's only really one known issue on my radar - which is just the 5mb limit for localStorage... I'm sure there are other bugs - so if you decide to make something real with it - please save your work often ;)

If you have questions - feel free to post them here and I'll do my best to respond. If you make something cool with it - I'd love to see it.

Enjoy :D
How does TypeScript or Flow compare to transpile-to-JS languages like Elm, ReasonML or PureScript?
Tags: javascript, typescript, elm
Published: 2018-12-02 17:21:46

---
title: How does TypeScript or Flow compare to transpile-to-JS languages like Elm, ReasonML or PureScript?
published: true
description: What are the pros and cons of these approaches?
tags: javascript, typescript, elm
---
How did I started learning a new technology
Tags: productivity, discuss
Published: 2018-12-02 16:39:28

---
title: How did I started learning a new technology
published: true
description: Personnal view of how and why I learned a new technology
cover_image: https://thepracticaldev.s3.amazonaws.com/i/rg4qme58y9dk6q5hedze.gif
tags: meta, productivity, discuss
---

There are a lot of technologies, out there and for every needs: programming languages, softwares, operating systems, etc... But what if you wanted to learn a new technology? Because of any reason? In this post, we will see how I learned a new technology to give you an idea of how to start.

# Why
It's a fact: some technologies are better for doing things that other ones can't do better and vice versa. While some technologies can be the same, there are differences that can lead to change to another one.

Programming languages for example are a matter of syntax, performance and community while softwares are used for their usefulness or design; and operating systems are for what they can do (Windows has Active directory, Linux has full customisation, etc...).

Jobs offers can also be a great reason of why to learn a technology.

![](https://thepracticaldev.s3.amazonaws.com/i/fm724mg388kgz1qmry8x.gif)

However, what makes me learn a technology is mostly the hype. I know that most peoples thinks that following the trend isn't a great thing but who know? Go was just a trend and becomes one of the most used programming languages and the same thing applied for the BlockChain. It's just a matter of wanting to learn this technology because it's popular, if it's popular it's certainly a good one.

# How
The tech's documentation will become your life, tutorials and forums too. There is not really a good way to learn something, it depends on your determination and how you learn better.

Books are the first choice for most peoples. Personnally, doing little projects for fun is how I learn a technology but it keeps me away from the theorical side.

# What did I learned?
The technology I chosen to learn was the [Crystal programming language](https://crystal-lang.org/). Why? Because it's a trend and have the Ruby's syntax. Also, I recently started to learn how to use Arch Linux, totally for fun.

The fact is that I don't want to stay in one technology, which is boring in the long term. I want to discover things everyday because of my curiosity.

![](https://media.giphy.com/media/xT5LMUuxTR0M6I3fAA/giphy.gif)

# Conclusion
Maybe that after this post you will start learning a new technology, for any good reason. Or maybe that you will create something that other people will learn because it's a fantastic idea.

Discovering new things and making the world evolve is something that moves us and needs to continue like that.

And you: how and why do you started learning something?
Spanish Software Blog or Podcast Recommendations 
Tags: discuss, spanish, espanol
Published: 2018-12-02 15:16:41

---
title: Spanish Software Blog or Podcast Recommendations 
published: true
description: 
tags: discuss, spanish, espanol
---

I've been learning Spanish for a while and would like to find some software blogs or podcasts in Spanish to help with my comprehension. Anyone have any recommendations?
How to get elements in a list of tuples with ordered numbers in for-loop
Tags: python
Published: 2018-12-02 15:14:07

---
title: How to get elements in a list of tuples with ordered numbers in for-loop
published: true
description: 
tags: Python
---

I faced a case to use elements in a list of tuples with ordered numbers. And it works.

```python
example_list = [("a", "b"), ("c", "d"), ("e", "f"), ("g", "h"), ("i", "j")]

for num, (el1, el2) in enumerate(example_list):
    print(num, el1, el2)
```

Result:
```

 0 a b
 1 c d
 2 e f
 3 g h
 4 i j

```
Version: Python 3
Do you know of any effective Blockchain use cases?
Tags: discuss
Published: 2018-12-02 12:40:44

---
title: Do you know of any effective Blockchain use cases?
published: true
tags: discuss
---

At the current point in time Blockchain very much seems like a solution we are desperately trying to find matching problems to. In a [recently released report](http://merltech.org/blockchain-for-international-development-using-a-learning-agenda-to-address-knowledge-gaps/) from [MERLtech](https://twitter.com/MERLTech) researchers, it is explained they couldn't find any data supporting the effectiveness of blockchain technology over existing solutions. 

Although this hasn't seemed to be the most extensive  research, it does make me wonder if there are any statistics out there of Blockchain projects that either 
a) Solve a problem that was unsolvable before Blockchain technology
b) Solve a problem way more effective (in either productivity, scaling, trust or otherwise) than it is solved with proven technologies.
Making an Advent of Code solution for beginners!
Tags: beginners, python, adventofcode
Published: 2018-12-02 12:10:56

---
title: Making an Advent of Code solution for beginners!
published: true
description: Advent of Code solution for beginners in python
tags: Beginner, Python, Advent of Code
---

What is [Advent of Code](https://adventofcode.com/2018/about)? a fun series of coding challenges all through december!  (If you don't know about them, Check it out!)

So I was going through most of the solutions for advent of code and some seemed really complex with no descriptions so I thought to myself why not make a beginner friendly solution for the Advent of Code where I explain the concepts and give out the code in simple python!

[The Repo!](https://github.com/CallMeTarush/advent-of-code)

I'm no expert in python and this would be a fun way to get comfortable with the language as well and help the community.

This is the first time I'm doing something like this, if you have any tips or suggestions please Let me know! Any help is appreciated.
Create Beautiful Screencasts from Your Terminal
Tags: screencast, svg, gif, asciinema
Published: 2018-12-02 12:01:31

---
title: Create Beautiful Screencasts from Your Terminal
published: true
description: Combine the power of asciinema + svg-term-cli to create beautiful embeddable screencasts
tags: screencast, svg, gif, asciinema
canonical_url: https://60devs.com/create-beautiful-screencasts-from-your-terminal.html
---

I wanted to showcase my CLI apps and didn't know a solution. I imagined that I could record my screen as a video and convert to a GIF file so that you can embed them to GitHub or elsewhere. After googling for some time, I found a better approach which produces SVGs instead of GIFs, and it's effortless to use.

## Install [asciinema](https://github.com/asciinema/asciinema)

This tool allows you to record your terminal session. It also has a website where you can upload your recordings and where everyone can see them https://asciinema.org/. I recommend creating an account there.

```sh
npm i asciinema -g
```

Unfortunately, the recorded sessions require a player to play them so they cannot be embedded in any website. For example, you cannot insert it to Github's README.

## Install [svg-term-cli](https://github.com/marionebl/svg-term-cli) 

This is a useful tool which can convert sessions recorded using `asciinema` to SVG:

```sh
npm i svg-term-cli -g 
```

## How to record

I use it with the max idle time of 2 seconds. This will start a recording:

```sh
asciinema rec -i 2
```

After you run this, do whatever you wanted to show in the terminal. Press `Ctrl + D` to stop recording.

If you upload the sessions to asciicinema.org, create an SVG like this:

```sh
svg-term --cast=YOUR_CAST_ID --out demo.svg --window
```

You can view `demo.svg` in a web browser after that.

If you store the recording locally, create an SVG as follows:

```sh
cat path-to-your-cast-file | svg-term --out demo.svg --window
```


## Embedding

Now you can embed the SVG files almost anywhere. Here is an example from my [newsletter-cli project](https://github.com/JustComments/newsletter-cli):

```html
<p align="center">
  <img src="https://raw.githubusercontent.com/OrKoN/newsletter-cli/master/demo.svg?sanitize=true" width="572" alt="newsletter cli demo">
</p>
```

And here is how it looks like: [see on Github](https://github.com/justcomments/newsletter-cli#--newsletter-cli--)

P.S. Interestingly, dev.to uses some image proxy which converts animated SVGs to a static image, so it does not seem possible to embed such SVGs into the content. But it seems to work for the cover image!

*originally published at https://60devs.com/create-beautiful-screencasts-from-your-terminal.html*
BxJS Weekly Episode 39 - javascript news podcast
Tags: javascript, node, podcast, news
Published: 2018-12-02 11:14:26

---
title: BxJS Weekly Episode 39 - javascript news podcast
published: true
description: Listen to the best javascript news of the week in a podcast form
tags: javascript, node, podcast, news
---

Hey dev.to community!

BxJS Weekly Episode 39 is now out! 🚀
Listen to the best javascript news of the week in a podcast form right here.
You can find all the mentioned links [here on github](https://github.com/BuildingXwithJS/bxjs-weekly/blob/master/links/18-48-Episode-39.md).

You can also watch or listen to this episode on:
- [YouTube](https://youtu.be/llLOcg5LIyI)
- [Castbox](https://castbox.fm/episode/BxJS-Weekly-Ep.-39-Dec-1%2C-2018-(javascript-news-podcast)-id1378315-id102508091)

Any feedback is appreciated 😁

Additional stuff:
- [Twitch channel](https://www.twitch.tv/yamalight)
- [Discord server](https://discord.gg/hnKCXqQ)
- [BxJS Weekly github repo](https://github.com/BuildingXwithJS/bxjs-weekly)

Social media links:
- [Twitter](http://twitter.com/yamalight)
- [Medium](https://medium.com/@yamalight)
- [Github](http://github.com/yamalight)

If you enjoy my content, please consider [supporting me](https://codezen.net/support.html) 😉
What's new in Swift 4.2.1?
Tags: swift, xcode, ios
Published: 2018-12-02 09:45:57

---
title: What's new in Swift 4.2.1?
published: true
description: 
tags: Swift, Xcode, iOS
---

<!-- wp:paragraph -->
<p>Yes! There appears to be such a thing, and it was silently shipped alongside Xcode 10's first point-release, <a href="https://developer.apple.com/documentation/xcode_release_notes/xcode_10_1_release_notes">10.1</a>. Contrary to major releases, Swift 4.2.1's release wasn't accompanied by a <a href="https://swift.org/blog">blog</a> post, nor was its entry added to the <a href="https://github.com/apple/swift/blob/master/CHANGELOG.md">Swift changelog</a>. Is there a reason for this all this mystery, or is the 4.2.1 really just so insignificant?</p>
<!-- /wp:paragraph -->
<!-- wp:paragraph -->
<p><a href="https://forums.swift.org/u/Fryie">Pierpaolo Frasa</a> must've been wondering the same thing, based on his recent post on the <a href="https://forums.swift.org/t/swift-4-2-1/17553">Swift forums</a>:</p>
<!-- /wp:paragraph -->
<!-- wp:quote -->
<blockquote class="wp-block-quote">
  <p>My mac wants me to upgrade to Xcode 10.1, which will include Swift 4.2.1.<br>However, I can't find any mention of that swift version either on the download page or in the changelog.</p>
  <p>[<a href="https://forums.swift.org/t/swift-4-2-1/17553">...</a>]</p>
</blockquote>
<!-- /wp:quote -->
<!-- wp:paragraph -->
<p>The list of resolved issues is rather short, with 8 compiler issues fixed, and just one problem resolved in the standard library. The highlights include: </p>
<!-- /wp:paragraph -->
<!-- wp:list -->
<ul>
  <li>A fix for ambiguous compilation error messages like “Command CompileSwiftSources failed with a nonzero exit code”</li>
  <li>The Bundle class's init(for:) initializer now works consistently with Swift classes, not just Objective-C classes</li>
  <li>Long file paths containing white space no longer cause build failures</li>
  <li>A mutating method that returns Self on a value of protocol type can now successfully be invoked</li>
</ul>
<!-- /wp:list -->
<!-- wp:paragraph -->
<p>Check out the "Swift Compiler" and "Swift Standard Library" sections in the <a href="https://developer.apple.com/documentation/xcode_release_notes/xcode_10_1_release_notes">Xcode release notes</a> for a complete list of the changes, complete with code samples.</p>
<!-- /wp:paragraph -->
AoC Day 2: Inventory Management System
Tags: adventofcode, discuss
Published: 2018-12-02 07:03:00

---
title: "AoC Day 2: Inventory Management System"
published: true
description: Day two of the challenge has us comparing strings of letters.
tags: adventofcode, discuss
cover_image: https://thepracticaldev.s3.amazonaws.com/i/m0i74cqwjey7ocx1kjal.jpg
series: Advent of Code
---

OK, the first day was awesome, I'm super excited about all of the solutions people posted.  And I'm learning a lot!  We've got a solid 20 people on the DEV leaderboard, which means there are still spots for 180 more -- use code 224198-25048a19 to join!

On to Day 2!

<hr>

[Day 2 of Advent of Code](https://adventofcode.com/2018/day/2), and I'm pretty sure that Google is tired of me asking it questions every 15 seconds about "How Do I Do X in Rust."

Today's challenge involves an inventory system.  Boxes have IDs that are a jumble of letters, and we've got a warehouse full of boxes to check.  The first part asks us to analyze the frequency of letters in each ID.  The second part gets into [Hamming Distances](https://en.wikipedia.org/wiki/Hamming_distance), which are a familiar sight after mentoring on [Exercism](https://exercism.io).

I got both parts working, and even part 2 ran pretty fast, but I'm not algorithmically happy with the double-loop ([O(n^2)](https://dev.to/basecspodcast/s1e6--a-friendly-intro-to-big-o-notation)) runtime.  Did anybody come up with anything tricky to do it more efficiently?

I'm going to post my solution in the comments like the rest of the cool kids.

How'd everybody else do?
First commercial game reaching early access in a week!
Tags: gamedev, unity3d, devlog
Published: 2018-12-02 04:29:41

---
title: First commercial game reaching early access in a week!
published: true
description: Going to be sharing devlog videos of the game I've been working on over the next week.
tags: gamedev, unity, devlog
---
I haven't been posting for a while because I've been focusing on the final weeks of an early access build of the game I've been working on for the past year. It's called [The Indie Game Legend 3D](http://indiegamelegend.com/). In about a week it'll launch [on Steam](https://store.steampowered.com/app/844440/The_Indie_Game_Legend_3D/) with part 1 of the game (much more is actually complete) and a new trailer will be up. Until then here's the trailer from the announcement and alpha demo:

{% youtube VlGIQqdQepA %}

Until recently I've been pretty good at making and posting devlog update videos to YouTube and I've got about enough time to share two of them a day until early access.  

So starting tomorrow you'll see a pretty quick progression of game development using Unity leading up to a playable commercial game! Hope that makes up for the silence!
Demystifying programming
Tags: beginners, tutorials, programming, discuss
Published: 2018-12-02 03:59:01

---
title: Demystifying programming
published: true
description: Programming can be intimidating for beginners. There is a plethora of tutorials out there each teaching you how to program in a certain way or in a certain language. In this day and age of information, I believe that there is a better way to introduce beginners to programming. Here's how...
tags: beginner, tutorials, programming, discuss
cover_image: https://images.pexels.com/photos/159868/lost-cat-tree-sign-fun-159868.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260
---

## Introduction
Hello there. Been eons since I posted here. Anyway, about 5 years ago I relatively naively made [a video trying to introduce people to programming](https://www.youtube.com/watch?v=gT4CemTAjAg). No specific programming languages, just the fundamentals (which I believe are not taught nearly enough). 

What I did not expect was how well the video performed. 

## Just one problem
Okay, more than one problem, that just sounded way cooler as a subtitle in my head.

- The audio was **terrible**. I was using my internal laptop mic and the fan straight up sounded like there was a choking lawnmower next to me as I talked.

- The delivery was bland and boring.

    ### But people still watched it for some reason?
![Shrug meme](https://i.imgflip.com/11e8zh.jpg)

## 5 years later...
I bought a blue yeti mic and have learnt quite a bit since making that last video. It would be a pleasure to share from experience and help others get into the industry relatively painlessly.

As such, I am making a new beginner programming fundamentals tutorial series. I have a rough course outline, which I'll share as a comment to this post.

Thing is, I would like to make this series with the support & opinions of other devs out there. *You were once a beginner*, so you know how it feels to be completely lost while watching that introduction to <programming-language> video after watching [the social network](https://www.imdb.com/title/tt1285016/) or [pirates of 
silicon valley](https://www.imdb.com/title/tt0168122/).


## Conclusion
- Do you guys think the fundamentals and basics are taught well enough?

- Other than [Simon Allardice's pluralsight course](https://www.pluralsight.com/courses/what-is-programming), what other high quality beginner friendly content do you guys know about? How exactly did you get started with coding? 

- What kind of hurdles did you have when learning?

- How did you overcome the hurdles you encountered when you were learning?

- Any pointers on what you would expect from such a series? What do you wish you were told when you started?


I believe together we can make the world a better place through code and dev is one step closer to that goal. Looking forward to hearing what you guys think.
Destructuring In JavaScript & ES6
Tags: javascrip, es6, react
Published: 2018-12-02 03:16:07

---
title: Destructuring In JavaScript & ES6
published: true
description: Destructuring In JavaScript & ES6
tags: #javascrip #es6 #react
---

Post Link : <a href="https://www.skptricks.com/2018/12/destructuring-in-javascript.html" > Destructuring In JavaScript & ES6</a>

This tutorial explains how to implement destructuring in javascript programming language. Destructuring is a powerful way to create variables from values in arrays and objects, and It will make your code simpler.

What is destructuring?
Destructuring was introduced in ES6. It’s a JavaScript feature that allows us to extract multiple pieces of data from an array or object and assign them to their own variables.


<a href="https://www.skptricks.com/2018/12/destructuring-in-javascript.html" > Destructuring In JavaScript & ES6</a>

<img src="https://4.bp.blogspot.com/-TDsB7ZPPYrw/XAKutI3Z11I/AAAAAAAACMQ/Jc8hUSAeuIQajGASL41TYPFsn45td9bSgCLcBGAs/s640/destr.png" />