D
D
Daniel Skripnik2015-11-14 15:44:04
JavaScript
Daniel Skripnik, 2015-11-14 15:44:04

Pure JavaScript, is it alive?

Good afternoon, ladies and gentlemen.
Is pure JavaScript alive?
Who uses it, is it possible to do commercial development exclusively on it?
PS I'm familiar with HTML/CSS/jQuery/AngularJS/JS, but I'm most attracted and like working with JS, is there life on Mars?
Thanks

Answer the question

In order to leave comments, you need to log in

4 answer(s)
D
Dima Pautov, 2015-11-14
@bootd

Familiar with jQuery/AngularJS/ JS

Um, did you get it right? Do you write in jQuery/AngularJS/ JS , but do you like to write in js the most? Something is wrong here!
Lose on business! Everything that happens next is purely my opinion!
In general, a very strange trend, pure js. And from your jQuery/AngularJS list - isn't that pure js? Maybe I'm all faylyat now, but still.
What is the difference between jQuery and js? Can you name it? I don't see any. jQuery is just a js wrapper that allows you to use the same functions in a more convenient way. But it is written in js, which means it is pure js!!
For example: let's write a simple function to hide an element
var hide = function(elem){
  document.getElementById(elem).style.display = 'none';
};

hide('text');

on jQuery
These 2 functions do the same thing. Simply hide the specified element. And the whole jQuery is written from such functions that you have to use all the time!
It turns out that if I write a mini js framework for my project, so as not to write constantly repeating code and use its methods as when using jQuery, then I will stop using "pure" js? Where is the line in your understanding?

V
Vitaly Inchin ☢, 2015-11-14
@In4in

Alive, he is alive, but that's what it is - another question.
Quite a large part of it is ideas embodied in "dirty" (as it should be logically called) JavaScript (that is, some kind of library) and adopted by programmers passing by from Ecma. Often, the “dirty” counterpart is faster than the clean one, and what can we say about cross-browser compatibility ...
The most famous example is jQuery, thanks to which a sea of ​​\u200b\u200bthings appeared in native JS. Coincidence.
So what am I talking about, to the fact that really pure JS is actually objects, variables, primitive types, constructors, functions, methods that have existed for centuries for working with the DOM, etc. platitudes. And what you give in the example is a completely different story.
I hope I expressed my idea correctly.

S
sanex3339, 2015-11-14
@sanex3339

I've been writing in TypeScript since August. I won’t return to pure JS again (only if there is no emergency), if someone rubs that they say “you are working now, writing in TS, and then you quit and the one we take after you will rake up the whole thing” - I will answer 2 things:
- (I'm not going to quit =)) the one who will rake the whole thing will thank me later for the normal architecture of the project.
- TS features are learned in 1 day.
PS: I don't like implementing classes based on prototypes without using syntactic sugar.
In es2015 it is almost normal, but there is no such thing yet https://github.com/jeffmo/es-class-static-properti...

I
Innokenty Ivanov, 2015-11-14
@Kenya-West

I use it to develop universal Windows applications. And then there is the WinJS library (compatible with the frameworks you listed).
I can't stand jQuery, I'm allergic. Better then TypeScript.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question