Darkhack
u/Darkhack
I work downtown. I knew it was going to be bad. I knew what streets were closed and what ones weren't. I get that there are a lot of pedestrians. I knew that traffic would be bad. I knew many places just would not be accessible. That's not what I'm complaining about.
There is something really disgusting about seeing people push strollers out into streets or let their 5 and 6 year olds run out ahead of them into traffic so that the parents can cross against a red light. Sure, some parts of the city just were entirely cut off for traffic, but there were streets that were not closed off, ambulances trying to get through, and parents were letting their children get nearly struck by vehicles bec
Sometimes I'll be writing some code and want to perform a task that is only relevant in a single place. Let me just pull an example out of thin air. Suppose I'm writing a function and as a part of it, I want to know if a string is a palindrome (the same forwards and backwards). One might write code like this.
if(str == str.reverse()) { ... }
That's just a one line example, so I probably wouldn't do it for something quite that trivial. I wonder if it improves readability and maintainability to pull it into a separate function and then assign a name to it. That way it reads more like English prose.
if(isPalindrome(str)) { ... }
However, the isPalindrome function is only ever called


