JavaScript the beginning

More than a decade ago, I had started my career, then everyone was busy writing database-centric, server-side applications like web services, web applications, websites, and many more using Java, .NET, PHP, ruby and other technology stacks.

Also, I was told that JavaScript is meant for web page manipulation. You should manipulate web pages only. At most, you should send AJAX requests using JavaScript. It was a language of the browser ONLY.

Of course, co-founder of The Stackoverflow had something else in his mind.

Photo by Dustin Lee on Unsplash

After a decade, everything has been changed. The application that is created using JavaScript is targetting to the server, desktop, laptops, tablets, mobiles and almost everywhere. It is now language beyond the browser.

It’s not limited to browser.

We could write web applications and services using JavaScript using server-side environment like Node+ExpressJS+mongoos.

We could write single page apps using various JavaScript frameworks and libraries like Angular, React, Vue, Ember, Backbone and many more.

We could write desktop applications using JavaScript like Slack, VS Code (The IDE).

Some of the tools that we use to develop, transpile, bundle, minify, serve and many other operations on JavaScript apps are also written in JavaScript.

Everything (tools, apps, server) that helps JS devs to develop, build, bundle, serve and many more are also developed using JavaScript.

In short,

However, some of the developers that are new to JavaScript don’t like some of its features or syntax and choose to go with ES6 to develop their apps. They think ES is the new cool player in the market over JavaScript.

Some new days to JavaScript

These people try to use ES features without knowing JavaScript good parts. They don’t know ES6 is a makeover to JavaScript.

Photo by on Unsplash

You should know what is right and wrong about ES as well as JavaScript.
Eventually, some of the makeover features of ES6 transpiles to classical JavaScripts. For that, you require to know about JavaScript fundamentals.

Please see the following examples from React. One using class and another using pure function.

Render Hello {name} using class. See the transpiled code at right. It has prototype, object linked to other objects, reflection and many more.

Same outcome can be achieved using pure function that transpile to less complex code.

Render Hello {name} using pure function. See the transpiled code at right compared to the last example.

You would end up like these people who don’t know how to use tools at hand.

This is what happens when you don’t know how to use tools but claims about its usage.

So, choosing right feature at right time is important.

The fundamentals of JavaScripts would help you to achieve it.

Features every JavaScript developer should know.

Hence not only next-generation ES6 (or next) but also JavaScript fundamentals, knowing Good and Bad parts of it, is also important.


Leave a Reply