3 Worst Programming Languages to Avoid Like the Plague (You guessed it, one is JS)
makeuseof.com/tag/worst-programming-languages/Posted Jun 29, 2018, 2:26 PM UTC
Posted Jun 29, 2018, 2:26 PM UTC
Here lies BenjiSponge (1993 - 2098)
Loving father, musician, and programmer.
"I have only one regret, and it's giving that stupid article a pageview that one time"
Dude, what's it like seeing the future? We were born in the same year, I'm sad I don't have this power.
It's good but it's only going to get better.
Tell me what other language runs natively in the browsers that is better.
HTML. Yeah, I know, it's a markup language, but at least it doesn't have those dastardly semicolons and 'weird hibberdy jibberdy arrays' to deal with! /s
Ian Buckley started out with a degree in Music composition, before devoting his time to DIY tech and coding. He now works as a freelance journalist, performer and video producer living in Berlin, Germany. When he's not writing or on stage, he's tinkering with DIY electronics or code in the hope of becoming a mad scientist.
Ok then.
LOL, so good to finally hear from one of the experts!
Glad I didn't have a mouthfull of a beverage when I read your post. ;)
When you don't understand JavaScript you gotta put it in a black list I know the feeling bro
TL;DR:
Their list:
Reasons for JS?
¯\_(ツ)_/¯
Wow, I had never heard these arguments before !
(or did I...)
PHP and JavaScript have three things in common:
So my theory is that it was popular among Java advocates (trained in schools soon enough) to bash both PHP and JavaScript, pointing out the quirks gained from their awkward births. Pythonistas would occasionally chime in, being a more mature and much loved scripting language that was also taught in schools - though it feels like most Python advocates would usually complain about the C-like syntax, which I understand.
PHP and JavaScript are not bad languages; it just became popular to mock them (out of some kind of professional jealousy?), and that popular bashing simply infects peoples' opinions. It's pretty sad that some people succumb to hyperbole and opinion osmosis like in that article.
On a website running WordPress?! Oh, the fucking irony!
Somehow, this was cringier than I expected. JavaScript sucks because of ASI? Get the fuck out of here.
I've been semicolon-less for about 3yrs, you know how many problems I've ran into during that time after 100s of thousands of lines of code? Fucking zero.
I just want to laugh every time I hear someone complain about JavaScript’s treatment of semicolons. Use them or don’t use them. Outside of a handful of edge cases that you should avoid anyway, it literally does not matter.
There are some deeper problems with ASI in JavaScript that prevent the language evolving significantly without breaking features. This is a biggie. Article is a little naive in this respect.
I've done projects with semicolons. I've done projects without semicolons. It works fine either way.
Either you use them dogmatically when they're not needed 99.999% of the time, or you omit and add them at the beginning of the line whey they are needed 0.001% of the time.
vs.
If you're starting your own project, do it however you want. If you're working on an existing project, do it however the guy who created it did it. The only "wrong" way is to be the one asshole committer who does it differently from all of the others. ;-)
If you're not using Prettier or ESLint you should start.
It's just IIFEs and statements that start with [ that you need the leading semicolon right? I've been thinkiing of dropping them myself
Basically any line that starts with: `([``
Use the eslint rule
no-unexpected-multilineand you should be fine.