16 ms·
Waking up at 5am to code
- derekja 15y agowas a post a day or two ago about creativity being highest in the early AM as well. I do this in spurts but can't maintain it for long stretches...
- johnm 15y agoIt depends on the person but it's true for me. I tend to do my really hard/deep thinking in the morning and queue up stuff that I can do the rest of the day. The creativity that tends to appear more often later in the day and in the evenings end up being the cool stuff that bubbles up.
- 5vforest 15y agoThis sounds horrible... and like it would ruin my productivity towards the end of my work day. How about waking up early to exercise?
- city41 15y agoMaybe it is horrible :) I'll see how I feel in a month. But why not experiment? My desire to do this sprung from being tired enough after a day of work that I'd really only work on my stuff on weekends. Truthfully, I do run on Thursday mornings instead of code because that day I have lunch commitments (I run at lunch the rest of the week). I plan to try mixing in more morning running with the coding, see how that changes things too.
- kreek 15y agoThat's what I do, well not always 5am... but I try! Any way ever since exercise became a habit I no longer need caffeine after lunch. The bonus is if you're super busy then you can skip the workout and do some extra work.
- miles_matthias 15y agoI tried waking up early to exercise, but I can't motivate myself to get out of bed to exercise. I could motivate myself to get up if I were working on my own projects. I'll have to try this.
- brown9-2 15y agoIt might help to think of fitness as a self-improvement personal project. Track your accomplishments like stats in a video game, see fitocracy.com for example.
- jvagner 15y agoi wake up at 5am on weekdays to go to the gym. i'm on the 520am bart train, get to the gym at 6am, workout till 730am, at the office shortly after 8am before anyone else shows up. the days i do this (as opposed to the couple days per week i sleep in later to take my son to school) i'm far more productive and content than the other days. i'm hooked. i sleep in on the weekends, but never sleep more than 7.5 or 8 hours anymore. i can wake at 5am without an alarm, though i usually set it as a backup. but i'm almost always awake at 4:57 anyway, so i get up. no problem.
- donnfelker 15y agoThis isbexactly how i lauched two products with a family with 2 kids 5 am kicks ass. That remibds me... i need to go to bed.:)
- dguaraglia 15y agoI used to do this a while ago, while working from home. I woke up at 6am and had my breakfast right next to the computer, then would only do the 'morning routine' (shower, walking the dog, etc.) after my wife had woken up and gone to work. It was incredibly productive. As the author say the cost of those two hours keep you focused (you know you are making that extra effort, so distraction isn't an option.)
- da5e 15y agoSounds like a great habit. There are some studies that indicate problem solving ability is highest when you're "groggy" so maybe skip the coffee. Many authors have developed the same habit during their early days when they had a day job. Mark Cuban said, "You're only at your best once a day."
- 97s 15y agoI am a stay at home dad recovering from AML stim cell transplant. I have been trying to find time in my day to work on a personal project that I need to develop for myself and I think has a potential for profit. However with my busy 1 year old son waking up at 8AM(sleeps all night, which I am super thankful for), I can't find the time during the day to focus on a project. I get spurts during his 30-40 minute naps and when he is playing real good by himself, but as I get focused I am quickly pulled away. I have tried to be productive when I put him down at night, but I find I need to spend this time with my wife. It is looking like I might become a 6AM coder soon. Seeing that my day starts at 8AM. I had thought about getting up this early, but I just didn't think I could make it through the day with my semi-low energy levels. However, I am thinking if I get up at 6AM, I can nap when my son naps for 30-40. As I read another post on HN that it actually is great to take these short duration naps.
- johnm 15y agoPeople generally have two high-quality stints in them per day. Putting in a sleep cycle (be that a power nap or up to a full cycle) between them works wonders for all sorts of benefits physiologically and creatively.
- quickpost 15y agoHey 97s- Send me an email or some contact info for you (my email is in my profile). I was randomly looking at some of your comment / post history on YC and we are in a somewhat similar situation. I'd like to help you. :) /s/ quickpost
- epikur 15y agoYou should buy some nice headphones, if you only have speakers right now.
- tikhonj 15y agoEven really cheap in-ear ones are actually very good. You can listen to music quietly and still make it out.
- bhrgunatha 15y agoFor me, music is so important that I would have to disagree and recommend not going the cheap route. Investing a pair of good quality headphones is a no-brainer. Just make sure they are comfortable.
- jQueryIsAwesome 15y agoAnd you have to combine it with a good sound card if you want to get the most of your quality headphones; i have this one http://www.amazon.com/Creative-Blaster-Titanium-Internal-SB1270/dp/B0041OUA38/ http://www.amazon.com/Creative-Blaster-Titanium-Internal-SB1... and is pretty good.
- robdoherty2 15y agoI did this for several months while I was taking the Stanford AI class. I got up at 6, did coursework for two hours or so, and went to work by 9. I found it to be highly beneficial for several reasons (some of which were mentioned in the blog post): -since I am usually exhausted by the end of the day, I found the early time to be really conducive to clear thinking -early part of the day is so quiet-- no interruptions -I felt like I accomplished quite a bit even before arriving at work, so I somehow felt more productive even though I should have been more tired I intentionally did not keep up the early time on the weekends and slept in-- btw, 8am felt like sleeping in :) Since the class finished, I kept up the habit and wake up early to code or read. I admit it isn't for everyone, but it is worth a try for anyone who wants to code after work but feels too tired or easily distracted.
- stephencanon 15y agoMy wife is a surgeon. I'm up at 5am with her, drive her to work, then sit down and start working myself around 5:30. I find that I'm fantastically productive from then until about 9 or 10am. I take a long lunch break (and go running or xc-skiing depending on how much snow is on the ground); aside from that I don't have any trouble going straight through the afternoon, though my afternoons are less productive (I usually spend them meeting with team members and doing more routine work because of that, which works well because that's when everyone else is around). In order to make getting up at 5 livable, we're asleep by 10pm. We were both night people once upon a time, but I really don't feel like I miss it.
- gte910h 15y agoOT: Why do surgeons start work at 5 am?
- joeyo 15y agoTable time for the first case of the day is usually quite early, as you want lots of time in case there are complications.
- gte910h 15y agoThat doesn't seem to change the available time. You can start at any time of the day, there still the same amount of available time (ie 6-1800 hours is the same as 8-2000 hours)
- dredmorbius 15y agoI've heard a few theories, including some speculation that body functions are slowest at this time. More practically, a morning surgery generally means the patient has fasted overnight, and has an empty upper GI tract, reducing the risks of vomiting. Aspiration of vomit is a significant surgical risk.
- gte910h 15y agoOkay, that makes sense.
- jakejake 15y agoI code at 5am too... when I've been kicking ass and rocking in the zone all night! Going to bed at 9pm every day? No thanks!
- rumcajz 15y agoI am doing this right now. The point, I believe is, that you spend the most productive part of the day working for yourself rather than for your employer. Still, I believe in certain jurisdictions your employer owns your work even if done in your free time.
- LukeShu 15y agoI think it has more to do with the document you signed when you started than where you live.
- Domenic_S 15y agoNot really. Some states ban or almost completely prohibit non-competes -- California being a notable example: http://en.wikipedia.org/wiki/Non-compete_clause#Exceptions_-_valid_non-compete_agreements_in_California http://en.wikipedia.org/wiki/Non-compete_clause#Exceptions_-...
- orbitingpluto 15y agoYour employer should only own your work outside of work hours only if you have a non-compete, is directly related to the work you perform, is derivative of code that you access from work, or you indentured all of your code contractually. Anybody know if a GPL versus "we own everything you do" situation has arisen yet in the courts?
- seigel 15y agoWhat online kanban system do you use?
- Frostbeard 15y agoI wish it were possible for me to do something like this during the week, but it isn't. I wake up at 05:30 as it is, and I'm out the door and heading to work by 06:30 (that's an hour to SSS, prepare and consume breakfast, take out the trash, scrape the windshield, and whatever else might need doing). I don't get home until after 17:30. I'm typically occupied being a loving and attentive father up until 20:00 or so. Assuming I want to get 8 hours of sleep, that means I'm left with one and a half hours to split between personal projects and my wife during the week. On the other hand, I do get up just as early on the weekends, and it's probably my most productive time of the entire week, up until my kids get up.
- unreal37 15y agoA question. Your job takes 11 hours out of your day roughly. I assume you only work 7.5 or 8 hours like is standard. Does that mean you have a 1,5 hours each way commute (3 hours total)? So you spend 15 hours a week, or 70 hours a month commuting? Maybe you should move closer to work? Or work from home a few days a week if your job allows. I have a 5 minutes each way commute. I don't understand the voluntary 1.5 hour commute.
- Domenic_S 15y agoI have a similar situation. I live in the far East Bay and commute to San Jose, about 3 hours round trip. Sometimes I get lucky and leave early enough to make it a 1 hour trip -- being on a huge campus with nobody around at 7am is an interesting experience. I'd be living in SJ, but I just bought a house out here so there's some legwork to be done.
- Frostbeard 15y agoI actually live only 10km away from where I work, and my commute amounts to less than an hour per day. I'm at the office by 0700 and I leave sometime after 1700. My work situation deviates significantly from a programmer's "standard" in a lot of respects, unfortunately. I do get paid for overtime at least, but I'm beginning to question whether it's worth it.
- epaga 15y agoQuite the coincidence - I just started doing exactly this a few weeks ago, and am fact am reading this at 5:30am my time (when I should be coding :P). It has worked quite well for me as I work on my app. I'm a bit more tired in the evenings and go to bed a bit earlier than I used to, but seeing as how I would just waste time in the evenings playing Jetpack Joyride, it's a very good trade to make. I bought a coffee machine that has coffee waiting for me at 5am, and I also use the Sleep Cycle app which at the very least provides a placebo for making me wake up more alert. ;)
- stephencanon 15y agoExactly. Most people are far more distractible in the evening (partially because there are simply more distractions available), so shifting your schedule earlier results in less time spent on distractions.
- radagaisus 15y agoMornings are great. Yesterday I woke up at 4 and saw that Facebook Hacker Cup is on. I finished all the problems before my work day started - how awesome is that to start your day? One thing I don't understand is how people can focus on a couple of projects simultaneously. This year I've worked a lot with javascript and backbone, and I have a folder with ~4 open source projects I wrote that I'm not going to publish. Why? Because then I'll shift my focus from delivering the product to delivering open source. It takes me a few hours every Sunday and Friday to get in the mood of 'this project is going to kick ass'.
- grncdr 15y agoThis might be controversial, but have you considered opening an anonymous/throwaway github account and publishing there? I mean put them up, make an announcement, and then feel free to ignore any social pressure to work on them, at least that way the code is out there where somebody else could pick it up and improve it. Just seems like a weird reason to not release code you intended to be open source.
- radagaisus 15y agoActually never thought about. I recently wrote Verdict and published it as a gist. It was horrible! People asked me for help! And I created a full repo and a website instead of working. http://radagaisus.github.com/verdict/ http://radagaisus.github.com/verdict/
- bri3d 15y agoLove this - a simple personal anecdote/retrospective rather than a self-promotion or "everyone should do as I say" piece. You could solve the girlfriend + music issue with a nice set of closed-stage headphones. I love my AKGs. But I'd actually A/B test with and without headphones - without the distraction of office noise, no headphones/music might actually be helping you focus as well. I find that even with a solid, no-thought, tried and true playlist of entirely ambient (or even classical) music, I still find music causing my mind to wander from time to time. I might have to try to sell the girlfriend on this idea soon.
- turbulence 15y agoJust tell her like it will be, you'll have more time to spend with her in the evenings instead of sitting by the computer.
- johnm 15y agoYes, in the morning it's so quiet that I find music distracting. The one thing I've added is a nice room air filter and run it on low. The quiet white noise from the fan provides a smooth background.
- plasma 15y agoThanks for this post, I will need to try it. I agree the few times I've been up early to code (even to catch up on some work) its been good, felt like I got extra hours to the day (well, I guess I did!) even before I officially started. I think then after 5pm going to the gym or relaxing can be a good choice because I've already done my 2 hours on my side project. It does get exhausting doing extra work after 5pm (after you've taken a break, eaten, done other things etc) so I like the idea of doing it early. I may wake up even earlier to get to gym in the morning, as I liked that too. I definitely waste several hours at night just messing around, avoiding going to sleep, which would be better spent being asleep so I can get up early.
- artursapek 15y agoBite the bullet and try it. When I can, I walk to a nearby cafe right after sunrise to get a couple hours of work in and every time I do it I feel great the rest of the day.
- sumukh1 15y agoThis tool might help you to figure out the best time to sleep so you can wake up rested. http://sleepyti.me/ http://sleepyti.me/
- kabdib 15y agoIn the last six or seven years I've been up regularly at 5am or so. I can get an hour of work done before the rest of the household wakes up. It's great. My inspiration was Gene Wolfe, who wrote _The Book of the New Sun_ in the wee hours, and held down a day job as a technical magazine editor. [I'm not claiming my code is anywhere near as great as the wonderful writing that Wolfe did, but the early hours are definitely some of my most creative time] A few rules I have: - No email. This just starts the whole stress machine going. I'd rather not have /any/ human contact, and if something's fallen off and broken in the last eight hours, it can wait another two or three. - No Reddit or other black-hole-of-surfing sites (though I do check HN -- this may change if HN becomes too Reddit-like). - Coffee is ready to go (set up the prior evening).
- dvdhsu 15y ago> My inspiration was Gene Wolfe, who wrote _The Book of the New Sun_ in the wee hours, and held down a day job as a technical magazine editor. Wow. That's really interesting. I was actually going to give this a try because of Robert Pirsig, who wrote Zen and the Art of Motorcycle Maintenance. Here's how he did it: In a 1974 interview with National Public Radio, Pirsig stated that the book took him four years to write. During two of these years, Pirsig continued working at his job of writing computer manuals. This caused him to fall into an unorthodox schedule, waking up very early and writing Zen from 2 a.m. until 6 a.m., then eating and going to his day job. [1] Funny he also writes technical literature (computer manuals versus technical magazine editor). > the early hours are definitely some of my most creative time This is something I've noticed too. When writing (usually essays, but sometimes code), I'm almost always more productive very late night/early morning. I don't know of any reasons (other than the obvious: you're not being distracted), nor do I know of any studies. Are there any out there? 1. http://en.wikipedia.org/wiki/Zen_and_the_Art_of_Motorcycle_Maintenance http://en.wikipedia.org/wiki/Zen_and_the_Art_of_Motorcycle_M...
- gizzlon 15y agoWhen writing my thesis I was very productive at night. Guess I was too tired to procrastinate and over-think things.
- devs1010 15y agoI've thought about doing something like this but I've realized I just can't until I figure out a better commuting situation, either having a very short commute or using public transportation. Sitting in traffic for almost an hour on the way to work is rather draining to where if I'm going to do that I can't seem to bring myself to get up any earlier than I have to as I'd rather use the time spent driving to wake up so its not completely wasted
- tikhonj 15y agoIf you can use public transportation, you should definitely try it. I'm a student, but I also work part time in San Francisco; there is about a 30 minute commute. I am actually surprisingly productive while on the train working on my random side-projects. Having something to do stops the commute being a boring waste of time. The one problem is crowding--if there are too many people, you might not get a seat or otherwise be uncomfortable. I avoid this problem by travelling at off-peak times, but this may not be an option. You should try it out and see how it goes.
- devs1010 15y agoAwesome, yeah, actually I'm planning to move to the SF Bay Area soon, I'm from northern California originally and want to get back there, I think living further out and using BART to get into SF would be fine as it would give me some time to work on things, or even just to use my tablet and read up on things, do research, etc. Just being able to relax and not have to watch the road for the hour commute would be a lot better IMO.
- guitate 15y agoI need a habit like this, maybe I can be more productive on morning than nights (who knows), also some days can go to do exercise, yeah, everything sounds great but the getting up is so painful.
- nagnatron 15y agoInteresting that this is posted today as I woke up 45m ago and decided to code on a side project. It's not voluntary but because I've got some time difference issues. Everything about the benefits is true, and since I'm not forcing myself to do it, I have almost none of the side-effects. The biggest problem with it is that it's incompatible dancing in clubs.
- awolf 15y agoAnother advantage: the first two hours of exerting your programming mojo each day are likely to be the most potent. Applying this potency to your own products and initiatives is a beautiful thing.
- bhrgunatha 15y agoIt's not universal though. I find (sometimes) late morning and (usually) late afternoon are my most productive or potent times. I suspect everyone is different. It seems that this idea though has the added benefit of bringing more focus (due to less of the normal distractions.) For me, I think, that would be the major difference .
- skrish 15y agoI have been slacking for quite some time; want to do it but have been postponing it. I guess its high time to just make a start. Thank you for the blog.
- tjr 15y agoCould someone please expound upon the term "Kanban board", as used in this article? I am not understanding the connection between Kanban and what the author is describing, though I would like to.
- nreece 15y agoIn brief, Kanban boards are used in Agile (and other type of) projects to visualize and share project status. Read more: http://www.infoq.com/articles/agile-kanban-boards http://www.infoq.com/articles/agile-kanban-boards
- Stormbringer 15y agoIt's some kind of sticky-note board / to do list thingy. Have a look over at JoelOnSoftware (?? Or was it the Fog Creek Site?) They have a free online version of something similar that they are trying to hit the big time with. I forget what it is called though.
- benregn 15y agoYou are talking about Trello from Fog Creek.
- simcop2387 15y agoThat would be Trello https://trello.com/ https://trello.com/
- bbrizzi 15y agoExactly. I just spent 20 minutes reading the Wikipedia article on Kanban but I don't see what sticky notes have to do with JIT manufacturing...
- city41 15y agoThis is one confusing thing about Kanban. The Kanban JIT manufacturing process that Toyota developed is different from the agile Kanban process used in software. The latter was inspired by the former, but they are very different. Here is the Wikipedia article talking about Kanban as an agile process: http://en.wikipedia.org/wiki/Kanban_(development) http://en.wikipedia.org/wiki/Kanban_(development)
- Kavan 15y agoWhen starting my business, I was working as a derivatives trader. The job was stimulating but I did not love it. It was not creative enough. Creative in the purest sense of the world. We did not create businesses, rather create profits through buying and selling. I had to be up before 6am anyway to get in before the markets opened. We could leave shortly after the markets closed though so I did most of my work time in the evenings from 6pm to 10pm, sometimes later. And then on the weekends (probably another 12 to 20 hours). I think the important points are: 1. Enjoy the work. If you do then you don't feel like it is work, rather a hobby. 2. Make the most of your 'day job' time. I would squeeze in gym whenever things were quiet. I would answer emails on the toilet. I would read the Financial Times and then sneak in Tech Crunch (I was trading TMT so I argued it was important to view trends). 3. Stay disciplined. A lot of the time I would get excited and stay up later. Rolling out of bed at 5:30am to get into work after being up since 1am does not feel great. You can do it once during a week, but twice and you really do become a zombie for the rest of the week until you get the time back. I did this for two years until I managed to get some funding to take it full time. It was super tough, especially for my girlfriend. But I loved it because I believed we were building a project that would change the world. Whenever I felt down I just watched SJ's Standford speech and it would pick me up. "Your work is going to fill a large part of your life, and the only way to be truly satisfied is to do what you believe is great work. And the only way to do great work is to love what you do. If you haven't found it yet, keep looking. Don't settle. As with all matters of the heart, you'll know when you find it. And, like any great relationship, it just gets better and better as the years roll on. So keep looking until you find it. Don't settle."
- zeroboy 15y agoI did something like this writing my first book Zero to Superhero: http://zerotosuperhero.com http://zerotosuperhero.com I'd wake up a 3 am every morning (except Sunday) and write until about 6 am, which is when I got ready for my 7 am shift. I agree with the author that being super-motivated was key and I had already invested several years research and writing the book. I was becoming worried the book would never get done. I was also able to avoid cognitive burnout because my day job was at a metal foundry and consisted of mostly repetitive work. One drawback was I was completely zonked by late afternoon, and had no social life, but I still tried to eek out something for the book before bed (which was sometime between 8-9 pm if I remember correctly). Afterthought: I can't wake up so early now. Lack of sleep gives me a short temper. Something to consider.
- senith 15y agoMary Kay in her book called this the 5 am club! She said the 2-3 hours she got before the rest of her family were up was so productive that it was "almost as if she had 24 hours a day extra to work with" Paraphrasing here but she said he enabled her to manage her traditional roles of being a husband & mother in addition to a full time & demanding business role.
- andreiursan 15y agoI'm almost in the same boat with the guy that wrote the article. Like him I also read 1year ago, on hn, about a guy who started to code on his projects starting with 5 a.m. because in the evenings he spent time with his fiance. After I read it I tried it for a while, and it worked, I had to stop because then I was also a student and I was also working full time + I also had allocated gf time. I will try it again, I hope I can get more things done in this way. P.S. Thank you for/for posting the article!
- nhashem 15y agoA lot of commenters have talked about the pros of this routine, and there are many. Few interruptions, working while your mind is fresh, working within a regimen, etc. However, if you don't have an equivalent amount of discipline on at night to get enough rest, you will quickly burn yourself out. I did this routine for a lot of the second half of 2011, and since I'm a night owl by nature (going to bed at 12 midnight is 'earlyish' for me), the lack of sleep quickly caught up with me. My project was actually getting some traction though, so I basically spent about four months in a sleep-deprived haze and consuming about 400 mg of caffeine a day just to function. So I guess what I'm trying to say is, if you're like me and you go to bed at 1AM, wake up at 9AM, and go into work at 10AM (a very common engineer schedule), then it's not just a case of setting of your alarm clock but really adjusting your lifestyle so you're not fundamentally sleep-depriving yourself.
- rrohan189 15y agoCannot agree more. Well said.
- chris_dcosta 15y agoI'm a nihgt owl with kids. I've been living on the 1am to 6:30 express(o) train for the last 5 years, holding down a job too. It can be done, but you have to let yourself give-in sometimes. I hit a wall every three months or so and have one day where I crash at about 7:30 pm sleeping the whole night through. That's enough to recharge my batteries. Did I mention I'm no spring chicken either...
- notyourwork 15y agoI can say from watching my father do this while I grew up that this is extremely unhealthy on the body. Sure you can do it, sure you can recharge every few many months but this will not work out in the long run. By that I mean accidents are looming when you live with this little sleep regularly. Trust me on this before its too late to say I wish I would have slept more.
- planetmcd 15y ago
- jyap 15y agoHe mentions he gets between 7-8 hours of sleep. So he is going to bed around 9pm to 10pm... Yeah, not really feasible for a lot of people because it would mean family avoidance. I usually work from 11pm to 1am on personal projects.
- tpatke 15y agoI have been on this routine for about 18 months. Waking up early in the morning is not easy or fun, but the alternative is to work in the evening or not at all. I find working in the evening really difficult because after a full day of work and a nice dinner with my wife - I am not really in the mood to "go back to work". Waking up early allows me to put my personal project into a set routine. 2 hours every day - not 2.5 or 3 or an all-nighter. This constraint is great for focusing the mind and making those 2 hours really productive. There is one downside. I really need to be asleep by 9:30 (I actually wake up at 4:30). This is difficult to do when I meet up with friends. For example, this week I have two meetups planned - both of which will probably cause me to get home past 10:30 which means I am more likely lie in the next morning. ...and I agree with the OP - it is much easier to keep a schedule like this if you do it every day.
- potomak 15y agoIt remembers me of Jolie O'Dell's post about her "secrets to productivity"[1] [1] http://blog.jolieodell.com/2011/11/03/my-secrets-to-productivity/ http://blog.jolieodell.com/2011/11/03/my-secrets-to-producti...
- alinajaf 15y ago> Enjoying the work is key Recently I've discovered that this mindset has been detrimental. Sometimes hard work is supposed to be hard. If you rely on passion or some sort of intrinsic motivation, then as soon as you come to a task you don't want to do (i.e. the 90% of any project that doesn't involve coding) procrastination sets in. I worked mornings non-stop on my little side project for around 6 months last year and slowed right down as soon as all the 'fun' stuff was over. Accepting that the work is sometimes going to suck is a) more realistic and b) more empowering. If you get used to short focused bursts of work you don't feel like doing, then there is quite literally nothing you can't achieve if you put your mind to it.
- sreitshamer 15y agoAgree. I think it's key to have passion/love for the overall goal, and realize that day to day I'm going to have to do a lot of stuff that's not fun. The passion for the overall goal motivates me to do the non-fun stuff.
- city41 15y agoThat's a good point. I didn't really think of it that way. And I'm definitely in the 'fun' phase of this project. So thanks, maybe as more tedious stuff comes up I'll have a better mindset going into it.
- marknutter 15y agoJust because the work can get hard doesn't mean it can't still be enjoyable. For me, the enjoyment of work comes from the results you get out of doing it. There are times when I despise the actual work I'm doing but I enjoy doing it because I'm excited to see the final product.
- dkarl 15y agoI came to the same conclusion. Often when working on a difficult problem I used to think, "What the hell is wrong with me? Why is this not fun? Why am I not loving this? Did I choose the wrong career or am I just a lazy useless person?" Then I realized that as an athlete I never would have wondered why it hurt when I got cramps late in a game. I never wondered why my body complained about running the last mile or completing the last rep in training. I never had any self-doubt because I got bored practicing a skill hundreds of times to unlearn a bad habit. Those things are not inconsistent or contradictory to the joy and satisfaction of being an athlete. Thinking about that helps me a lot when the problem I'm working on is causing me only frustration instead of immediate gratification.
- liljimmytables 15y agoI did something similar for a while but other concerns pushed my routine out of the window, and for the sake of my sanity I shouldn't have kept on with it as long as I did. If I could recommend one thing to anyone thinking of doing an early-morning stint, it would be to keep an escape route clear. Don't commit to more than a week's work at once (you shouldn't be doing this anyway) and make sure that you can unconditionally drop the project at short notice if something comes up. Otherwise you will find that your work strategy is very fragile and very explosive. That said, the particular issues I faced were external to my early-morning work strategy, and on a level playing field it is a wonderful way to do some of your best work.
- dmragone 15y agoI would love to see a simple service that groups people who are willing to commit to getting up at the same time each day in order to hold each other accountable. There doesn't need to be anything significant - maybe it's just a matching service, letting people figure out for themselves how they can "check in" to confirm they are up and working at 6am (or whatever time is chosen). I know that I definitely can commit to something like this (e.g. going to the gym early) if I have at least 1 other person I'm doing it with.
- Selvik 15y agoThis is a great idea. Probably doesn't require any groundbreaking technology either. Dear internet, please make this. EDIT: An iphone app that let's people call and text each other as their profile name (anonymously) would probably lower the barrier to sign up for something like this.
- strager 15y agoDoesn't adding distractions begin to defeating the purpose? =]
- deleted 15y ago[deleted]
- jacalata 15y agoMaybe even a combination of this with the idea of pledging money if you don't achieve something? How much more motivated would you be to roll out of bed at 6am if you knew that skipping it would cost your buddy cash?
- pknerd 15y agoSounds interesting! Who's going to make it? if none then I make and ask,"Who is going to finance me?" :-)
- dmragone 15y agoLove that people are responding positively to this. I shared the idea with my brother, and we're going to try to throw something together in our spare time over the next week. If anyone's interested in helping out (I'd say we're most in need of someone with good web design skills, though will update later once we've fleshed it out some), feel free to contact me at [my HN user name] at gmail
- k-mcgrady 15y agoInteresting post. I used to do this myself but eventually found it difficult to get up so early. I've recently been trying out something similar though. I find it difficult to get to sleep often lying awake for up to 5 hours before falling asleep. As I am a freelancer I then tend to make up for it by sleeping in late (as I don't have a job to go to). I have recently been following a schedule of sleeping 2 nights and then staying up 1 night. This night without sleep I use for work and it also helps fix my problem of getting to sleep for the next 2 nights. I find that I am extremely productive working through the night and gain in productivity by falling asleep more quickly and getting up earlier the other 2 days.
- freshhawk 15y agoI've been in this cycle before. I still almost fall into it naturally, but less so than when I was in my early twenties. My experience was that it isn't sustainable, the day after you stay up all night just gets worse and worse the longer you are on that schedule. After a short time, for me, that day was so unproductive that it more than destroyed any gains made in those extra hours or the encouraging "reset" to my ability to sleep at regular hours. I have to admit that the early night and long sleep after that day was the best sleep I could get at the time. The rest of it was pretty shitty, I slept like a dead person and woke groggy. Good sleep habits and a regular schedule have a domino effect, improving all sorts of stuff, definitely worth trying to stay off that sleep 2, stay up for 1 cycle in my experience.
- k-mcgrady 15y agoIt's been working for me so far but I can see how it would be hard to maintain. I don't expect to keep it up forever. Although it's working now I doubt it will last more than a month. Good to hear someone else experiences this sort of cycle naturally. Sleep is a big problem for me and really hurts my productivity so I'm always trying to figure out new patterns that might help, at least short term.
- freehunter 15y agoLaying in bed awake is counter-productive to falling asleep. Get up, have a drink of water, read a few chapters of a book. Let your mind settle down, then try it again. Laying awake just lets your mind wander.
- falcolas 15y agoThis seems highly related to a recent poll - how many hours of sleep do you need a night? For example, if I tried this, I would have to go to bed at around 7:30pm at night. For a number of reasons (including eating dinner at 6pm), this is completely infeasible. A shame too, since a few hours of uninterrupted time would be great.
- TomGullen 15y agoI'm coding at 6am now, because I've been up all night! I don't enjoy it, but I find it very difficult to want to go to bed at the right time. Working in a startup time doesn't seem to matter so much I guess.
- j45 15y agoThis totally works. Why? You put your best and most creative energy into your own project. Instead of whatever you have left in the tank after a long day of work and then doing home stuff and then finally settling in. Getting out of bed isn't a problem when I'm so excited to work on something and I know what exactly I need to do -- I make a list before I go to bed. Lack of distraction plus a full head of steam and energy is a great combination. I try to do this as much as possible because it's so rewarding. Breaking the cycle with a late night or the weekend seems to be my main obstacle, I'm thinking of waking early 7 days a week and becoming like my old man, lol. Will work/job suffer? Our work/job often needs our attention to detail more than our best and most creative effort every day.
- wensing 15y agoI woke up at 4:55am for a year while working on Stormpulse. Specifically, 2007, when my first child as 3. I was so excited that I never had a problem launching out of bed and walking down the hall to work by 5:00.
- alexwolfe 15y agoI've tried this approach and others. I'm sure for some it can work but ultimately I found you can't cheat time. If you wake up at 5am by 2pm you toast (mentally at least). I've found no real secret to gain extra real hours. The reality is that your mind can only function productively for so long each day. The productivity you feel at 5am is the same you'd feel at 8:00am it just seems more amazing because it's happening at 5. The bottom line is you have to find what is sustainable in the long run. Regardless of how early or late you wake up the key is coming up with a consistant schedule that maximizes your productivity. Only you can figure out what the schedule is. It's certainly great to try new things and see what ends up working for you. Good luck.
- GigabyteCoin 15y agoIf you wake up at any time of the day, mid way through it (no matter when) your brain "is toast". That is why so many sleep scientists suggest naps is because they have proven that naps are beneficial to mental fatigue.
- pjscott 15y agoReally? My brain is semi-toast until about the middle of the day.
- Inversechi 15y agoI'm exactly the same. I'm not a morning person and I can't seem to change this :(
- enqk 15y agoMaybe due to over use of caffeine?
- nkoren 15y agoI'm the same way, and my friends had the same reaction as you. They suggested that if I cut out caffeine and sugar then my body's own natural energy would resurface, and I'd stop being so groggy until the mid-afternoon. So, I listened to them, and for 9 months I consumed no stimulants at all. After 9 months of this experiment, I was -- and I know the story isn't supposed to work this way, but it did -- consistently groggier and crankier than I had ever been before. So I went back to caffeine and have had no second thoughts about it since.
- altxwally 15y agoThis idea has also stuck in my head since sometime ago (I think it was a comment by @jrockway who said that he got up really early because at that time there is nothing else to do but work), though I do not do it everyday, only occasionally when I want to finish something... I will follow the site for updates! :)
- mnazim 15y agoThis is a really effective way to get a lot things done. In summer 2009 I used to wake up before sunrise and absolutely loved it. To this day, I still wonder why I did not continue doing it. My 2 cents: Make sure you have something good (preferably healthy) to eat readily available when you get up. It should be something that does not require more than 10 min of preparation. Otherwise things tend to get a bit boring. If you happen to wake before sunrise. Take mini walk in you garden or backyard and catch those 10 - 15 minutes of sunrise. It will absolutely super charge you for rest of the day. EDIT: Let's admit that we all have a small nest at home specifically for work or related activities. Move this nest out of your bedroom. Keep your laptops, iPads, PCs or any such devices out of your bedroom. Switch off your phones during nights and do not switch them back on until after your morning sessions. (PS. My uncle is a neurologist and he tells me that for people who work during day and rest during nights, certain hormones are secreted in the mornings that help us in staying fresh and awake. The catch is that they are only secreted if you wake before or around sun rise time.)
- bitops 15y agoThat's interesting. When I was in college I used to wake up at 5am every morning. I'd always start my day by taking the trash outside and looking at the sun come up over the ocean. (I went to school in Santa Cruz). Those short moments always set the tone for the rest of my day.
- alanfalcon 15y ago> I'd always start my day by taking the trash outside and looking at the sun come up over the ocean. (I went to school in Santa Cruz). I suppose I understand what you're trying to say, but the idea of watching a Pacific Coast sunrise from Califonia (while not in an airplane or other fast-moving vehicle) breaks my mind a little. But your comment also made me realize I'd lived within a half hour drive of the Pacific Ocean for most of my life yet have no clear idea what a beach sunrise would be like. I need to add that to a list.
- b_emery 15y ago
- GigabyteCoin 15y agoI have been doing the exact opposite of this strategy for some time now. Going to bed at 5am. Those 6 hours of coding between 11pm and 5am are some of the quietest you will ever experience in Toronto where I live at least. If I woke up at 5am, I would bHORNe consHORNtaHORNntly distrubeHORNNNNNNNNd.
- matdwyer 15y agoCan't agree with you more. I used to live looking north up Church and between 3-5AM there wasn't a single car - it would get actually creepy. Day time I had helicopters landing beside me, phone calls, horns, construction (!!!) etc.
- loopdoend 15y agoThe noise pollution in Toronto is obscene and I am thinking I should move somewhere else. I live by the Gardiner, and I also code at night, it is bliss, there are virtually no cars on the road. No noisy neighbours or horns or traffic or street cars.
- GigabyteCoin 15y agoWow, was just thinking I should move to SV the other day due to lack of a hacker community and look at this, two relevant Torontonian comments! Agreed, noise pollution is horrific. I don't have a problem at all with new york's latest "fine for honking" tariff: http://www.huffingtonpost.com/2011/10/25/nyc-taxi-drivers-told-to-_n_1030767.html http://www.huffingtonpost.com/2011/10/25/nyc-taxi-drivers-to...
- brown9-2 15y agoIs the noise there so bad that noise-cancelling headphones wouldn't help? You can get a pretty good pair from Bose for $200-300. It might be a steep investment at first, but if it improvements your working conditions and you use them for a few years...
- GigabyteCoin 15y agoThey might help, as earplugs do, but then I have to work with something on my head the entire time... There is just something about an 18 wheeler's honk that is next to impossible to cancel out, unfortunately. It literally rumbles the ground beneath my feet. I'm a modern day Beethoven.
- jseban 15y agoOne thing that he fails to mention is that this only works if you live with a partner, as he does, since you're guaranteed some company throughout the day. Otherwise it's going to be pretty damn lonely, since you'll be in bed by 10 pm when most socializing starts. You can't go to the movies, go to a bar, go dancing, go on a date, or even watch a grown ups movie on tv.
- jayonsoftware 15y agoI wake up at 4.30 AM but code between 7 AM and 11 AM. So what do i do between 4.30 AM and 7 AM. I meditate, do a goal review and do my blog / book writing work. I wrote about this on my blog "Daily Routine of a 4 Hour Programmer" http://www.jayonsoftware.com/home/2012/1/9/daily-routine-of-a-4-hour-programmer.html http://www.jayonsoftware.com/home/2012/1/9/daily-routine-of-... if any one is interested.
- iconfinder 15y agoI guess the biggest problem is that you're pretty tired at the end of the day at your normal work.
- erkin_unlu 15y agoyour girlfriend slashed because you want to work all night for the project, you didnt she? :) anyway, it is a great idea, i am thinking about doing the same too ; )
- aelaguiz 15y agoI've been doing this for a long time, it's the only way I can stay sane. I get several hours to myself with no interruptions and I can work on personal projects and be totally unaccountable to anyone.
- wallunit 15y agoWhy is waking up two hours earlier in order to do stuff like coding on personal projects so much better than staying up for two more hours at night? It won't make the day longer. Each hour you wake up earlier you will also probably go to sleep earlier. Of course you could also sleep less, but also in that case IMHO it doesn't make a large difference whether you add those extra hours to your night or to your morning. Some might argue, that morning hours are more productive. But for me that is only true if I have slept well and long enough and it also implies that whatever you do in the evening will suffer by starting your day earlier.
- nickik 15y agoI would guess the if you code in the night your 2h turn into 6h. While if you do 2h in the morning you have to stop and go to work.
- brown9-2 15y agoI think this is the fundamental reason also. It's much easier to slip and add more hours to the end of the day than it is to wake up even earlier than 5am.
- EdwardMSmith 15y agoI can answer this from personal experience. After working 9 hours at a full time job, a 45 minute commute home, helping make dinner for the family, cleaning up, playing with the kids, getting them cleaned up for bed, reading with them, putting them to bed, cleaning up the house a little bit, its 9pm. All I wanted to do is spend a little quiet time with my wife, any motivation to work on personal projects, which may have been fairly strong during the drive home, is now gone, and all I really want to do is spend quiet time with my wife before we had to go to sleep. So, it had nothing to do with making the day longer, and it had everything to do with the reality that by the time I actually got to the point where I could work on something, it was the least important thing in my life.
- tomkarlo 15y agoMorning hours are often more productive because there's fewer distractions - the rest of the household is asleep, the phone doesn't ring, and there isn't much on TV. Not to mention that if you've gotten up two hours early to do something, you're probably going to be doing it. (I used to have to get to work at 7:30 in the morning but still found that going to the gym before was the only consistent way to ensure it happened.) All of that aside, the bigger problem is that other things pop up during the course of the day to steal your energy and time. If you have something scheduled at the beginning of the day, they can't eat away at it. If you schedule it anywhere later in the day, it becomes the "stub" for whatever else happened that day. One of the pieces of advice they give folks who want to save more money is to "pay themselves first" - save some money from your paycheck _before_ allocating to other things you want to spend on, especially anything discretionary. This is the opposite of what we normally do, which is "save" whatever is left over after our spending. I think folks who set up a morning routine for work or gym are basically paying themselves first in terms of time commitment.
- doc4t 15y agoFor those of you, who as me, never encountered the "Kanban" method before here is a comparison with SCRUM http://www.agilejournal.com/articles/17-articles/1737-what-is-best-scrum-or-kanban http://www.agilejournal.com/articles/17-articles/1737-what-i...
- mathattack 15y agoIt wounds like the poster has managed two disciplines very well: - Managing the sleep schedule. (Getting to bed to get up early) - Managing the work schedule. (Kanban system) I have no idea what his product is, but it's hard to imagine that he won't be successful over the long term with habits like this.
- mgrouchy 15y agoI do the wake up at 5am routine, but I use it to go to the gym. I think a healthy body helps you maintain a healthy mind. (keep in mind this "healthy body" is very much a work in progress, like many of my coding side projects)
- ochekurishvili 15y agoWith 7+ months of experience being an Early Bird I will definitely recommend it. For me 1-2 hours of a fresh-brained morning work is much more productive than working whole night. I usually sleep between 11:30 and 06:30. In general it depends on personality, some enjoy working at night and vice-versa.
- messel 15y agoI wake up at 4:30 to read for a bit and some days squeeze in 30-40min of development work. After getting ready I head out for walking between 6:30-9am (depending on the day) then head to work. This gives me room to do a little project work in the evenings. Glad to see more early risers!
- duck 15y agoAnother option that you should look into is switching to a four day, ten hour each day schedule. Of course your employer has to approve and I’ve seen a lot of people that can’t keep up with the long days, but if 5am schedule works for in the long term you shouldn’t have any issues with it. I've done this for the last four years and it really works well for me. It gives me the option to work on my personnel projects on my off day (Friday for me). It also forces you to wake up early and the morning always seems productive. The best part is you can be flexible with that time, like on some weeks maybe you take a long trip or family/friend time.
- agentultra 15y ago5am sounds a little extreme. I just arrive at work a half hour before I "should" be there. That's when I do a little code kata or read HN. Then I grab a coffee and it's work time. After work I go to the gym and coming home from that I find I have enough energy to put in another hour or two on my side projects. However, having kids might change that and make 5am more sensible... you might at least get an hour before they're up and you have to get them ready for school.
- djhomeless 15y agoI did something a bit more extreme for over a year - and I have a family to contend with. But I wasn't coding, mainly product dev a(wireframes, specs, etc) and some hacking. Schedule was: - Hang w/family from the time I got home until their bedtime, roughly 9:30 PM. - 2 hours of work, then 30-45 min of useless TV (Family Guy or TAR) - About 5 hours of sleep - Another 2 hours of work before hopping on the train Somehow I kept this up for over a year, though it has to be said that I curtailed the workload to just 2 hours a day (and a bit more sleep) over the weekend to spend more time w/the family. I think that's the only real guidance here - as long as you can budget adequate time to recharge the batteries, then you can keep this up for the long haul. For me, hanging with the family kept me fresh, kept me sane.
- samdelagarza 15y agoMatt, Thanks for sharing. I did the same for several months, I would call each session a mini iteration. And I kept a kanban board on my moleskine...which is imperative. I had times where other things would take precedence and I would stay away from my project for several days but due to my physical kanban I could easily pick up where i left off. What I did different is this: at each iteration i would set a goal that I new I could accomplish within the mini-iteration (1-2 hours, sometimes a little more). Then at the end I would check off my accomplishments and would quickly "trim my backlog" and create a list of "NEXT:" for the next time. Then the next time I sat down I would review this list and adjust it as necessary and begin. I found that have a physical notebook was beneficial because at the first sign of discouragement I could easily look back and see where I was just a few weeks ago or a few months ago. And nothing feels better than marking something complete. My lists are segmented by each iteration by day and have three categories: DONE, TODO, NEXT. it worked great for me. Though I never delivered my product it was a great talking tool at an interview that led me to a job with a 30% pay increase. And I'm ok with this.
- kruhft 15y agoFunny enough, that's exactly what I did this morning.
- JoshMock 15y agoThis is a great idea. I, too, often end up coding if I'm not tired when my wife is going to bed, but it often ends up being a marathon until 1:30 or 2 in the morning. Restraining myself to 2 hours a day, but doing it every day, seems like a good discipline.
- eipi 15y agoThis is essentially what I have been doing for the last 6 months and it works great for me. But it only works great because 1) I go to bed at 9 pm - I am literally falling asleep with 5 minutes. 2) Coffee is only allowed before 9am.
- firichapo 15y agoI am going to start doing this. Right now after 8 hrs of work, dinner and working out I am dead. I push myself for a couple of hours to work on personal projects but I am far from 100% by this time of the day.
- alanmeaney 15y agoWe’re currently doing our football pre season training and for the first time this year there it involves a Thursday morning session from 6.00-7.00am (we normally train 8.00-9.15p.m.). This hasn’t been as unpleasant as I thought it would be and I’ve noticed that the morning session ‘feels’ like it is evening time. Several of my team mates have made the same comment. I’m guessing this is due to an association in the brain (several years reinforcement) between the activity (football training) and the time of day.
- freeformz 15y agoAt one point in my life I decided to start my day at 2:00 AM. It was an awesome schedule for getting shit done.
- notJim 15y agoMy problem doing this is the weekend. I like to go out to concerts and occasionally bars with friends, which has me out until 1 AM on an early night. Then I sleep in the following day, which destroys the whole schedule, since it's the complete opposite of what I need to do during the week. Compare my current schedule, which has me going to bed around 2AM most nights—even if I go to bed at 5 AM on Friday, that's only 3 hours off from my usual schedule, so it's much easier to recover by Monday.
- veyron 15y agoAre you in california? If so, you should keep in mind that 5 AM is like 8 AM in NYC (i.e. lots of people awake)
- rodh257 15y agoThis sounds great but my question is are you a morning person normally? I'm definitely not, so perhaps I'm doomed to not be able to do this?
- icodeforlove 15y agoI love this routine, but it's easy for it to fall apart for a week if you do a lot of OT at work. I found it really hard to get back into the groove after having to skip a 5am day due to OT.
- jlembeck 15y agoI find that with the insane amount of meetings and interruptions I might face in any given day that don't contribute to "coding time," this works really well to ensure that I'm getting things done and to keep my mind fresh. I can then engage on the business side of things later without having that nagging feeling in the back of my head that something needs to get done.
- skrebbel 15y agoGenuine interest about the doing this every day, also in the weekend: What if you got drunk last night?
- JimFMunro 15y agoThere's probably little to add here, but since I've been doing a 5am coding period each morning for the last year. First, I am 42, married with 1 kid, so that may explain some of it. ;) Some keys: 1) Coffee maker on autobrew, but not immediately upon waking. Give yourself and your stomach time to wake up. 2) Eat and/or drink something easy upon waking. I go for the MixOne protein shakes, or OJ. 3) A clear goal of what to accomplish that morning. 4) Get enough sleep or you will burn out and have to stop for a time period of recovery. I go to sleep or rather, my body & mind collapse, at 9PM. Asleep by 9:30. I am able to get 7-8 hours of sleep every night. More than plenty. 5) Don't use anything with a screen (except maybe an e-ink Kindle) before bed. Reading helps me to get right to sleep. Due to having a kid in preschool, I generally am limited to 1-1.5 hours in the morning. Which is just enough time to do one task and very little else, hence the need to focus on something.