Writing code has become like meditation to me. To imagine the scenario of what a code is supposed to do and then write it out.. its relaxing. Aside from my day job writing some code, writing code for any side projects, I usually do it at night when everyone is asleep, as it is the only time I can really find and actually concentrate. So I usually code from 1 AM until 5 or 6 AM... or until I fall asleep from exhaustion.