teleren/devto huggingface dataset:
Best Node.js Frameworks in Comparison
Published: 2021-01-04 17:19:07

Node.js is an event-driven I/O infrastructure for the JavaScript engine V8 used at UNIX-like platforms. This is a programming environment that enables building heavy-weight complicated applications by means of a light-weight elegant engine. Node.js is an open-source cross-platform tool that allows developers to create both web applications and server ones on the go using JavaScript alone irrespective of operating systems. One of the main capabilities of Node.js is to support and control one or another type of framework.

Frameworks belong to the development tools that help programmers scale up their projects while the development process becomes simpler and faster. Thanks to frameworks a lot of repeating operations can be automated. Node.js web frameworks offer well-stocked libraries with frequently used elements to make programming procedures fewer. Read why Rect developers need Node.js. Once Node.js was a very convenient programming environment a lot of frameworks have been appearing in it since day one. The choice between them depends on your priorities. But in general Node.js frameworks have the following advantages:

low learning threshold;
significant potential for scaling up;
a high degree of compatibility;
easily shareable components.
To provide you with a brief Node.js framework comparison we are giving some basic info about the most popular frameworks for today. 

Read the article about the best Node.js frameworks https://anyforsoft.com/blog/best-nodejs-frameworks-comparison/
Show-Off Your Desktop
Tags: desktop, showoff, watercooler
Published: 2021-01-04 17:12:25

Rules: Share a Screen Grab your Desktop !

Bonus: Include your OS. 

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

OS: Linux  
Disto: Ubuntu 20.10

Looks like I need to clean up my folders, lol. 
I'd love to see your desktop. Go ahead Show-off a litte :D
JavaScript Introduction
Tags: javascript, webdev
Published: 2021-01-04 16:51:37

![charles-deluvio-pjAH2Ax4uWk-unsplash.jpg](https://cdn.hashnode.com/res/hashnode/image/upload/v1609707588069/Y2OTr9mG_.jpeg)
# Introduction
#### What is JavaScript?

JavaScript is the world's most popular language like other languages c,c++.

#### What is programming language?

- Before going to programming language you should aware about program,
program can be many things. It can be a text written by programmer, it can be a direct instruction to the computer about what to do or it can be a data present in memory.

- A programming language is a formal language contain with a set of instructions in a language the computer understands. It is the way of communication with the computer.

### JavaScript Story

Js(JavaScript) was introduced in 1995 by the **Netscape Navigator browser**. After that other graphical browsers are also start adopting Js. It had open the door for making the application directly interactive without even reload the page.

> NOTE:- JavaScript has no relation with the Java programming language. 

#### Then why it is called JavaScript?

Its just because of marketing consideration. When JavaScript came that time the Java language was popular so they thought to named it as JavaScript.

#### What about JavaScript standardization?

After JavaScript adopted by the other browsers outside the Netscape there was a need of standard documentation that describe how JavaScript language should work. The Ecma International organization released **ECMAScript**  standard for JavaScript.

### Supporting Platforms

Now web browsers are not the only platform on which JavaScript is used. It can be used in database like MongoDB and CouchDB use it for their scripting and query language. It also used in different platforms and server programming, NodeJs provided the environment to run JavaScript outside of the browser.
📊 What Is PCI? A Business Guide to Compliance ✔️
Tags: security, compliance, pci
Published: 2021-01-04 16:42:06

💳 Every business that accepts credit cards needs to be compliant with PCI, but your obligations vary dramatically depending on your size and structure.
[Read more...](https://auth0.com/blog/what-is-pci-a-business-guide-to-compliance/?utm_source=content_synd&utm_medium=sc&utm_campaign=pci)
MediDoc: Update 6 - Search Medical Institutions
Tags: dohackathon, django, python
Published: 2021-01-04 13:10:16

# Medical Search

Today, I added the search medical institution page. This is the same as the search case page but, searches for medical institutions (hospitals, pharmacies, diagnosis centers). To implement this, the module `django_simple_search` is used.

```python
from django_simple_search import search_filter

def search_medical(request):
    queries = request.GET.get('q')
    if queries is not None:
        search_fields = ['username', 'address', 'mobile_no', 'emergency_mobile', 'pin_code', 'other_info']
        split_queries = queries.split()
        users = None
        for query in split_queries:
            current_users = User.objects.filter(
                search_filter(search_fields, query),
                is_active=True,
                groups__name__in=['hospital', 'pharmacy', 'diagnosis_center'],
            )
            if users is None:
                users = current_users
            else:
                users = users.union(current_users)
        return render(request, 'cases/search-medical.html', {'users': users, 'search_term': queries})
    else:
        return render(request, 'cases/search-medical.html')
```

In short, the query string is passed via the URL (like https://example.com?q=kolkata). I grab this query string using `request.GET.get('q')`. After that, it is split into multiple queries (for example, `'Hello World'` will be split into `'Hello'` and `World` and thus be two different queries). Then, I query the `User` model using `search_filter` for all the queries and at the end, they are unionized and passed to the template.

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

This marks the end of all feature implementation I had in mind at the start of the hackathon. Let me know if you have any features that you would like to see in the web app! :smile:

## Try It Out

To try it out, please create a patient account [here](https://medi-doc-njgqo.ondigitalocean.app/accounts/signup) and a medical account [here](https://medi-doc-njgqo.ondigitalocean.app/accounts/signup/medical) (note that admin has to approve the medical accounts, so please wait a bit or you can also use the admin account mentioned below!).

Alternatively, you can use the following demo medical accounts:
- devto-hospital
- devto-diag
- devto-pharmacy

the patient account:
- devto-patient

and the admin account:
- devto


Password for all of them is: medidocpass@abc

I would love to hear your feedback! Let me know what you think in the comments.
Bitwise Operators in python
Tags: python, programming, beginners, tutorial
Published: 2021-01-04 16:41:00

When it comes to binary numbers, bitwise operators are the choice.

Bitwise operators are used to performing operations on binary numbers.

## AND, OR, XOR operators
* AND `&` operator sets each bit to 1 if both bits are 1.
* OR  `|` operator sets each bit to 1 if one of two bits is 1.
* XOR `^` operator sets each bit to 1 if only one of two bits is 1.
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/9g0b8u908rwmpit2mt39.png)
Output:
```
AND 82
OR 2039
XOR 1957
```
Ha Ha, surprised about the outputs?!
The outputs are a result of the binary numbers a and b which gets converted into an integer, each time bitwise operation is performed.

## NOT operator
* NOT `~` operator inverts all the bits.
* In python, the number gets converted into an inverted *signed* number.
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/bfahm2w9csppf1v8l92v.png)
Output:
```
NOT -11
```

## Shift operators
* left shift `<<` operator shifts left by pushing zeros in from the right and let the leftmost bits fall off.
* right shift `>>` operator shifts right by pushing copies of the leftmost bit in from the left, and let the rightmost bits fall off.
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/6f9os2b6r0bgzecjy8i9.png)
Output:
```
Right shift 277
Left shift 4444
```

### Best Resources

- [Python Blog Series](https://dev.to/aswin2001barath/series/10416) : A Blog series where I will be learning and sharing my knowledge on each of the above topics.

- [Learn Python for Free, Get Hired, and (maybe) Change the World!](https://academy.zerotomastery.io/a/aff_tz1t0tpx/external?affcode=441520_dcwk-s8s) : A detailed roadmap blog by Jayson Lennon (a Senior Software Engineer) with links to free resources.

- **Zero To Mastery Course** - [Complete Python Developer](https://academy.zerotomastery.io/a/aff_9khypm7v/external?affcode=441520_dcwk-s8s) : A comprehensive course by Andrei Neagoie (a Senior Developer) that covers all of the above topics.

**Who Am I?**

I’m Aswin Barath, a Software Engineering Nerd who loves building Web Applications, now sharing my knowledge through [Blogging](https://medium.com/techsoftware) during the busy time of my freelancing work life. Here’s the link to all of my socials categorized by platforms under one place: https://linktr.ee/AswinBarath

**Thank you** so much for reading my blog🙂.
Book review "Learn Python the hard way"
Tags: python, books, review
Published: 2021-01-04 16:37:49

![Learn Python the hard way](https://dev-to-uploads.s3.amazonaws.com/i/mtfwa61ejkbh7mwfdvzn.jpg)

When I ordered this book, I made a mistake, blinded by good reviews and cheap price :smiley:

My fault, because I wanted to refresh a bit my python skills but this book is for total beginner (non-programmer).

But finally, this is the kind of errors that does not hurt... Even the contrary, I quickly read this book and it was cool :)


## Review of the different parts
This book starts very slowly, not a surprise actually :smiley:

It is illustrated by cool examples (I mean code snippets).
Sometimes, notions are less smooth and a bit parachuted like **modules** and later **setup.py**, but I say this because I tried to put me in the shoes of a total beginner.

After some time, it goes into more real world examples like programming a small game or a mini web app.
The chapters about the game with objects is nice but contains big snippet and a lot of prints.

The overall was pleasant to read but I cheated and do not followed "the hard way" (typing all the snippets) :stuck_out_tongue_closed_eyes:

![Cheat](https://dev-to-uploads.s3.amazonaws.com/i/gevbmo28qy8ofjtei7g8.jpeg)

## Strong opinion about programming...
The author has strong opinions, mainly to try to "keep is simple" for the reader. Here are some :
- "Inheritance is evil forest"
- "Multiple inheritance is evil queen"

The author also recommends "Shot gun prints", I don't know what to say about it, it's not totally true nor false.

![Shotgun](https://dev-to-uploads.s3.amazonaws.com/i/q35pfesk76x2q19m047t.png)


## ...but not about language 
He is preaching for making people learn a lot of languages :
- "When learning a language, don’t be a stupid tourist"
- "Don’t be religious with a language"

I'm not sure about his definition of knowing a language since he consider being able to learn a new language in 1 day to 1 week.

## Critical about programmer job
Along the book (and even more in the "advice from an old programmer" section), the author is very critic about programmer job, and I find it very interesting.

For instance, it is said: 
- "Become programmer, only if you can't imagine doing something else"
- "Programming as a profession is only moderately interesting."

It is also recommended to apply IT science to something real like physics, medicine or industry and not only "IT for IT".

## Conclusion
I will conclude with this citation "Programming is the only form of art that allows you to create interactive art" and by saying that it is a nice book :+1:
Find Runner Up Score | Python Program
Tags: python
Published: 2021-01-04 16:31:11

Hello Developers, 
I am Madhuban Khatri, a Self-Taught Programmer who create Programming Projects or Videos on [YouTube](https://www.youtube.com/channel/UCxPWxR2Rzc2jdk_5JMvoQCQ). In this post, I am creating a Simple [Runner Up Score Program](https://www.youtube.com/watch?v=c9MzwXOuYFw) in PYTHON3. 

Here is the video:-
{% youtube c9MzwXOuYFw %}

## Python Code
```python
# Create a Score List
score_lis = [1,2,3,4,5,6,6,6,7,8,9,9,9,10,10,10,10]

# Print the List
print('Current Scores: ', score_lis)

# Get Max Number from the list
max_num = max(score_lis)

# Count the Max Number 
max_num_count = score_lis.count(max_num)

# Apply for loop and remove Max Number from the list
for i in range(0, max_num_count):
	score_lis.remove(max_num)


# Now Max Number becomes the Runner Up Score
runner_up = max(score_lis)

# Print it
print('Runner Up Score is: ', runner_up)
```

Simple but Useful.

Check out my new Videos on YouTube
* [YouTube Video Downloader](https://www.youtube.com/watch?v=KHvQPzoCZzo)
* [Sending Emails in Django](https://www.youtube.com/watch?v=CMPCYThLziM)
* [File Sharing Website in Django](https://www.youtube.com/watch?v=v0IPz7sPLqY)
* [CkEditor in Django](https://www.youtube.com/watch?v=rlyJVO0I3Uc)
* [The Social Blog](https://www.youtube.com/watch?v=seraT7L8cG0)
Invert a Binary Tree
Tags: programming
Published: 2021-01-04 16:29:08

Consider a Binary Tree (T). The inversion of T is also a Binary tree (M) with left and right children of T swapped.

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

If you're curious to solve this problem before checking out the solution. Try it out in [Leetcode] (https://leetcode.com/problems/invert-binary-tree/) 😉 .

You can find my solutions to other leetcode problems at https://github.com/Rage-ops/Leetcode-Solutions.

---
## Solution
- We can solve this problem both iteratively and recursively. 
- I'll be using the boilerplate code from [leetcode] (https://leetcode.com/problems/invert-binary-tree/) to show both approaches. You can directly submit the solution and verify, once you understand how the algorithm works.

### Recursive Approach
Let's just create an invert function that will take our original binary tree and return the inverted binary tree.

And the functionality of the invert function should be:
- Swap left and right child nodes of the current node.
- Call invert for the left child.
- Call invert for the right child.

This sounds so easy right ?. Yes, it is 😄. We can literally solve this problem recursively with these three lines of code.
 
```python
# Definition for a binary tree node.
# class TreeNode:
#     def __init__(self, val=0, left=None, right=None):
#         self.val = val
#         self.left = left
#         self.right = right
class Solution:
    def invertTree(self, root: TreeNode) -> TreeNode:
        self.helper(root)
        return root
    
    # recursive     
    def helper(self, node):
        if node:
            node.left, node.right = node.right, node.left
            self.helper(node.left)
            self.helper(node.right)
```
---
### Iterative Approach
- Use BFS to explore the tree and swap left and right child for every node.

```python
# Definition for a binary tree node.
# class TreeNode:
#     def __init__(self, val=0, left=None, right=None):
#         self.val = val
#         self.left = left
#         self.right = right
from queue import Queue
class Solution:
    def invertTree(self, root: TreeNode) -> TreeNode:
        return self.iterative_invert(root)
    
    def iterative_invert(self, root):
        if root:
            q = Queue()
            q.put(root)
            while q.qsize() > 0:
                node = q.get()
                node.left, node.right = node.right, node.left
                if node.left:
                    q.put(node.left)
                if node.right:
                    q.put(node.right)
        return root
```
---
`Time Complexity: O(N) as we are visiting each node at once.`

`Space Complexity: O(N) since in the worst case, the queue will contain all nodes of the binary tree.`

The time and space complexities are the same for both the recursive and iterative approaches. In the case of recursion, we can have `n` function calls placed in the stack at the same time in the worst-case scenario.

---
Top Languages in each field.

Tags: codenewbie, programming, devjournal, webdev
Published: 2021-01-04 16:28:39

#Top Languages in each field.

##Web development
- HTML
- CSS 
- JavaScript
- TypeScript
- PHP
- Python

##Mobile Development 
- Java
- Kotlin
- Swift
- JavaScript
- Dart

##Machine Learning
- Python
- R
- JavaScript
- Java
- C++

##Artificial Intelligence
- Python
- R
- Java
- JavaScript
- C++ 
- C

##Game Development
- C++
- C#
- Java
- JavaScript

##Data Science
- Python
- R
- Scala
- SQL
- Java

##Cyber Security
- C++
- Python
- JavaScript
- PHP

You can add the languages missing in each category?
🚀Easy peasy, three steps to manage your state in React.
Tags: react, javascript, statemanagement, contextapi
Published: 2021-01-04 16:09:16

##Happy to see you guys in another blog 😇.

In this blog, we see how to manage our state with ContextAPI, which is easy and more powerful in React. Without drilling props to props... context API makes our lives easier🤟.

###create Context
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/32u7yp088pmstmlsgxt7.png)

Here I've created the useContext and pass it to the value of my name. This name value we can get anywhere on the folder by importing the useContext Hook.

###Wrapup the parent component
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/agrtjs692l0vlhh3cd20.png)

Make sure to import your NameProvider and wrap up the parent component, it gives the access to pass the value inside all the children.

### use Context
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/g6mzxaxlz52ylx3jqxfr.png)
First import the useContext hooks and then the last step, import the NameContext which holding our state in this app. In my app, I want to get the value of a name in my header file. 


> Really this is easy😎 and cool, I just gave a 🧑‍💻demo by using a single file, if your app goes longer and longer, you can create the multiple create context and import where you want.
Any advice on how to get the most out of wireframing?
Tags: webdev, design, discuss, help
Published: 2021-01-04 16:06:20

Does anybody have some advice to share on the wireframing process? What are your tips and tricks to get the most out of wireframing and keep the process focused? I work with a small team of designers and developers and it's time we took more advantage of this practice.

Thanks devs!
Expedia Adventures as a Developer Educator owning a Jira Board & Backlog
Tags: agile, career
Published: 2021-01-04 15:52:51

As some of you know, I [posted previously](https://dev.to/alejandra_quetzalli/sooo-i-m-a-developer-educator-now-1fe1) that I just started a new role with [Expedia Group](https://www.expediagroup.com/). 

I accepted a role as a **Developer Educator (DE)**, which means I will be writing and maintaining lots of engineering documentation, API refs, and tutorials. 

I had been feeling for a while that I needed a new challenge that felt more like me. This new role felt perfect for my next learning adventure.

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

## Little did I know
In my first week on the new job, I was given 2 mentors to ramp me up on the platform and the new role. To be honest, this is the **MOST mentorship** any company to date has given me! It was awesome!  

But, a few days into the role, my primary mentor pulled me aside to explain that she and her fiance wanted to move back closer to home in Europe. (She is Romanian.) She told me she wanted me to know asap so that I wasn't shocked that she only had 2 more weeks with me. 

In essence, **the previous Senior DE was telling me she was leaving and passing the baton over to me.** 

Eeeek! AAAAH!!

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

## What did this mean?
Well, one of the main things this previous Senior DE was in charge of was the Backlog Board and she was also kinda our Scrum Master. 

Suddenly, **I was in charge of maintaining our Jira Sprint board, the backlog, and more!**  

![Not my actual team's backlog, yo! Got this from google somewhere...](https://dev-to-uploads.s3.amazonaws.com/i/k32sskd9fjf0n2y0z4wb.jpg)
*Not my actual team's backlog, yo! Got this from google somewhere...*

Even though this meant an increase in responsibility I had not anticipated, I found myself excited at the opportunity. I have been Scrum master before for smaller projects and I missed this area of responsibility. 

<mark>The truth is, there is nothing like being left in charge of a Backlog board to REALLY get to ramp up on your new product.</mark>  

## Do you feel ready for the added responsibility?
Yes! 

I will probably make many mistakes and learn a lot. And that is what keeps a job interesting! 😄
10 Minute Review of a Real Resume
Published: 2021-01-04 15:32:00

---
title: 10 Minute Review of a Real Resume
published: true
description: A 10-minute review of a student's resume. I answer what I look for as a hiring manager, offer feedback around format, contents, and how to make the resume stand out even more.
tags: 
cover_image: http://i3.ytimg.com/vi/MOHDYJNBNWs/maxresdefault.jpg
---

{% youtube MOHDYJNBNWs %}

If you've read my stuff before you know I go on about career advice for developers. Not too long ago, in fact, I made a post seeking out people who would like me to make a 5-10 minute video reviewing their resumes.

This is the first of those resume reviews. If you want me to review yours, reach out to me and I'll add it to the queue!
FREE Hosting Classic React Landing Page Template
Tags: react, javascript, startup, gatsby
Published: 2021-01-04 15:30:24

Hello again good people of Dev.to! Like clockwork, once again I am back with yet another absolutely free React landing template - the simple yet stunning **[Hosting Classic](https://startup-hosting-classic.vercel.app/)** React landing template!

As always, this free Hosting Classic React landing template continues with the same minimalist design ethos that has continually been popular with our users. Utilizing Next JS and Gatsby JS, this free React landing template is fast, SEO friendly and not to mention secure too. And like the others, the Mailchimp integration is there to make lead generation and maintenance no difficult than just a few clicks!

More free React landing templates will be added regularly so do keep an eye out here. And if you like this, do stay connected with us on:

👉Facebook: https://www.facebook.com/StartupLanding
👉Twitter: https://twitter.com/startuplanding

and check all the templates from:

👉 Check it live here: https://startuplanding.redq.io/
👉 Check it on Github: https://github.com/Startup-Landing/Startup-Landing
👉 Check it on Producthunt: https://www.producthunt.com/posts/startup-landing