3
C-sucks
2y

Though JS is a terrible language( as it's absolutely insane ), why do developers love it and why is it taking over the programming world?

JS is just like the C for web, but a bit weird.

Comments
  • 6
    The right tool for the right job, Javascript does what it's designed to do same with C. I don't understand your point.
  • 3
    Because it gets shit done.
  • 4
    Because the only alternative is vbScript, and no one's going to go down that route again.

    Until browsers allow another language to directly run like JS does, we are stuck with it.

    and no, WASM still requires some Javascript to interact with it, so it's not a replacement.

    As for server side, apparently it's to hard to learn another language dedicated to back end, compared to writing a runtime and using npm to create all your code for you.
  • 3
    @C0D4 is it really hard to learn another C-like language? Anyone basically knows all the basics already.
  • 4
    @iiii it's a working theory, it would explain why JS devs have to have JS in the backend 🤷‍♂️
  • 1
    My theory: JS devs feel good after they get something to work with such a crap tool like JS. Like someone may feel great after cutting a tree with a fucking knife.
  • 0
    Because it’s better than nothing and now runs poorly on the backend lol
  • 0
  • 2
    @C0D4 I'm betting on Stockholm syndrome
  • 0
    easy to learn, hard to master language which has monopol on doing anything for web. Once you know it, you as well use it on backend. People prefer non-typed languages becauses for smaller project and prototyping you do not care about it.

    Look there are better languages which are more pleasant to use but it is personal preference.

    I actually realy enjoy Purescript with vanila Javascript dom manipulation. For backend PostgREST got your back and if anything else you pick whatever language it gets you where you need be.
  • 3
    I disagree that it's taking over. If anything I've seen a hefty reduction in the number of vacancies for node roles recently.
  • 0
    @AlmondSauce thanks to all the gods
  • 0
    Whenever browsers will support something else, I'll never write a single line of JS anymore.
Add Comment