DEV Community

Discussion on: Javascript's Persistent Popularity: No one seems to particularly enjoy the language, but everyone is using it

Collapse
 
dubyabrian profile image
W. Brian Gourlie

I have a theory:

When people start learning to program, they develop a strong favorable bias toward whatever language they've learned. I think javascript just-so-happens to be the first (only?) language a lot of people learn, so naturally they favor it.

I have a feeling if you sampled a large group of polyglot programmers, javascript would not fare nearly as well.

Collapse
 
justgage profile image
Gage

I would say this is true for me. JavaScript was effectively my second language and I thought first class functions were the coolest thing ever, along with object literal notation. It got me into functional programming which I'll be internally indebted. However the number of issues caused by it are unparalleled (except maybe by our Ruby on Rails project).

Naturally as I learned more and more languages I started to realize that while I liked the way I wrote JavaScript I hated everyone else's for the most part. I also hated my own after about 3 months generally.

Elm is like heaven sent for me. You compile it and it works. That just doesn't happen in js land. More like push it to production and have everyone find the errors. Plus the helpful compiler messages, autocompletion, Auto formatting, and enforced SemVer make it just so plesent to work in.