- cross-posted to:
- lemmyshitpost@lemmy.world
- cross-posted to:
- lemmyshitpost@lemmy.world
cross-posted from: https://lemmy.blahaj.zone/post/31679150
proportional reaction
cross-posted from: https://lemmy.blahaj.zone/post/31679150
proportional reaction
I kind of love the idea of the ternary operator. C is all about being a procedural language, except this is of course a lie, because it does have mathematical expressions.
But then they realized that it’s not just mathematical expressions where being purely procedural is kind of shit, so they wanted to introduce if-else expressions.
But oh no, we can’t have it look like the if-else control flow element. This is where
madnessfunctional programming lies. Let’s make it look like a mathematical expression instead, by choosing the ugliest syntax known to man.But what really makes it a meme is that other languages decided they needed to look like C, so they copied this terrible design and even though JavaScript has almost nothing to do with C anymore, webdevs in particular get to suffer from the unreadable syntax all the more.