teleren/devto huggingface dataset:
Getting started with Deno! 
Tags: deno, webdev, node, javascript
Published: 2020-05-15 11:16:14

#What is Deno?

Deno is a general-purpose JavaScript/TypeScript programming environment.If you are familiar with Node.js, the popular server-side JavaScript ecosystem, then Deno is just like Node. Except deeply improved in many ways.

#Deno's Birth
![birth](https://media2.giphy.com/media/28x4tF6ZAOkYo/source.gif)
Created by Ryan Dahl, best known as the mastermind behind Node.js, Deno takes advantage of the JavaScript features that have been available since Node.js was released back in 2009. It also addresses the design flaws that Ryan talked about in his “10 Things I Regret About Node.js” lecture.
{% youtube M3BM9TB-8yA %}

#It was built with:

1.Rust (Deno’s core was written in Rust, Node’s in C++)
2.TypeScript (Deno supports both JavaScript and TypeScript out of the box)
3.V8 (Google’s JavaScript runtime used in Chrome and Node, among others)


#Some Shortcomings of Node

1.Any program can write to the filesystem and the network which is a big security concern.
2.In node, the dependencies are stored in node_modules and there is a package.json but the module system isn’t compatible with browsers so our code isn’t fully isomorphic.


#Features of Deno

1.It is based on modern features of the JavaScript language
2.It has an extensive standard library
3.It has TypeScript at its core.
4.It embraces ES modules.
5.It has no package manager.
6.Security- Deno is secure by default unlike  Node.js which has full access to your file system and network.



#Will it replace Node?

![No](https://i.imgur.com/iKkgKT4.gif)
No. Node.js is a giant, well established, incredibly well-supported technology that is going to stay for decades.

#Should you learn Deno?
![yesno](https://media2.giphy.com/media/3oz8xsjrGkoZPIWtjy/source.gif)
Case 1: You have worked with node before and have little/no knowledge of Typescript:
Ans: Yes you can surely go ahead and start learning Deno 

Case 2: You have never implemented server-side Javascript in Node
Ans: You should start with node first then jump to Deno because: Node has been here a while and has matured over the years in terms of compatibility and community, once you get a hands-on Node you can switch to Deno

Are you ready to try your hands on Deno?
![Excited](https://i.pinimg.com/originals/6a/01/89/6a01896c58e0585369d0d4fd0e41fb6a.gif)
Here are a few resources to get started with

1.[Deno Official Site](https://deno.land/)
2.[The Deno Handbook by falvicopes](https://flaviocopes.com/page/deno-handbook/)

##Thanks for reading!
The most common React mistake
Tags: react
Published: 2020-05-15 11:12:04

Have you ever ran into this warning?

> Warning: Can’t perform a React state update on an unmounted component.  This is a no-op, but it indicates a memory leak in your application. To  fix, cancel all subscriptions and asynchronous tasks in a useEffect cleanup function.

I bet this is the most common ReactJS newbie mistake... Forgetting to clean up your effects.

Stumbled over it again and here's how I fixed it: https://github.com/dimaip/calendar/commit/c20274917feff86af859f7252b717b84936ba865
2 Phase of Programming in collg
Tags: javascript, programming, python, machinelearning
Published: 2020-05-15 11:11:33

In coding there are 2 main parts
1-data structure and algorithm
2-software development
Both are important
U shud practice both parallely
In data structure and algorithm u need to learn c++ or java it is use full in solving the problem like hackerrank problems

Wheras software development help u in building projects

In software development there are mainly 3 division
a) Web development
b) machine learning
C) app development (both ios and android)

a) Web development :
        Used to design Web pages and make Web app like building ur own websites

Language used for Web development :html, CSS, javascript, are the main language
In javascript u have different framework like node.js,reac.js,angular.js


B) machine learning :
It is one of the trending technology were u can build ur own model and train them if u learn this u can build projects like
Face recognition
Handwriting recognition
Corona tracker etc

Language used: Python
Its one of the most powerful language

C) app development :its used to build android or iOS apps
Language used:java, kotlin, swift and flutter
STANDARDS AND SIGNIFICANCE OF NETFLIX CAPTIONING SERVICES
Published: 2020-05-15 10:51:36

The online streaming community Netflix has grown strongly over the years. It is estimated that the users grew in number from 300,000 in 2000 to 600,000 in the year 2002. The U.S streaming subscriptions which are about 51% is for Netflix alone. This was not an easy development, as Netflix suffered quite badly in the beginning.

THE IMPORTANCE OF ADDING CAPTIONS TO NETFLIX VIDEOS

Besides giving the users ‘universal access’ to other language videos, adding closed captions are also essential for a few reasons.

1: The hard of hearing individuals and the deaf community can closely relate with the video, even without the necessity for sounds.
2: When a particular dialogue was hard to comprehend, closed captions made it simpler to give words to sounds.
3: Watching a Netflix video in a silent place is possible without turning on the sounds, if the video is close-captioned.
4: Non-native English speakers can watch and enjoy their favorite Netflix series without linguistic and dialectal issues using captions.

HIGH STANDARD FOR SUBTITLES AND CLOSED CAPTIONS IN NETFLIX

The demand for [Netflix captioning services](https://vanancaptioning.net/netflix-captioning-services.php) and reputed agencies/ services for video captioning Netflix shows are high. Also, the standards of the process of captioning and subtitling itself are crucial. This is because subtitles and captions remain as primary assets. 

It was once considered as a secondary asset. But now, a million subscribers rely on Netflix closed captioning services for accurately framed captions.
However, the request for adding captions to videos is not an easy process. The Netflix community accepts only captions that are precise and provides users with an effortless experience. Additionally, any error in the translation (subtitle) of the video leads to file rejection.

It is henceforth highly stressed to give closed captions that have the exact text of what is on-going over the screen. When content no longer has physical borders, it raises the bar for service to deliver high standards in Netflix captioning/subtitling services.
The javaScript method setInterval EXPLAINED in 5 minutes!
Tags: javascript, tutorial
Published: 2020-05-15 10:44:02

In this video I show you how to use the inbuilt JavaScript method setInterval() in a simple theoretical example, and then a more complex production example, using my game of whack-a-mole.

This video is part of my 'JavaScript Method Series'.

{% youtube GhePFBkdNYk %}
Purposefully Breaking the Pattern of Stress and Overwhelm
Tags: devjournal, codenewbie, womenintech
Published: 2020-05-15 10:08:58

_This post was originally published on May 15, 2020 on [my blog] (https://alexlsalt.github.io/blog)._

Oh hey, Friday morning! A very productive, good, challenging week if I do say so myself.

I took my HackerRank assessment yesterday and it was ... quite challenging! Regardless, I'm still so happy that I practiced test questions in the days leading up to it. We'll see how it all shakes out.

That all being said, I'm so proud of myself for not dwelling on it after completing the test. Once I was finished, it was like I'd dusted off my hands and was content with just letting it be. No ruminating, no internal drama.

Overall, this week I've been focused on pulling back from stress at any moment that I feel on the cusp of overwhelm - and it has done serious wonders for me (and my brain).

We often get stuck in patterns, so I want to work to keep myself out of the chronic stress pattern as much as I possibly can. This includes getting back to restful and 'slow living' evenings and weekends. Really committing to it. Doing it *on purpose* and choosing to rest when I can to be able to hit the ground running and eager once the work day rolls around again.

It's a hard habit to break, but it's so, so worth it. Plus, if this is the type of conscious living I want my life to be about, I need to practice it during each and every present moment that make up a lifetime.
How to start contributing to open-source for experienced devs
Published: 2020-05-15 10:08:18

---
title: How to start contributing to open-source for experienced devs
published: true
description: 
tags: 
cover_image: https://images.unsplash.com/photo-1589449612875-f8168e4cb899?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1474&q=80
---

I got this question in my DM yesterday so here’s how I do it.

(1) Contribute to something you use.

If you have been a dev for some time, chances are you are using many things open source. Eg - youtube-dl, NextJS, ReactJS, Prettier.

Even things that are not open source can have open-source components. Eg - Firebase.

Deciding to contribute to something you use ensures you have the background knowledge and the motivation to do the contribution.

An open-source contribution is a challenging process so this is important.

(2) Look into issues, pick one that excites you

Popular projects have tons of issues. Pick one that you understand and think you can do.

Don’t be ashamed if it’s an easy issue. All contributions matter.

(3) Clone the codebase, understand it and then do the fix

Don’t worry if understanding the codebase takes time. It is expected to take time.

(4) Finally, send a PR

Your PR may not get merged in a day or two. This is normal.

Project maintainers are busy and have a backlog of PRs.

Gently remind them after a week.

Follow through their feedback, and soon you will have your PR merged.

-------

This was first posted on [my LinkedIn](https://www.linkedin.com/in/aviaryan/).
How to find out if the job is right for you
Tags: career, job, codenewbie
Published: 2020-05-15 09:35:44

This post was first published on my blog:
“How to find out if the job is right for you” by pandaquests https://link.medium.com/gV5Lh0ocv6

I worked in different industries — from academia to agency to IT security to health industry — and made a career change from a mechanical engineer to a software engineer. Now, I have finally found my dream job I’m passionate about. I think, I have some authority when it comes to finding the right job for me. Here’s a list that can help you determine if your current job or industry is right for you:

#1. Are you looking forward to Mondays?
According to a Gallup survey, about 71% of people are not interested in their job and about 19% of those surveyed really hate their job. Only about 10% love their job. If you’re one of the 10%, then you’re looking forward to your job — even if it’s Monday and you’ve just had a great weekend.

#2. Do you still have energy when you come home after work?
When you come home after work, do you feel exhausted and just want to sit in front of the TV with a beer or do you still have energy to keep yourself busy with your work outside of work hours?

#3. Do you feel like you have something to learn and grow at work?
Are you interested in the topics at your work or do you feel underchallenged? Do you think that you learn something at work, grow and develop?

#4. Can you apply what you do at work to your personal life?
Is what you do at work useful in your personal life? Can you use the skills you have developed at work to help your friends, family or yourself?

#5. Do you want to develop with the company and the industry?
The company or industry is developing in one direction. Are you looking forward to embracing new changes together with them or are you rather longing for the way it used to be?

#6. Do you identify with the company?
Do you have the feeling that you recognize yourself in the company? Do the values that are lived in the company correspond to your values?

#7. Do you have a true sense of purpose?
Do you believe that your work is of benefit to others, to society or to the world? Or do you rather have the feeling that what you are working on is useless and meaningless?

#8. Are you proud to tell others where you work?
Do your eyes light up when you talk about the job, company or industry you work in? Or shy away about telling others what exactly you are doing?

#9. Did you do as a child what you are doing now?
If you recall what activities you did as a child that you enjoy, do you do these things at your work as well?

#10. Would you do the job even if you did not get any money for it?
Imagine you are not dependent on money and would therefore not be dependent on any job, would you still want to do the same job that you are doing in your current job?

If you have answered “yes” to most of the questions, then you have found a job that you are passionate about and in which you will most likely excel.

Do you agree with my list? Leave your thoughts down below and let me know. What are indicators exist to know whether the current job is the right one for you?
GitHub Workflow And Contribute To Open Source
Tags: showdev, github, workflow, slimcoder
Published: 2020-05-15 09:24:09

---
title: GitHub Workflow And Contribute To Open Source
published: true
description: In this article, we will discuss GitHub workflow and contribute to open source.
tags: showdev, github, workflow, slimcoder
cover_image: https://opensource.com/sites/default/files/styles/image-full-size/public/lead-images/github-universe.jpg
---
In this article, we will discuss GitHub Workflow and how to contribute to open-source projects on GitHub.     

## Table Of Contents
* [Fork A Repository](#chapter-1)
* [Clone Forked](#chapter-2)
* [Create A New Branch](#chapter-3)
* [Add Commits](#chapter-4)
* [Push To Forked Repository](#chapter-5)
* [Create A Pull Request](#chapter-6)
* [Code Review](#chapter-7)
* [PR Merged](#chapter-8)

### Fork A Repository <a name="chapter-1"></a>
First of all, we need to fork a repository. A fork is a copy of a repository. Forking a repository allows you to freely experiment with changes without affecting the original project.
Suppose if you want to contribute in [freeocdecamp](https://github.com/freeCodeCamp/freeCodeCamp) then you need to fork freecodecamp repository to contribute.
You can see a fork button on the top right corner.

### Clone Forked <a name="chapter-2"></a>
Now clone the forked repository by clicking **clone or download button** and open it in your favorite IDE to make changes.

### Create A New Branch <a name="chapter-3"></a>
Now our forked repository is cloned and we have opened it in our favorite IDE now we need to create a local branch with this command.

      git checkout -b branch_name //This will create a new branch locally

### Add Commits <a name="chapter-4"></a>
Now we need to make changes and add commits locally.
The command is given below.

      git add . //This will add local changes
      git commit -m "commit_name" //This will add local changes and add the commit

This command will add local commits.

### Push To Forked Repository <a name="chapter-5"></a>
Now we need to push our local branch and commit to the remote (forked) repository.
The command is given below.
      
      git push //This will push changes to remote branch

### Create A Pull Request <a name="chapter-6"></a>
Now we have pushed local changes to the remote forked repository. Now we need to create a pull request which will be sent to the remote original repository.
After pushing the code we need create a new pull request by click on **create pull request button** and create a PR and select your branch to which you have made changes.

### Code Review <a name="chapter-7"></a>
Our PR is created successfully now we need to wait for our code to be review by the repository contributor/owner.

### PR Merged <a name="chapter-8"></a>
Our code is reviewed successfully by contributor/owner and now your PR is in a ready state to merge with the original repository. 
The original repository owner will merge your PR. Hurray! 
Congratulations you have successfully contributed to open source.
Kata adventures: Find the odd, second part (javascript implementation)
Tags: javascript, map
Published: 2020-05-15 09:23:56

# Intro

This is the second part of the **kata adventures: Find the odd** ([first part](https://dev.to/konstantinosblatsoukasrepo/kata-adventures-find-the-odd-first-part-map-data-structure-43mk)), in this blog I would provide a simple implementation in javascript. (in the end I will provide you a mind blowing solution, no use of map!)

## The problem

    Given an array of integers, find the integer that appears an odd number of times.
    There will always be only one integer that appears an odd number of times.

    (codewars.com problem, not mine)

Now the funny part, let's implement the solution!

## Solution

In plain English the solution looked like the following:

    1. initialise a map (an empty key, value storage)
    2. iterate over the array
       1. if the map does not contain the array value as key
          1. put the value as key and the value of it set it to 0
       2. else
          1. get the previous value using the array value (__Fast value retrieval__)
          2. add one to the previous value
    3. iterate over the map
       1. if you find a integer that is repeated odd times finish and return it

What will need:

1. A map
2. iterate over an array
3. check if the map contains a key
4. retrieve value from a map based on a key
5. set a value for a specific key
6. iterate over a map

let's see how we can do it in javascript `Engilsh -> js :)`

1. Map initialisation: `let myMap = new Map()`, you could have used an object instead, here is a good comparison ([Maps vs Objects](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map))

2. ![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/4doyk004hgkn54tiwgmi.png)

3. Map construct comes with the method `myMap.has(key)`, which in case that key is present returns true, otherwise false

4. `myMap.get(key)`, if the key is present returns the corresponding value, otherwise `undefined`

5. `myMap.set(key, value)`, set the a value for a specified key

6. ![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/ta0yroh0e5qsivfy59v2.png)

let's put all together and form the solution:

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/d41g4pih4ijkag8xp3nz.png)

## The special solution!
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/mfujzlqvoscftu4et1l5.png)
Magic happened! XOR everything! I didn't thought of it, but it was really cool!
More Type Safe and Descriptive Compositions in an Untyped Setting
Tags: javascript, functional, learning
Published: 2020-05-15 08:32:37

---
title: More Type Safe and Descriptive Compositions in an Untyped Setting
published: true
description: 
tags: #javascript, #functional, #learning
---

Functional programming is about composition. Besides normal function composition there is a rich variety of composition types. Let us take a look at functions of shape `<A>(_: A) => Boolean`. In math such functions are called predicates and come from logic.

At first sight it looks like we cannot compose predicates. However, they form a monoid, which is an algebraic structure that formally describes the process of combining things. Combining two predicates is the composition we are looking for:

```javascript
const record = (type, o) =>
  (o[type.name || type] = type.name || type, o);

const Pred = pred => record(Pred, {pred});

const predAppend = tp => tq =>
  Pred(x => tp.pred(x) && tq.pred(x));

const predEmpty = () => Pred(_ => true);

const numLte_ = y => x => x <= y;

const numGte_ = y => x => x >= y;

const isEven = x => (x & 1) === 0;

const numBetween = (x, y) =>
  predAppend(
    Pred(numLte_(y)))
      (Pred(numGte_(x)));

const main = predAppend(
  numBetween(5, 10))
    (Pred(isEven));

main.pred(6); // true
main.pred(7); // false
main.pred(12); // false
```
[run code](https://repl.it/repls/AggravatingAquamarineSystemadministrator)

Using the monoid we can build arbitrarily complex rule engines out of simple predicates.

`Pred` seems to be only a simple object wrapper but it adds type safety to our code, because we cannot use predicates in lieu of normal functions anymore or in a scenario, where booleans are meant to be combined with the `||` operator. Moreover it makes our code more descriptive, because predicates are denoted explicitly.

As functional programmers we do this not only with `Pred` but also with numerous other types. This has an SYSTEMIC EFFECT on our code, especially for a larger code base. Imagine how type safe and declarative it gets.

Read more on functional programming in Javascript in my [online course](https://github.com/kongware/scriptum/blob/master/README.md).
HP Printer Setup for MAC
Tags: 123hpcomsetup, 123hpcom, hpprintersetup
Published: 2020-05-15 08:27:43

Well everyone knows there is always something unique about both MAC and HP printers. When an unstoppable force meets an immovable object, the result is a clear success. So, take note of the following guidelines to perform the <a href="https://www.123hp-com.com/hp-printer-setup/">HP Printer Setup</a> Mac.

Before going into the process, you must remember the presence of the HP smart app in your PC.

<b>Get the HP Smart App</b>
You can find the app on the Windows store and then it now becomes easy to add your printer to the PC:
•	Surf to the HP smart app to download and induct the HP smart app on your MAC laptop or PC.
•	This app is supported only in MAC OS versions 10.12 or later.
•	On the PC, tap to open the HP smart app and also choose the Plus sign as well.
•	Then take note of all the prompts on-screen to include the printer and setup the printer.

<b>Printing the documents</b>

On the app’s home interface, choose a tile to print or scan using the printer and you can even scan the images with the MAC computer’s camera:
•	First of all, click the print documents or print photos option.
•	You can find the file you need in the downloads or the documents folder.
•	Choose the image or the document you want and also select print.
•	Now the print window opens and you have to prefer a different printer.
•	By this, you can make slight modifications to the print settings that includes the paper size or the quality of the output.
•	Finally, click the print option.

Finally, you can even resort to the services of the print anywhere and you can begin to print from any location. All you need is a firm internet facility to do the process. Call the support team number <b>+1-800-237-0201</b> for inquiries regarding HP printer setup MAC just visit our site <a href="https://www.123hp-com.com/">123.hp.com/setup</a>.