Was going to say that.
@OP:
One of the main skill a developer must have is being able to troubleshoot properly how their code behave.
Break your code in small pieces, check all of them with unitary test (formal or not) to validate their behavior then move to the next step. Never test everything in one shot or you will be overwhelmed by side effect bugs whom will distract you from the real root cause.
Being a programmer is not just coding but also testing and deploying (even locally).
That won’t avoid you being blocked by a silly mistake for hours, everybody did that at some point in their career, but that will reduce your frustration against yourself when you discover why the bug existed.
Do a pause, go walk, change the topic and the next time you look at your code, you will spot the obvious bug :-)
When does it started ? Do you have law prohibiting smoking in public place like restaurant, transports, nigth club, office, etc ?
Because, while it’s true we see less smokers in movies, it’s the first time i hear US having a anti-smoking culture… Note that I include drugs like weed in the smoking culture and we heard a lot from it recently. And only from US.
On my country, since the 90’, it’s forbiden to smoke in public place, in the office, etc. They also increased a lot it’s price bia taxes, put labels on the packaging and the amount of smokers reduced a lot since. But hollywood still represent us as smoker ^^