this post was submitted on 21 Nov 2023
193 points (90.7% liked)

Programmer Humor

32467 readers
1243 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] CanadaPlus@futurology.today 1 points 11 months ago* (last edited 11 months ago) (1 children)

I'm familiar with the early history, I've dabbled in it in modern times, and of course I've seen all the ways it's bad memed about ad-infinitum (and have to agree).

I didn't really think I had to be able to write a book on it to say it doesn't deserve the use it gets, and I don't think it's outrageous to imagine that there's a connection with the hasty genesis. So, I mentioned that off-hand. If it's actually unconnected my bad.

[–] HKayn@dormi.zone 1 points 11 months ago* (last edited 11 months ago) (1 children)

The memes are annoying because most of the complaints are superficial.

"Look, "b" + "a" + +"a" + "a" outputs "baNaNa"! JavaScript bad!" Yeah, that's what happens. Just don't do that thing that obviously doesn't look right. Don't use var, just like every modern JavaScript learning resource will tell you. Don't use == if you don't intend for type coercing to happen.

If you don't write bad code on purpose, JavaScript is fine.

[–] CanadaPlus@futurology.today 3 points 11 months ago

If coding teaches you anything well, there's no bound to the different ways you can screw up. Don't use bad languages on purpose.