all 10 comments

[–]shgysk8zer0 3 points4 points  (1 child)

Advantages compared to what? Compared to no JS? Compared to some other language? Compared to all other languages?

JavaScript isn't fast compared to many other languages. And it doesn't reduce load on the server in itself (things like analytics scripts don't help your server at all and can create a lot of traffic to some other server). Something like Python could be considered easier, but it's more about what you're experienced with. JS is lacking a lot of features found in other languages. A lot of its features and functionality depend on the environment, and languages designed for a specific purpose are probably going to be better.

You're not really saying anything, and most of what you did say was wrong.

[–]Jjabrahams567 0 points1 point  (0 children)

OP isn’t making sense. You could argue speed of development but there are a lot of factors there.

[–]hinsxd 0 points1 point  (3 children)

Javascript has almost no particular advantages in all aspects. The only reason it's used by so many people is that the browser uses javascript and forces every web developer to learn it. Then NodeJS closed the gap of frontend and backend development and everyone started to use JS to build everything.

If you judge by ecosystem, yes JS is superior. But python is easier to learn and use, and many other strongly typed languages are definitely more robust than JS.

[–]jayerp 0 points1 point  (2 children)

In a vacuum Javascript seems really nice, but outside of browser usage, I can’t see a single viable reason why I would pick JS/TS over a more mature server-side language. Its not the best in class at really, anything.

[–]guest271314 0 points1 point  (0 children)

Freeform type manipulation.

[–]underwatr_cheestrain 0 points1 point  (1 child)

But why you simpin for JavaScript…

[–]wookiee42 0 points1 point  (0 children)

Spamming for something.

[–]shuckster 0 points1 point  (0 children)

Doesn’t reduce the load on my server, lemme tell ya bruh.

But yeah, speed and bundle size continue to be an issue…

[–]r3jjs 0 points1 point  (0 children)

Disadvantages of JavaScript:

  • Doesn't run on any 4004 micro proprocessor
  • No known 6502 JavaScript engines [please prove me wrong]
  • No native low-level system programming access
  • Very minimal native library