That’s fair! Takes time to get used to. Modern editors make this easier by highlighting the current indent level, or can even make the top X lines of the current closure “stick” to the top of the editor for those really long blocks.
That’s fair! Takes time to get used to. Modern editors make this easier by highlighting the current indent level, or can even make the top X lines of the current closure “stick” to the top of the editor for those really long blocks.
Correct, I linked the source of the quote. My implication is the general idea is applicable here. Is python one of these languages where it is idiomatic to nest code deeply?
Flat is better than nested.
From the python I have seen and written, deep nesting is avoided.
Just curious, what about spaces made it hard? What language would have been easier? In curly brace languages, 99% of the time, a curly brace is followed by a line break and an indent. Python is similar except it’s typically a colon, line break, then indent.
What I have learned is: If the code is indented too deeply, it’s a code problem, not the language.
Torvalds infamously wrote:
“… if you need more than 3 levels of indentation, you’re screwed anyway, and should fix your program.”
I am a man and I am affected 0% by this meme. This meme was a chance to display some empathy and understand why it might be that the bear analogy strikes a chord with many women.
When I go to the grocery store, do I have to think about being snatched? My privilege affords me the convenience of not worrying about that. Do I need to worry about being sexually assaulted walking home? Statistically, probably not. There are a whole host of problems and horrific fates that befall women disproportionately, and very often at the hands of men.
Why would a woman feel safer with a bear?
The 750,000 black bears of North America kill less than one person per year on the average, while men ages 18-24 are 167 times more likely to kill someone than a black bear.
Most attacks by black bears are defensive reactions to a person who is too close, which is an easy situation to avoid. Injuries from these defensive reactions are usually minor.
https://bear.org/bear-facts/how-dangerous-are-black-bears
Since 1784 there have been 82 fatal human/bear conflicts by wild brown bears in North America. Yellowstone National Park has seen a mere 8 since being established in 1872, which is only one more than the number of people who have died from a falling tree.
https://bearvault.com/bear-attack-statistics/
Seems to me that even I would be safer with a bear than a man. Makes you think, doesn’t it?
asyncio.run(easy_peasy())