this post was submitted on 16 Jul 2023
693 points (92.2% liked)

Programmer Humor

32596 readers
553 users here now

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

Rules:

founded 5 years ago
MODERATORS
 

No offence

you are viewing a single comment's thread
view the rest of the comments
[–] Iteria 1 points 1 year ago* (last edited 1 year ago)

The vary concept of truthy and falsy makes it very out of step. The triple equals only partly negates that foot gun. Const and let also only partly negate the footgun of hoisting, lexical scope, and the non-obvious impacts of currying. Prototype inheritance would be truly bizarre to people used to more standard inheritance style and many people don't know that javascript's classes are syntax sugar over that system and it leads to foot guns. Many people don't understand destructuring, because they don't understand that javascript objects are all dictionaries in a trenchcoat. Honestly there's a lot of cargo cult behavior in javascript that comes because the language is bizarre given what most people would have experienced.