3 ms·
Today I completed a difficult five days and the blasted thing works and I hope I never see this code again. Before you laugh because you've all pulled off 9 mo
by VLM 13y ago
Today I completed a difficult five days and the blasted thing works and I hope I never see this code again. Before you laugh because you've all pulled off 9 months without sleep or whatever manly chest beating, hear me out, because its all fresh in my mind (obviously, with successful completion being today).
1) WRT athlete, your brain is overworked. The most important thing leading to the quick(ish) resolution of the redesign was doing absolutely nothing on Friday. If I hadn't done that, it would probably be another week... or two... until I got this thing done. After the first ten hours on Wednesday and Thursday I was making, in retrospect, provable negative progress at the rate of about five hours of re-work required per hour of work.
2) Never deviate from procedure. When you're sleepy, cranky, panic, and tired, skipping unit tests or a sort of individual code review is an excellent way to make negative ten hours progress. If you know how to do it the right way, do it that way even if its not immediately the fastest. I've never wasted so much time as when I've tried to speed things up (this applies to general life, now that I think about it).
3) Explain the whole thing as if to a noob or a coworker, over and over, until you find the bug. So this case class inserts into that db table using ... uh.. that code that doesn't exist. Yeah. (Edited to emphasize "the whole thing" means to find and fix major system design issues... the compiler will do a fine job of finding missing semicolons, but entirely missing flowchart boxes can only be found via systems analysis, and this is probably not the ideal time for it)
I can mathematically prove that working 13+ hours a day results in about as much net forward progress as working 4 hours per day. I would probably have been done on Friday if I had just stopped early on Wednesday and Thursday, but instead it took till Sunday afternoon. People who claim to work 90+ hours are probably doing the mental equivalent of ditch digging or are only getting net 10+ hours per week forward progress.
Back to easy, much more productive, shorter hours next week...