R
R
Rapen2017-03-31 22:05:17
JavaScript
Rapen, 2017-03-31 22:05:17

Are projects written in pure JS?

Hello.
Are there any projects, sites or applications that are written in vanilla JS. Why is there an abundance of libraries/frameworks and extensions like TypeScript used for Javascript, can their need decrease with the release of Es-6/7 and further specifications?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrey Burov, 2017-03-31
@Rapen

They write if performance is important, but development speed is not.

joke on
ssRUr.gif

W
wearemieta, 2017-07-02
@wearemieta

Are there any projects, sites or applications that are written in vanilla JS.

Believe it or not, all sites that use js are written in vanilla js. You will understand this when you read my answer to the end.
Let's understand what a framework, library, extension is. You are writing code. Chances are, in different parts and files of your program, you often do the same thing, such as making all the letters in a word CAPITAL. This is what your function might look like in 'vanilla JS':
function wordToUppercase(word) {
  return word.toUppercase()
}

Nowhere else, right? Now you can copy this piece to any part of the code where it is needed. But what if we need to slightly change this function, for example, like this:
function wordToUppercase(word) {
  if (word.length > 3) {
    return word.toUppercase()
  }
}

And again pure js. Now you can copy again! But if we want to count the length of a word in one case, but not in the other? Copy two times and change in one place? What if there are many places?
There was a problem. Need a solution. One of the solutions may be as follows: we will move this function into a separate file, we will refer to it from other files as needed.
What happened? We found a suitable solution for our problem and moved it to a separate piece of code. So what is a framework, library, extension anyway?
Let's go back to our example. The program grew, there were more places with repetitive actions. But we already know how to work with repetitive code, so we took out solutions to problems that we encountered in separate pieces of code. So the totality of all our solutions is the library .
Now we can easily reuse our work in other similar programs.
In abstract terms, a library is a set of solutions to commonly encountered problems .
Again, abstractly, a framework is a set of solutions to commonly encountered problems . Only it solves other problems than the library. Structuring Problems .
People wrote code in js a lot. Faced with certain problems, they found solutions . They began to separate these solutions into libraries, frameworks and extensions , which are nothing more than certain ways to solve certain problems / tasks .
Therefore, every time, before writing something new, you are faced with a choice: come up with a solution to your problems yourself, or use ready-made solutions. That's all.
Specifications are used in exactly the same way to solve certain problems . If your application's problems can be solved using specifications, then your application
's need for other solution tools will decrease.
Can you now answer why all sites that use js are written in vanilla js?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question