this post was submitted on 08 Jul 2023
24 points (83.3% liked)
Showerthoughts
29728 readers
1445 users here now
A "Showerthought" is a simple term used to describe the thoughts that pop into your head while you're doing everyday things like taking a shower, driving, or just daydreaming. A showerthought should offer a unique perspective on an ordinary part of life.
Rules
- All posts must be showerthoughts
- The entire showerthought must be in the title
- Avoid politics
- NEW RULE as of 5 Nov 2024, trying it out
- Political posts often end up being circle jerks (not offering unique perspective) or enflaming (too much work for mods).
- Try c/politicaldiscussion, volunteer as a mod here, or start your own community.
- Posts must be original/unique
- Adhere to Lemmy's Code of Conduct-----
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I am annoyed that I can't think of an argument for this. I don't want to believe it
Whereas many languages make functions first class citizens, via the use of this javascript turns execution contexts into first class citizens as well.
You can build up an object of key value pairs and then proceed as if those were named variables in the code.
Obviously it has its pros and cons, but it’s a powerful tool.