by yosito · 9y ago · 0 comments
As a software developer, yeah right! In 20 minutes, I've barely even gotten a problem into my head, and a five minute break would mean starting over.
Also, working remotely is not necessarily a cure for burnout. I've been burned out while working remotely and it had a lot to do with the additional stress of having to be self disciplined, the lack of boundaries between leisure and work, and the lack of emotional support from co-workers.
Other than those two points, there was some good stuff in this article.
Being able to work in small chunks of time and being able to recover from short breaks in concentration are skills that one can develop much like other programming skills. Needing a long time to "get back into the zone" is a fix-able weakness, not some intractable law of nature.
Try having kids! You'll quickly learn to divide your productive time up into dozens of short 15-minute sessions rather than hours-long stretches in the zone. Infants don't care that you're concentrating.
I'm asking honestly, by the way! I've never personally encountered a problem in my professional career that takes half an hour just to internalize, and I've always wondered what one might look like.
One example is spaghetti type code that you have to untangle and see if you can simplify (or simply understand). Imagine that you have a Rails controller where there are several modules being pulled into it. There is a before filter that calls a private method. The private methods makes a call to another method, but it's not clear where that method is. It turns out that it's in one of the modules. The module method makes calls to other methods in other modules - of which you have to hunt down and figure out where they are. One of the methods in such modules has some dynamic code where it calls a class based on a value that comes from the DB...
There's some funky stuff that goes on in production apps sometimes - add in a bit of tricky logic to trace, and maybe you can see how it could take a bit to get your head around what's going on.
Hopefully this is the exception to the rule, but if you're a consultant who's job it is to clean up other's messes then I guess it wouldn't be so surprising to see some pretty gnarly code.
(Those problems could easily take even more time, but after a lot of such cases in my hobby projects, I learned that if I feel the problem is that complex, I should aggressively decompose it into pieces that can be thought through and implemented independently.)
Another kind of problem - complex algorithms. For instance, it once took me over a week to implement a new path routing code in our company's application, with half of the time spent on trying to comprehend some obscure papers that described an efficient solution in just enough details to get a pretty good picture of the method, but not nearly enough to actually build it.
I can give you a concrete example. At a place I worked at a while ago, they wanted to integrate shipping. Well they had already done Fedex but wanted to now do UPS. Shipping has all sorts of special services like Saturday delivery and return receipts, etc. So first you have to understand what they were doing with the Fedex implementation, then you have to understand the constraints of the UPS implementation and conform those constraints into the same functionality of the Fedex implementation without missing any of the features or how the implementation works / looks to the user. You have to apply this to the front end, the back end, and the database.
That took a lot longer than 20 minutes, because you have to keep 2 mostly full implementations in your head at the same time while you are designing the second.
I'm not against breaks, the issue here is that someone mentioned that 20 minutes is more than enough to wrap your head around anything. I gave an example where most (mortals) would require substantially more than 20 minutes. Are we talking about breaks? Or the fact that some geniuses are able to figure out everything under 20 minutes?
It's in tracking down tricky bugs that I find focus is most needed: if I'm in an easily-distracted state then I will basically spend hours getting nowhere.
I see a common anti-pattern in myself and other developers that I call the "depth-first problem solving" method. In short, it's when you go down the rabbit hole and loose sight of what you were originally trying to accomplish. Others call this issue "Yak Shaving"[2].
By forcing you to take stock of what you're doing and give yourself a breather, I find one is better able to keep on-task. Also, when doing pomodoros, the side benefits is that you're only working on one thing.
Even if you're not doing something more sophisticated like pomodoros, taking a break every 20 minutes can be very useful even for "in-the-zone" type activities, like coding, which can take some time to get into.
[1] https://en.wikipedia.org/wiki/Pomodoro_Technique [2] http://www.hanselman.com/blog/YakShavingDefinedIllGetThatDon...
My strategy for this has been to take a long break and treat myself after finishing a big feature. I usually try to do one large thing in a work day and right when I push the commit, go watch tv for an hour or something.
I've found it works very well because instead of using entertainment as some sort of "boredom medicine," it makes it into a reward.
This works much better when working remote. When in office, keep your headphones on so people see that you are not available.
This is basically variation of a Zen walking meditation. To respect the Zen style fully, try to concentrate on the walking, breathing, making, pouring your coffee, and nothing else. Don't beat yourself up if you starting thinking about work, though -- just go back to being in the moment while doing trivial things. It's the getting up and giving your brain the OK to relax that is the key. The goal of Zen is to be in the flow with that's in front of you, even when sitting and doing almost nothing (just breathing). It is impossible to do this for long (at least for me). But the goal of "not thinking" and being in the moment / in the flow is a worthy goal. Softly bring your attention back to what's in front of you is the mental exercise that helps you relax and avoid distraction when not meditating, though for me this takes months of meditating to have this knock-on effect.
This isn't always possible for me. I probably don't meditate enough. Sometimes I basically keep thinking about whatever I'm working on or worrying about. But even then, stepping way from the keyboard at least let's me tackle things from different direction.
Anyway, a short break like this unlock something you are working on, similar to how we sometimes come up with good ideas in the shower.
For me, I do this once every hour or 2 when I can, not 20 minutes. On the other hand, on days when I have lots of meetings, this is basically impossible.
Just my 2 cents. Everyone is built slightly different; your milage may vary.
I've never been close to burning out so take this with a grain of salt, but I definitely felt way more relaxed once I started working more from home.
At home, you can get up and watch a show on TV for 30 minutes, or play a quick game or something to alleviate the stress. You can't do that at the office typically.