News for hackers. Stuff that matters.
Re:MentalHealthError: an exception occurred by fishnchips on Saturday February 27, 2016 @07:53AM (#11186959)
I personally found out that coding before sleep is a horrible thing for you - your mind keeps working on problems long after you close your IDE.
Re:MentalHealthError: an exception occurred by hacker_9 on Saturday February 27, 2016 @08:09AM (#11186991)
I agree your mind doesn't stop, but sometimes I solve my problems in that moment before sleep, I think because I can direct all my energy to it (even eyes are closed, so no visual processing needed).

Though the tired mind is often very keen to simply recurse over thoughts you've already had opposed to think of new ones. If you find you can't stop yourself going over the day though, then 10-15 mins of meditation, where you force yourself to concentrate on clearing your mind, can stop these thoughts so you can sleep. Do this every night for a few weeks and it becomes second nature.

Re:MentalHealthError: an exception occurred by dmoney on Saturday February 27, 2016 @12:14PM (#11187685)
I've found that reading sci-fi/fantasy before going to sleep helps me transition to sleep mode. I think it's because sci-fi problems are really somebody else's problem, so my brain can let them drop when I put the book down.
Re:MentalHealthError: an exception occurred by joepie91_ on Sunday February 28, 2016 @04:43AM (#11190491)
I really couldn't agree with this more. Reading before you sleep is so important to getting a good night's rest. Using a physical book or an e-ink screen, anything that doesn't emit light itself.

Seriously, invest $150 into getting a good e-reader, if you don't have one already. It's well worth the sleep benefits, potentially even more than a good mattress (for a programmer, anyway).

Re:MentalHealthError: an exception occurred by fishnchips on Sunday February 28, 2016 @02:10PM (#11191904)
One thing I personally found useful was f.lux - an OS X app that changes the temperature of your screen when it gets dark outside. Sounds trivial but makes a huge difference.
Re:MentalHealthError: an exception occurred by majewsky on Wednesday March 02, 2016 @02:58PM (#11212547)
I use red sunglasses for that (sometimes advertised as "UV protection"). The advantage is that it works on all devices, even analog ones. :)
Re:MentalHealthError: an exception occurred by kenneth_reitz on Sunday February 28, 2016 @11:53AM (#11191357)
I watch Netflix :)
Re:MentalHealthError: an exception occurred by ff_ on Saturday February 27, 2016 @08:29AM (#11187017)
I thing it's awesome instead. Just today the solution of a problem I was trying to solve for days came to me in a dream, in pseudocode.