Image for post
Image for post

JS developer in a few minutes.

JavaScript it is easy and pleasant language. In this article, I will show how to write modern JS. If you have some programming experience and want to start coding JS right now this article is for you:) I will not try to show whole JS in this tutorial, but only main concepts and patterns.

Motivation

Declaring variables

Functions

Objects

Classes

JS has a class keyword. Better ignore his existence. You will see later how to live in JS without classes.

Concurrency

JS has only one thread to run your program. And one of the coolest parts of the language is how it solves parallel tasks. While waiting for the response from the server, or user i/o, JS try to complete other possible work. When the response comes, the thread already knows it and will jump to process it after completing the current task.

Patterns

Factories over classes.

Interfaces for functions

No loops

Objects merging

Pure functions

Functional programming staff

JS, it is a very good place for functional programming, since it has all the main properties of functional language. Yes, there is no immutability in JS, but you can easily make it immutable.

Reach the next level of focus and productivity with increaser.org.

Image for post
Image for post
Increaser

Written by

Software engineer, creator of increaser.org. More at geekrodion.com

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store