teleren/devto huggingface dataset:
Top 5 Node.js frameworks 
Tags: node, javascript
Published: 2020-12-03 08:54:34

Node.js is an open-source, cross-platform JavaScript runtime that manages JavaScript code outside the browser.
It has many frameworks to work with so today we're going to consider 5 best Node.js frameworks.
First of all, we use the following yardsticks to compare them:
* Scalability 
* Ecosystem 
* Functionality
 
**Express.js** is the most popular one. With this framework it's easier to reuse code to process data, store user sessions, and handle payloads and manage cookie files or Node.js requires you to rewrite many processes from scratch.

**Meteor.js** is a MVC framework that helps create real-time Web applications. Using the same code on both the server and client sides is one of the most valuable features of the platform. It transfers from server to the client not HTML code, but data. Meteor reactive programming model allows you to build applications with less JavaScript.

**Koa.js** provides building web applications and APIs. Generators is the main advantage of this framework. They help avoid callbacks and fix bugs.

**Nest.js** is not just a backend framework, but it leads you to the world of advanced concepts such as DDD, Event sourcing, and microservice architecture. Here is everything  in a lightweight and simple form and you may choose between using the entire platform or just use its components.

**Hapi.js** is considered to be a security focused Node.JS framework. Code quality and verification are prioritized over extensive functionality.

Though Node.js frameworks are not necessary for the back-end in terms of functionality, they make a big difference in development, product performance, and code quality.

It was a short summary of <a href="https://exceed-team.com/tech/5-best-nodejs-frameworks">our article about 5 best frameworks for Node.js</a>. 
Read it to the end to know more about advantages of these frameworks and choose what is suitable for you. 
Don't hesitate to write in comments what your favorite framework is. We appreciate your opinion.
How to build Shazam-like app in React Native
Tags: reactnative, python, acrcloud
Published: 2020-12-03 08:54:15

We are building a Content Recognition app using [ACR-CLOUD](https://www.acrcloud.com/) API. You can use acrcloud in almost any language, they have an android SDK that can be use with react native if you know to do it. We are going to use their Python SDK rather because it's much easier to implement.
We will be building a back-end in python which will handle all the automatic recognition and a front-end in react native which will handle the audio input.

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/27k1qix446k5xhnln4yl.jpg)

# Concept
How will our application work?
ACR-Cloud allows us to scan audio files and it will recognize the song playing, unlike popular methods where the song is listened to in real-time and recognized, we are going to record the audio and scan it but we will create the impression that we are listening to it in real-time.
On our frontend, we will record a 10 sec audio clip and send it to our backend which will perform the automatic recognition and send back the response to the front-end, all this happens in less 20 sec which means processing of the clip takes less then 10 sec on the server.

# Back-end in Python
For the back-end I used Flask to create a simple REST API that handle a file upload.
The API saves the file and passes the filepath to the recognizer. The recognizer returns a JSON object, this object is then returned to the frontend.

**GITHUB** [github repo](https://github.com/champ3oy/ThisSong-Backend)

# Front-end in React Native
Our app uses expo-av for audio recording, the recording is done in 10 sec duration and the file is sent to the API on the back-end, the response contains all the details about the song found including it's spotify ID.
We are going to use the spotify ID to make another API request to the spotify search endpoint using the ID, this will return another JSON object which we use to display the song found, these include: artist name, song title, cover photo URL and spotify link.

**GITHUB** [github repo](https://github.com/champ3oy/ThisSong)
What level of test coverage do you aim for?
Tags: testing, discuss, watercooler
Published: 2020-12-03 08:20:35

I'm sure we would all want to work on a code base with 100% test coverage, but it's not always possible for reasons of budget, legacy laziness, or people not understanding the benefits.

I'm currently re-working a major part of a project at the moment, and am very glad we have high test coverage in it (even if poorly implemented in places). This has let me identify the areas I would be causing to break without having to manually test everything.

The project has a minimum threshold of 95% test coverage, which we're slowly edging down to (we're on about 98 at the moment), but will catch up again in the new year (there's technical debt tasks for them already).

It's accepted that aiming for 100% gets to a point of diminishing returns over a large code base, so what level of coverage do you aim for?
If Statement | Shell Scripting 
Tags: linux, tutorial, devops, beginners
Published: 2020-12-03 08:14:02

**This is a multipart blog article series where I am going to explain the concepts of shell scripting and how to write a shell script in Linux, UNIX or Mac based systems. You can also follow this tutorial blog using windows but for that you have to install a bash from.**

_In this article we will see the syntax of if statement and different types of operators used for doing comparison in between two things using if condition._

### If then syntax
```shell
if condition
then
  statement 
fi
```
### If-else syntax
```shell 
if condition
then
  statement
else
  statement
fi
```
### If-elif syntax
```shell
if condition
then
  statement
elif condition
then 
  statement
else
  statement
fi
```
1. **Integer comparison:**
    - `-eq`: is equal to
    - `-ne`: is not equal to
    - `-gt`: is greater than
    - `-ge`: is greater than or equal to
    - `-lt`: is less than
    - `-le`: is less than or equal to
    - `<` : is less than
    - `<=` : is less than or equal to
    - `>` : is greater than 
    - `>=` : is greater than or equal to
2. **String comparison:**
    - `=` : is equal to
    - `==` : is equal to
    - `!=` : is not equal to
    - `<` : is less than, in ASCII alphabetical order
    - `>` : is greater than, in ASCII alphabetical order
    - `-z` : string is null, that is has zero length

[Practical code file for this article ](https://github.com/rahulMishra05/shell-scripting/blob/main/video5.sh)

_So, this will give you a brief idea about if statements in shell scripting. Hope you liked it and learned something new from it._

If you have any doubt, question, quires related to this topic or just want to share something with me, then please feel free to contact me.

### 📱 Contact Me

[Twitter](https://twitter.com/r_mishra10)
[LinkedIn](https://www.linkedin.com/in/rahul-mishra-66210b185)
[Telegram](https://t.me/rahul_mishra10)
[Instagram](https://www.instagram.com/rahul_mishra10/?hl=en)

### 📧 Write a mail
<rahulmishra102000@gmail.com>

#### 🚀 Other links

[GitHub](https://github.com/rahulMishra05)
[HackerRank](https://www.hackerrank.com/rahulmishra10201)
Any application that can be written in Javascript, will eventually be written in Javascript
Tags: javascript, webdev
Published: 2020-12-03 08:09:41

I was re-reading an old blog [The Principle of Least Power](https://blog.codinghorror.com/the-principle-of-least-power/).

It became famous for its accurate statement that `Any application that can be written in Javascript, will eventually be written in Javascript`

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

Although that alone was funny on how true it is, one comment caught my attention

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

This was commented on 2007, 5 years before Microsoft launch [Typescript](https://www.typescriptlang.org/) that have become the De facto language for Javascript programmer. 

The funny thing is, instead of being forced to used it, developer `want` to use it.
Vedic Samadhan For Love Marriage 
Published: 2020-12-03 08:02:56

In India, there is a myth that inter-caste marriage doesn't last long because both families have different rituals and they have different opinions and they have a gut feeling that their marriage won't work, and to resolve these problems specialist and <a href='https://sites.google.com/view/freelovemarriageexpert/Love-Marriage-Specialist-in-India'>intercaste love marriage specialist in India</a> is best known for this kind of problems we have experience of years to handle these problems.
I will give you a few hints on the best way to prevent marriage issues from happening, and how to explain them on the off chance that they have just happened. Just follow the counsel given in this article to assist you with discovering the goal of your marriage issues. 

There are a few signs that you are having marriage issues. In the event that you don't converse with your mate much any longer, there's some kind of problem with your correspondence. In the event that you've expanded your contentions and battled with your mate, explicitly on a theme you used to never contend about, at that point notice signs should be going off in your mind. 

You have marriage issues. 

So how would you take care of these issues? To begin with, you need to comprehend what a decent marriage is. A decent marriage is just in the same class as the correspondence in it. The better you can impart, the better the marriage you will have. 

The most ideal sort of correspondence happens when the speaker's goal is perceived by the audience. This implies that the rationale, the non-verbal communication, the vocal tone, and the words themselves are not seen as some different option from what they were proposed to be by the speaker. 

A ton of marriage issues emerge basically in light of the fact that one individual's aims and implications have been misshaped. It is possible that they're not truly adept at communicating their goals, or the other party isn't truly adept at perusing their expectations. On the off chance that you need to make progress on your marriage issues, you need to all the more likely impart your expectations and comprehend the other individual's aims. 

This is a two way road. On the off chance that your accomplice will do whatever it takes not to improve at getting aims, or to talk their aims all the more unmistakably, at that point there's nothing you can do to fix the issue. Until they are happy to find a way to determine this contention, it is out of your hands. Yet, generally two individuals who are exceptionally viable are happy to cooperate to ensure they convey appropriately. 

Another approach to guarantee your aims are not confounded is to deal with settling your contentions intelligently. This implies that you should zero in on the current contention, and not raise past contentions again and again. It additionally implies you shouldn't intrude on one another, or let your feelings hinder your conversation, bringing about entryways being hammered, tears being shed and shouting happening. Additionally, you should run after a solutionComputer Technology Articles, not to win a contention.
Passing Arguments | Shell Scripting 
Tags: linux, tutorial, beginners, devops
Published: 2020-12-03 07:46:21

**This is a multipart blog article series where I am going to explain the concepts of shell scripting and how to write a shell script in Linux, UNIX or Mac based systems. You can also follow this tutorial blog using windows but for that you have to install a bash from.**

_In this article we will see that how can you pass the arguments at the time of executing the any file._

### Passing arguments
- We can pass arguments to a script when we are executing it.
- To do so we have to write this command `echo $1 $2 $3`.
- When we run the script at that time we can give three input and they we will be printed on the screen.
- If we want to print the name of the file _(shell file)_, then we can do in this way `echo $0 $1 $2 $3`, again we can pass three variables, but in this case name of the file will also be shown because the name of the file get stored in the 0<sup>th</sup> variable.
- Another way do to the same thing is by using the default variable `$@`, in this way `<array_name>=(“$@”)`
- We have to declare a array which will store the argument, and then we can print it in the same way we print an array on the screen just like this `echo ${<array_name>[0]} ${<array-name>[1]}`
- If we want to print all the arguments then we can do it by writing this command `echo $@`
- If we want to find the number of arguments passed then we can simply use this command `echo $#` this will print the total number of arguments passed.

[Practical code file for this article](https://github.com/rahulMishra05/shell-scripting/blob/main/video4.sh)

_This was all about passing arguments, you can discover more about it. Hope you liked it and learned something new form it._

If you have any doubt, question, quires related to this topic or just want to share something with me, then please feel free to contact me. 

### 📱 Contact Me

[Twitter](https://twitter.com/r_mishra10)
[LinkedIn](https://www.linkedin.com/in/rahul-mishra-66210b185)
[Telegram](https://t.me/rahul_mishra10)
[Instagram](https://www.instagram.com/rahul_mishra10/?hl=en)

### 📧 Write a mail
<rahulmishra102000@gmail.com>

#### 🚀 Other links

[GitHub](https://github.com/rahulMishra05)
[HackerRank](https://www.hackerrank.com/rahulmishra10201)
Understanding Docker: part 19 – Container exit status
Tags: docker, devops, beginners, cloud
Published: 2020-12-03 07:24:43

---
title: Understanding Docker: part 19 – Container exit status
published: true
description: Serie of sketchnotes about Docker. Explaining in a visual way Docker principles.
tags: Docker, DevOps, beginners, Cloud
series: Understanding Docker in sketchnotes
cover_image: https://dev-to-uploads.s3.amazonaws.com/i/9l9sp0k0tg7cfkdqje65.jpg
---

Understanding Docker can be difficult or time-consuming. In order to spread knowledge about Cloud technologies I started to create sketchnotes about Docker. I think it could be a good way, more visual, to explain Docker (and other technologies like Kubernetes and Istio).

We continue the series of Docker sketchnotes about container exit status.

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/9l9sp0k0tg7cfkdqje65.jpg)
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/e2fv3liqez7msqeun1gd.jpg)

As usual, if you like theses sketchnotes, you can follow me, and tell me what do you think. I will publish others sketchs shortly :-).

If you are interested, I published all the sketchnotes on Docker (and new ones!) to make a "book" of 93 pages: ["Understanding Docker in a visual way"](https://gumroad.com/aurelievache#YTLzM).
fix .eslint.js
Published: 2020-12-03 07:21:01

I fixed .eslint.js as below.
I also changed new linecode of .eslint.js from LF to CRLF (I'm using Windows) at the bottom botton.

```
module.exports = {
  env: {
    browser: true,
    es2021: true,
    node: true
  },
  extends: [
    "standard"
  ],
  parserOptions: {
    ecmaVersion: 12
  },
  rules: {
    indent: [
      "error",
      2,
      { SwitchCase: 1 }
    ],
    "linebreak-style": [
      "error",
      "windows"
    ],
    quotes: [
      "error",
      "double"
    ],
    semi: [
      "error",
      "always"
    ],
    "no-unused-vars": [
      "error",
      {
        vars: "all",
        args: "none"
      }
    ],
    "no-console": [
      "off"
    ]
  }
};

```
FrontEnd projects for Beginners
Tags: react, html, css, beginners
Published: 2020-12-03 07:14:27

As a new FrontEnd developer I have had quite a bit of trouble deciding which projects should I do first to learn the basics. Having gone through countless posts and blogs I curated a list of projects for beginners in React.
Once I had the list the second problem that I faced was that I could not find a common repository or guide or a post which had more than one of these projects. At times it really become a cumbersome task to shift through different repository and posts to understand these applications.
One advantage I found having all the projects in one place is that I could visualize how the different features of React worked and how to decide which feature to use for a particular problem.
Though this list in itself is in no way complete it is a start. More applications will be added to this list in the days to come by.

### .[Up and Down Counter] (#Up_and_Down_Counter)
### .[Tic Tac Toe] (#Tic_Tac_Toe)
### .[ToDo List] (#ToDo_List)
### .[Calculator] (#Calculator)

<h3 id="Up_and_Down_Counter">Up and Down Counter</h3>
Up and Down Counter is a basic counter application where on the click of a button the count value can either be incremented or decremented.
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/tayktqp7ve8jq8v34a3v.JPG)

<h3 id="Tic_Tac_Toe">Tic Tac Toe</h3>
The classic Tic Tac Toe game created using React. It is created using the example given in the React official website.
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/v7vic4ctbpfoxjdqtauq.JPG)

<h3 id="ToDo_List">ToDo List</h3>
A simple to do list with two different input fields. It is a simple application to temporarily store the values entered by the user. Currently I have fixed the maximum number of items in the list to five but it can be easily removed by just removing the if condition.
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/w4swoidjleoix260f3qu.JPG)

<h3 id="Calculator">Calculator</h3>
A simple calculator made using React.
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/cnb9lcigmynso7tgj6qz.JPG)

For a demo of the application fell free to wisit the [website](https://aj9775-frontend.netlify.app/#/ToDo).

All codes are available in the [Git Hub repository](https://github.com/aj9775/FrontEndDevelopment).

Please comment if you have any other beginner level project ideas.
story book issue
Published: 2020-12-03 07:02:49

hey every body
i have problem in translating sass  files in storybook .
i have faced with this error and i dont know how to solve it.


the Error is :

ERROR in ./packages/uxid/style/src/uxid.scss 1:0
Module parse failed: Unexpected character '@' (1:0)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
> @charset "UTF-8";
| @import "core/uxid_colors";
| @import "core/uxid_typography";
 @ ./.storybook/preview.js 2:0-35
 @ ./.storybook/preview.js-generated-config-entry.js
 @ multi ./node_modules/@storybook/core/dist/server/common/polyfills.js ./node_modules/@storybook/core/dist/server/preview/globals.js ./.storybook/storybook-init-framework-entry.js ./node_modules/@storybook/addon-docs/dist/frameworks/common/config.js-generated-other-entry.js ./node_modules/@storybook/addon-docs/dist/frameworks/react/config.js-generated-other-entry.js ./node_modules/@storybook/addon-actions/dist/preset/addDecorator.js-generated-other-entry.js ./node_modules/@storybook/addon-actions/dist/preset/addArgs.js-generated-other-entry.js ./node_modules/@storybook/addon-backgrounds/dist/preset/addDecorator.js-generated-other-entry.js ./node_modules/@storybook/addon-backgrounds/dist/preset/addParameter.js-generated-other-entry.js ./.storybook/preview.js-generated-config-entry.js ./.storybook/generated-stories-entry.js ./node_modules/webpack-hot-middleware/client.js?reload=true&quiet=false&noInfo=undefined
What is Flutter?
Tags: flutter, inthirtyseconds
Published: 2020-12-03 06:39:02

Flutter is a UI-ToolKit developed by a team @Google with one thing in mind.
## Making it easy for App Developers to make apps natively for both Android and iOS. ##

Before Flutter, this is how App developers used to make apps for both Android and iOS.

First, they would learn java, kotlin, and android app development, make their app ready on one platform,
and then they would switch to swift and iOS development and repeat the long process again for iOS to get their app on both google play store and app store. Seems tedious eh?
![google play store and app store](https://dev-to-uploads.s3.amazonaws.com/i/zshugbkw26gp5r0o5a02.png)

Not only that. 
When you are making an app. It isn't a one-time thing. You have to push updates, bug fixes all the time, and for each update and bug fix, you would have to update that on both android and iOS. 
![2 codebases](https://dev-to-uploads.s3.amazonaws.com/i/igsh3lazdmxp494cc7vk.png)
and also nowadays,
almost everything in the world has a screen and it's running on some OS.
If you need your app to run on that screen size and aspect ratio to fit that particular screen,
![responsive screens](https://dev-to-uploads.s3.amazonaws.com/i/mofs6y5fz5c1diyknw5l.jpg)
Imagine the number of codebases you have to keep up-to-date. It is just impossible to do that on a long term basis.

And that is where Flutter comes in, with that one thing in mind:
Making it easy for the developer and having only *one* code base for all the different screen sizes and OS.
Let it be Web, Android, iOS, Desktop. It will support them all.
and your app won't look the same in all of those. 

With the layout widgets, we can make the apps look native to the user.
With the MaterialApp widget, we get access to all the widgets and UI tools present in Material Design. which includes tons of cool icons, colors, fonts, sound, shapes, animations and so much more...
![material ui](https://dev-to-uploads.s3.amazonaws.com/i/rg2w6xhs89irl1fdwfoo.jpg)
Even with all of this combined, You as a developer handle only ONE codebase. 
![one codebase](https://dev-to-uploads.s3.amazonaws.com/i/hdic418dkel6j68bs6tc.png)
And that is Flutter.

//pictures were taken from google and app brewery 💥
The Environmental Impact: Cryptocurrency Mining
Tags: blockchain
Published: 2020-12-03 06:14:33

Both #crypto and #blockchain offer promising use cases to finance, supply chain, internet security, cloud storage, and a number of other sectors. 
The Environmental Impact: Cryptocurrency Mining vs. XDPoS Consensus: https://vinn9686.medium.com/the-environmental-impact-cryptocurrency-mining-vs-xdpos-consensus-dbbad22fde04
5. If-then block in JAVA
Tags: java
Published: 2020-12-03 06:11:31

Example:
```
        boolean isAlien = false;
        if(isAlien == false)
            System.out.println("It is not an alien!");
```
Example 2:
```
            if(isAlien == false){
            System.out.println("It is not an alien!");
            System.out.println("and I'm scared of aliens");
        }
```
Example 3:
```
        int a = 60;
        int b = 70;
        if(a < b && a < 100){
            System.out.println("I am happy");
        }
        if(a>50 || b<30) {
            System.out.println("Logical OR operator");
        }
```
Assignment vs Equal to Operator
```
        boolean isCar = false;
        if( isCar = true ) {
            System.out.println("This is not supposed to happen");
        }
```
`if( isCar = true )` in this line, `isCar = true` returns `true`, similarly `isValue=50` returns `50`
So, the following code is not a valid code but the above code is valid as `if` statement accepts `true` or `false`
```
        int newValue = 50;
        if(newValue = 50) {
            System.out.println("This is true");
        }
```