ITZone

JavaScript panorama of 2016

The programming picture is a colorful picture, with exciting changes never showing signs of stopping. The witty conversation below will hopefully improve some of the excitement in that picture, and help you grasp the latest "black models" recently.

Hey, I just got a new web project, but in fact, I haven't touched the web much in recent years, and it seems like the web market has changed a lot. You are one of the most famous web dev lately, right?

Great. I need to create a website that displays the latest activity from the user, so I just need to get the data from the REST endpoint and display it as a filtered table, and update it if there is a change on the server. What if I use jQuery to access and display data?

Oh really. What is React?

Sound good. Can I use React to display data from the server?

Wait, go to the two libraries, huh?

JSX? What is JSX?

What about HTML now?

Ah. That's right, if I add these two libraries then it will be able to use React, right?

Another library? What is Babel?

ES5? ES2016 +? What are you talking about. What is ES5 with ES2016 +?

ECMAScript?

Seven versions too. Really. What version is ES5 and ES2016 +?

Wait, what about the sixth version?

Oh. So what is ES2016 + more than ES6?

I don't think he just said anything, all the strange names. I just downloaded a bunch of data from the server, I just added jQuery from a CDN and just took the data with AJAX call, can I do that now?

OK. So instead, I will download three libraries to retrieve the data and display the HTML table.

I got it. What is the manager module?

Ahaaaa. And AMD and CommonJS are …?

OK, that sounds reasonable. What is Browserify?

Npm registry?

Like a CDN?

Oh, that's like Bower!

Well, so … I have to download the npm library from npm, right?

Oh, like Angular!

Come back to React, I have learned too much. So, if I need to use React, I have to access it from npm and then with Browerify, right?

Package a pile of dependencies together, why is it so complicated?

Grunt? Gulp? Broccoli? Mimosa? What are you talking about?

Makefiles? I remember this mainly used in C projects with C ++?

*Sigh*. Do you mention Webpack?

Oh, Ok. Better than any idea?

This CommonJS / ES6 tangle made me dizzy.

Oh my god. Add another -js. Okay, so what is SystemJS?

Wait, but I thought we wanted to build the library in a large file and load that file!

Wait, then we can't just add these three libraries to use React right ??

*Sigh*. Another piece of work, right?

Alright, alright. So if I want to add library directly in CDN, how will I do it?

Typrescript? I thought I was coding in JavaScript!

I rewarded ES2016 + for ES6 superset already! WHY is there an additional Typecript now needed?

And obviously, Typescrip has done that.

* Sigh * … What about Flow?

OcCaml? Functional programming?

I don't understand what the hell you just said.

Wait, I used to study OOP at school, OOP used very well?

What is the name of all the western ships? What is Ramnda?

David, what?

And Erick Meijer is …?

Slowly. Only access and display data is difficult. I am pretty sure that only create tables with dynamic data. Let's go back to React. How do I get data from React server?

Oh, I'm dead. So what will you do to retrieve data?

What is Fetch? What is the name?

Oh, so AJAX?

Callback hell?

Oh, OK. And this "promise" solves this problem, right?

And Fetch does it all right?

God, how many libraries do I have to know? How much is this?

Did you just remind Guy Fiery? Always try it out. What can something Bluebird, Request, Axios do?

Isn't jQuert's AJAX method also starting to pay promise?

He reminded await three times already, but I don't know what it is.

I must be crazy.

Eh? Not in Typescript available?

Say it.

It seems but the two of us have a very different concept of "easy". So, when I finished the above "ritual", I could retrieve the data and could display it with React, right?

Err, not sure. I just need to display the data is okay.

I will pretend I have never heard of those names. Back to the problem, I just need to show the data.

How cool is it? Is my poking fun set? Is this the way you treat people you love?

Stop! Stop it!

I need to display page data, not picking stars in the sky. You just need to tell me which templating engine to use, the rest I take care of myself.

Ugh, I don't remember my name anymore, it's been a long time since I haven't touched.

Err, bear, don't know. Is there any other?

Anything more?

Maybe. Is there anything similar to the last thing you just mentioned?

Err … seems to be newer.

Is not.

Is not.

Is not.

No, did you just remind Jade?

* Sigh * Bear, can't remember. So which one do you use?

Let me guess. Does that need more ES6?

And based on the browser I am using, I need more Babel.

And if I want to integrate without adding a core library, I need to load it as a module from npm anymore ha.

Then you need to add Browserify, or Webpack, or is it something SystemJS does?

If you don't use Webpack, then you have to manage with the new task runner ideal?

But since I should use function programming and typed languages, I first need to pre-compile Typescript or add this Flow.

And then send it to Babel if I want to use await.

So then I can use Fetch, promise, and control flow and all their miracles.

Understood, this conversation is all over. Well, you know what, I also ended up, running off the web, all JavaScript whatsoever.

I decided to break up the backend. Change, then the new version, then the new version, then the compiler with transpiler is too much. The JavaScript community is all crazy people who keep turning around like this.

What happen?

ITZone via hackernoon

Share the news now