this post was submitted on 08 Nov 2022
5 points (100.0% liked)
Programmer Humor
32078 readers
651 users here now
Post funny things about programming here! (Or just rant about your favourite programming language.)
Rules:
- Posts must be relevant to programming, programmers, or computer science.
- No NSFW content.
- Jokes must be in good taste. No hate speech, bigotry, etc.
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Yeah, I really don't get that one. I code in multiple languages where one could use anonymous functions like that, but in all of those languages, it's universally agreed upon that you basically always use named functions, unless you're directly passing it as a parameter.
My best guess for this being a common pattern in JS is that people have less strong feelings about code readability and are often untrained, so may just develop these weird habits without outside feedback...