teleren/devto huggingface dataset:
Could you not finally?
Tags: javascript, discuss
Published: 2017-07-08 21:49:49

---
title: Could you not finally?
published: true
tags: javascript, discuss
---

Do you know of any way to skip the execution of a `finally` block?

```js
function fn(){
    try{
        return 1;
    }finally{
        console.log(2);
    }
}
fn();
// Logs 2
// Returns 1
```

A bit more bizarre example would be if you use `return` in `finally`:
```js
function fn(){
    try{
        return 1;
    }finally{
        return 2;
    }
}
fn(); // 2
```

It seems like finally cannot be stopped!
Hi, I'm ThiagoGF
Tags: introductions
Published: 2017-07-08 20:00:14

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

I have been coding for 5 years.

You can find me on GitHub as [ThiagoGF](https://github.com/ThiagoGF)

I live in São José dos Campos, Brazil.

I work for Touch Health.

I mostly program (work) in these languages: Java and Javascript.

I am currently learning more about Nodejs.

Nice to meet you.
Hi, I'm Ludovic Chabant
Tags: introductions
Published: 2017-07-08 17:58:23

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

I have been coding for almost 20 years.

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

I live in Vancouver.

I work for the Frostbite engine team at EA.

I mostly program in these languages: C++, C#, Python.

I am currently learning more about gameplay cameras and IndieWeb standards.

Nice to meet you.
Freelancers: Any trouble getting paid ?
Tags: discuss, money, freelance
Published: 2017-07-08 16:48:36

---
title: "Freelancers: Any trouble getting paid ?"
published: true
tags: discuss, money, freelance
---

I am a French freelancer. I work for a foreign company. I send my invoices and they pay me. It works on trust. One of the paiement was late. A few days, no big deal. I got paid and everything is back to normal, but it made me think. If at one point, they stop paying me, or just keep delaying payments, what is my strategy? What will I do if this happens? Well, no idea ... 

I am not very familiar with the freelancer's rights when it comes to that. And I suppose they vary from country to country. 

How do you deal with clients who pay you late? Or worst, not at all? 

Do you have any measures that makes it easier to get what your clients owe you if they are late? Or things you do to make it harder for clients to mess around with you?

I am aware it is a vast subject. But if you've had any experience with these issues, please share.
Hi, I'm Eli Sarver
Tags: introductions
Published: 2017-07-08 11:48:12

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

I have been coding for 25 years.

You can find me on GitHub as [elisarver](https://github.com/elisarver)

I live in Raleigh.

I work for Teradata

I mostly program in these languages: Go, Python.

I am always learning more about APIs, UX, and coaching others.

Nice to meet you.
Hi, I'm Muhammad Arslan Aslam
Tags: introductions
Published: 2017-07-08 11:31:47

---
title: Hi, I'm Muhammad Arslan Aslam
published: true
description: My introduction post
tags: introductions
---

I have been coding for 3 years.
You can find me on GitHub as [arximughal](https://github.com/arximughal)
I live in Lahore, Pakistan.
I work for Arrivy, Inc.
I mostly program in these languages: Javascript, PHP.
I am currently learning more about React, React Native, Vue.js, Laravel, Rest API, Genesis Framework.
Nice to meet you.
Hi, I'm Muneeb Mughal
Tags: introductions
Published: 2017-07-08 10:23:56

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

I have been coding for [number] years.

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

I live in Islamabad.

I own Chunk Labs

I mostly program in these languages: js,php,html,css.

I am currently learning more about love :) <3.

Nice to meet you.
Open multiple simultaneous pull requests
Tags: git, branching, forking, opensource
Published: 2017-07-07 20:49:13

---
title: Open multiple simultaneous pull requests
published: true
description: Learn how to open multiple pull requests on the same git repository for a more flexible and managable workflow.
tags: git, branching, forking, open source
cover_image: https://thepracticaldev.s3.amazonaws.com/i/k421slwv0mo0eks47pt5.jpg
---

Forking repositories is at the core of contributing to open source, and everyone does it just a little bit differently. So let's take a look at how I used to handle multiple pull requests on the same repository, the problems it presented and the solution to those problems.

## The problem

Say I want to create 2 pull requests to solve 2 seperate issues on the repository `octocat/test-project`. A lot of people would create their first just fine:

1. Fork the repository on GitHub
2. Clone the forked repository
3. Make changes in the `master` branch
4. Push to the forked repository
5. Open the pull request

Ok, that works. However, adding the second pull request changes the dynamic. Making changes to that same `master` branch will affect the original (first) pull request, so let's not do that. Branching off of `master` now will include the changes you've already made for PR #1. Some people might tell you to do the following:

1. Fork the repository on GitHub again (this will create a `test-project-1` repository)
2. Clone the forked repository
3. Make changes in *that* repository's `master` branch
4. Push to the forked repository
5. Open the pull request

Obviously, if you wanted to open a third, fourth, or even a fifth pull request, this becomes unweildy. Did I make that change in `test-project-2` or `test-project-4`?

## The solution

How could you combat this? Branching! When initially cloning the first repository, start by creating a branch for the thing your PR solves:

```bash
$ git checkout -b first-pull-request
```

This creates and checks out the `first-pull-request` branch. Make your changes for PR #1 and push them to GitHub. You can now open your first PR on GitHub.

Adding a second PR couldn't be easier:

```bash
# Ensure you're on master!
$ git checkout master
$ git checkout -b second-pull-request
```

Again, make your changes and push them to GitHub. Now you can safely open the second pull request without having to worry about conflicting with the first one!
How to properly use Observable.Catch()
Tags: reactiveextension, csharp, c
Published: 2017-07-07 17:39:56

---
title: How to properly use Observable.Catch()
published: true
description: 
tags: reactive extension, csharp, C#
---

*This was originally posted on my blog: [https://blog.jonstodle.com/how-to-properly-use-observable-catch/](https://blog.jonstodle.com/how-to-properly-use-observable-catch/)*

When being new to [Reactive Extensions](http://reactivex.io/) there’s a lot to take in and a lot of things are confusing. After a while, you start getting into the flow and things are going better. But then, all of a sudden, you get snagged when trying to use [Observable.Catch()](http://reactivex.io/).

Whenever an exception is thrown inside of an observable chain, it collapses the whole chain. That means that if the source of the observable was an event and that event continues to fire, your observable is not listening to it.

“Aha!” you might think, “I’ll just put a Catch() in there and that solves it”. So you try to do this:

```
Observable.FromEventPattern(window, nameof(Window.Activated))
    .SelectMany(_ => LoadSomethingFromTheWeb()) // .flatMap() in non-C# Rx
    .Catch(Observable.Return("")) .Subscribe(x => { /* Do something */ });
```

That doesn’t solve your problem though. The `Catch()` operator only replaces the previous observable, it doesn’t preserve or restore it in any way. The original subscription to the event is gone.

What you meant to do is actually this:

```
Observable.FromEventPattern(window, nameof(Window.Activated))
    .SelectMany(_ => LoadSomethingFromTheWeb().Catch(Observable.Return("")))
    .Subscribe(x => { /* Do something */ });
```

But how is this different?

Remember that `Catch()` replaces the observable that throwed an exception. You don’t want to replace the observable that starts with `Observable.FromEventPattern()` when there’s an excption, you want to replace the result which failed to load from the web.

By putting the `Catch()` on the `LoadSomethingFromTheWeb()` observable you’re saying “Load something from the web and return the result in an observable. Should that fail, replace that observable sequence entirely with this new one.”

In the example above we replace the failing observable with a new one which just returns a single value: an empty string.

While the `SelectMany` makes it look like the observable returned inside it disappears into the parent observable, it’s actually still there. The `LoadSomethingFromTheWeb()` observable is still present, it’s just that all it’s items are passed directly on to the parent observable.

Understanding how `Catch()` works will save you a lot of headache and make it much easier to handle any errors or exceptions in you observable pipelines. Leave a comment below if you have any questions, I’ll happy to answer them ðŸ˜Š.

Happy coding!
Hi, I'm Pragathikallu
Tags: introductions
Published: 2017-07-07 14:10:03

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

I have been coding for 8 years.

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

I live in Houston, Tx.

I work for Univerval weather and aviation

I mostly program in these languages: English, Telugu and Hindi.

I am currently learning more about Swift and Objective C.

Nice to meet you.
Hi, I'm Luigi Meclea
Tags: introductions
Published: 2017-07-07 13:13:42

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

I have been coding for [number] years.

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

I live in [city].

I work for [company]

I mostly program in these languages: [languages].

I am currently learning more about [topic].

Nice to meet you.
Hi, I'm Fred
Tags: introductions
Published: 2017-07-07 11:35:08

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

I have been coding for 10 months .

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

I live in Lagos, Nigeria.

I work for Gridworx System Strategies (a consultancy in Lagos)

I learned to code on my own in Python, built my first apps at Andela's bootcamp (Lagos) in JavaScript. 

I mostly program in these languages: JavaScript and Python 

I am currently learning more about C#, Python (Flask) and Javascript (VueJs)

Nice to meet you.
There's so much great content, but not enough time?
Tags: discuss
Published: 2017-07-07 10:13:00

---
title: There's so much great content, but not enough time?
published: true
tags: discuss
---

Multiple times a day i'll go through the top post of my subscriptions on reddit. Just quickly going through the articles and comments of topics that interests me. If I feel like it i'll read it directly otherwise it goes into pocket for later reading. 

My problem is that I want to read most of it. It could be topics like functional programming, math, software design, etc. There's so much great content out there and I don't have the time to go through it all. Now and then I have to clean my read it later list realising that this is a topic that i don't have time with.

I'm now beginning to realise that I have to make a list of prioritized subjects to filter my reading list which could be books, articles, a video series to not get overwhelmed.

Can you relate to this? How do you manage it?
Hi, I'm Jens Genberg
Tags: introductions
Published: 2017-07-07 08:37:06

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

I am a software developer living in Vaasa, Finland. I currently work with industrial software, but I am very interested in game development.

I mostly program in C++ and C#.

I am currently working on game projects in C++ and Lua/Love2D.

I am constantly trying to improve my understanding of software and design patterns in general.

Nice to meet you all!
About to learn JavaScript? Projects can ruin you.
Tags: javascript, learnjavascript, javascripttutorial, javascriptprojects
Published: 2017-07-06 22:32:06

---
title: About to learn JavaScript? Projects can ruin you.
published: true
description: Doing projects can be one of the best and worst ways to learn JavaScript.
tags: javascript, learn javascript, javascript tutorial, javascript projects
---


Projects are a great way to get better at JavaScript. However, people often attempt big ones too soon. They say things like, "I'll just code up a quick slideshow," and then when that proves overwhelming, they give up, thinking they're just not cut out for JavaScript.

This problem is important to me because I've seen it stop too many people from learning JavaScript.

The problem happens because a new coder doesn't always have experience determining what's easy. They'll pick a project like a slideshow not realizing that it involves a whole bunch of concepts (animations, arrays, functions, variables, DOM manipulation, timing, etc). Then they end up thinking, "If I can't even do this easy thing, then I can't do JavaScript at all."

Alternatively, some people will take on a project too early and succeed anyway. Because there were too many concepts at one time, they often end up remembering nothing.

The solution I've found to work best is to start with concepts first. Show text on a page. Add two numbers together. Change the color of a div. Respond to a button click. Once you gather a bunch of concepts, you can keep them as Lego blocks in your bag of knowledge. You can put the pieces together and make a whole lot of things. As a result, you'll be able to build a lot of exciting projects, you'll remember everything better, and you won't be nearly as overwhelmed.

I hope this helps, and for anyone who's interested, I've written a [quick road map of JavaScript concepts to get you doing practical things quickly](https://simplestepscode.com/learn-javascript/).
Hi, I'm Gerald Muriuki
Tags: introductions
Published: 2017-07-06 20:20:57

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

I have been coding for 3 years.

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

I live in Nairobi.

I work for Nestmetric

I mostly program in these languages: Ruby,Python.

I am currently learning more about Machine learning.

Nice to meet you.
Hi, I'm Moisés Ñañez
Tags: introductions
Published: 2017-07-06 19:01:32

---
title: Hi, I'm Moisés Ñañez
published: true
description: My introduction post
tags: introductions
---

I have been coding for almost 3 years.

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

I live in Ica, Perú.

I work for [devAcademy](https://devacademy.la)

I mostly program in these languages: javascript and ruby.

I am currently learning more about graphql.

Nice to meet you.
Hi, I'm Octavio LÃ³pez
Tags: introductions
Published: 2017-07-06 18:40:20

---
title: Hi, I'm Octavio LÃ³pez
published: true
description: My introduction post
tags: introductions
---

I have been coding for 1 year.

You can find me on GitHub as [Akteivias](https://github.com/Akteivias)

I live in Ciudad ObregÃ³n.


I mostly program in these languages: [Java](https://go.java), [Elixir](https://elixir-lang.org/).

I am currently learning more about [Phoenix Framework](http://www.phoenixframework.org/).

Nice to meet you.
Hi, I'm Kiffin Gish
Tags: introductions
Published: 2017-07-06 17:35:32

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

I have been coding for 30+ years.

You can find me on GitHub as [kgish](https://github.com/kgish).

I live in Gouda, The Netherlands.

I work for myself at [Gishtech](http://gishtech.com).

I can program a number of languages: Ruby, JavaScript, Perl, C/C++, ad infinitum.

I believe that you are never too old to learn new stuff.

See you around!
Easily get current branch name in git
Tags: git
Published: 2017-07-06 17:13:58

---
title: Easily get current branch name in git
published: true
description: 
tags: git
---
Sometimes I miss the features from [Mercurial](https://www.mercurial-scm.org/) which Git does not have. One of them is [hg outgoing](https://www.mercurial-scm.org/repo/hg/help/outgoing) which "Show changesets not found in the specified destination repository or the default push location". Similar behavior could be achieved with `git log branchA..branchB`, e.g to see *outgoing* commits: `git log origin/master..feature-branch`.

One day I used that command for the branch with really long name. I just typed a few fisrt letters, pressed *tab* and branch name was auto-completed (I personally prefer **fish** shell, but it should also work for all other modern shells). I asked myself: "What if I am using **bash** and I don't have the auto-completion, but I also don't want to use `git branch` and copy-and-paste branch name?".

The answer is to use `git rev-parse --abbrev-ref HEAD`: 

```bash
> git rev-parse --abbrev-ref HEAD
feature-branch
```

I've created the alias for it:

```
git config --global alias.cb 'rev-parse --abbrev-ref HEAD'
    
```
where *cb* stands for *current branch*.

Now I can do following

```bash
git log origin/master..$(git cb)
```

Suddenly I found out that passing *remote-branch* is not needed and previous command could be simplified:


```bash
git log origin/master..
```
Best way to record your screen on Android
Tags: mobile, android, xamarin, screenrecording
Published: 2017-07-06 15:26:25

---
title: Best way to record your screen on Android
published: true
description: 
tags: Mobile, Android, Xamarin, ScreenRecording
---

I have been wanting to write for a while now. Finally, as [@teamcoder](https://dev.to/teamcoder/give-up-perfection) put out, decided to give up perfection and here it is.

If you wanted to record a tutorial or wanted to create a demo of your app you'd need to capture the screen in real time. Without installing some third-party crappy piece of software this is daunting. So below is one of the easy steps to follow for geeks in you.

Download the **platform-tools** from below URL if you don't have [Android Studio](https://en.wikipedia.org/wiki/Android_Studio) installed.

[developer.android.com](https://developer.android.com/studio/releases/platform-tools.html)
![image](https://68.media.tumblr.com/cca00da1748263d0e83725a5b35a45fe/tumblr_inline_osmfr8Ap9k1r9udzd_540.png)

*   Connect your Android Phone to your computer.

*   Make sure you have selected the option "Use USB for" to "File transfers"![image](https://68.media.tumblr.com/96002147472c6fe7d3086ffd35018c1a/tumblr_inline_osmhjmrbD51r9udzd_540.png)

*   Open the command prompt (Win+R)

*   Enter the below command
_**adb shell and press**_ "Enter" key![image](https://68.media.tumblr.com/22506d9da7d8961c43af01d9aade6ff8/tumblr_inline_osmgdouEA01r9udzd_540.png)

*   Write the below command to record the screen
_**screenrecord /sdcard/download/fileName.mp4**_![image](https://68.media.tumblr.com/68e8f4afd8ea3d9412d42ef34e857c4a/tumblr_inline_osmgktR5a91r9udzd_540.png)

*   Once you are done with recording the screen, press "Cntrl + C" to stop

*   You can now just browse to the same folder you have given in command and get the file![image](https://68.media.tumblr.com/6aa818d95f930b722eff6647bc794f6b/tumblr_inline_osmgsdo8WK1r9udzd_540.png)
The What and Why of PostgreSQL Views
Tags: sql, postgres, rails, videos
Published: 2017-07-06 14:43:07

---
title: The What and Why of PostgreSQL Views
published: true
description: Anna Rankin stops by to discuss the choice to go with PostgreSQL views in order to automate processes and clean up application code.
tags: sql, postgresql, rails, videos
---

Anna Rankin stops by to discuss the choice to go with PostgreSQL views in order to automate processes and clean up application code.

> Views are pseudo-tables. That is, they are not real tables; nevertheless appear as ordinary tables to SELECT. A view can represent a subset of a real table, selecting certain columns or certain rows from an ordinary table. A view can even represent joined tables. Because views are assigned separate permissions, you can use them to restrict table access so that the users see only specific rows or columns of a table.

[More info on PostgreSQL views](https://www.tutorialspoint.com/postgresql/postgresql_views.htm)
Hi, I'm William King
Tags: introductions
Published: 2017-07-06 12:40:47

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

I have been coding for 2 years. I started with a background in Design from Auburn University, but started learning Front End Dev and never looked back. 

I have been a long time reader, but decided I want to start sharing as well. I hope that what I write will help others out there who are trying to navigate that fun grey area in-between being a Junior and Senior Dev hahah. 

You can find me on GitHub as [wking-io](https://github.com/wking-io)

I live in Montgomery, AL.

I work for [Skillcrush](https://skillcrush.com) as a Junior Front End Dev. 

I mostly program in these languages: Javascript / PHP / SCSS.

I am currently learning more about Javascript, React, Webpack, and all things required to build full Javascript applications.

Nice to meet you.
Hi, I'm ronak
Tags: introductions
Published: 2017-07-06 12:39:27

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

I have been coding for 6 years.

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

I live in Bhuj-India.

I work for Msys Technologies

I mostly program in these languages: English, Hindi.

I am currently learning more about Angular.

Nice to meet you.
Hi, I'm Banso D. Wisdom
Tags: introductions
Published: 2017-07-06 12:36:27

---
title: Hi, I'm Banso D. Wisdom
published: true
description: My introduction post
tags: introductions
---

I have been coding for [1.5] years.

You can find me on GitHub as [Overrideveloper](https://github.com/Overrideveloper)

I live in [Abuja, Nigeria].

I work for [BizzDesk Global Solutions, Nigeria]

I mostly program in these languages: [C# and Angular.JS].

I am currently learning more about [Python and Django].

Nice to meet you.
Hi, I'm Billie
Tags: introductions
Published: 2017-07-06 11:55:08

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

I have been coding for 10 years.

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

I live in London.

I work for Purple Booth Ltd

I mostly program in these languages: JavaScript, PHP, and GoLang.

I am currently learning more about GoLang!

Nice to meet you.
Hi, I'm Oguejiofor Chibueze
Tags: introductions
Published: 2017-07-06 09:37:20

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

I have been coding for [2] years.

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

I live in [Lagos].

I work for [company]

I mostly program in these languages: [Python].

I am currently learning more about [Machine learning].

Nice to meet you.