sirsinsalot
Joined 5 years ago
Joined 5 years ago
Use a defaultdict if you must have all keys optional. Using get() everywhere is buggy because it masks illegal key use.
Ive also been deep in AI. Not only is AI inadequate for well engineered software, I think treating programming as a language translation task between spec and code boring. They're even worse for research, rabbit holes and bad lines of reasoning.
Im amazed people don't see how much smoke and mirrors even the frontier models and harnesses are using to mask the fact that they're reasonable sounding bullshit machines.
Save your "you're holding it wrong" if you're not going to suggest how to hold it.
Cult speak escape hatches are intellectually lazy.
Bodies are fun.
Most of the dolts I interviewed in the UK had a 6 week bootcamp behind them and called themselves "JavaScript Experts". No joke.
Your comment boils down to "I'm smart", which in the end, isn't terribly smart.
Having simplicity and expressiveness as a goal, and a general direction of achieving things through lazy means is at the heart of mathematics and engineering.
Celebrate laziness and a want for simplicity. True simplicity is hard, but worth going after even where it threatens the notion that you're the smartest person in the room.
Cheaper than get() masking bugs in your code or dict generation.
But yes let's prematurely optimise for speed in a slow-by-default language by writing bug prone non-idiomatic code. OK.