Yes, but there is another reason that you must do to the bed early and you dont need to have alarms in life, you wake up early in the morning but for developers there is exceptional case and all of you aware about it. agreed ?
I like to take a nap most days after work, because I love feeling refreshed when I wake up. Unfortunately, if I do not set my alarm to wake up at 8 or 9 PM, I sometimes sleep through until 2 AM or even later.
I normally set my alarm, but am up somewhat in advance of it.
However, there are nights (last night happened to be one) where I'm puzzling over a problem/pissed off at co-workers/whatever that I wake up in the middle of the night and spend significant time mulling over something.
At some point during the night, I'll shut off the alarm, hoping to sleep in and get some decent rest when I finally do fall back asleep.
Slept four minutes later than the alarm would've went off today. Sigh.