Ask HN: How do you concentrate?
Recently, I've found my concentration is becoming increasingly bad. I blame this mainly on co-workers and the internet keeping me from things that I need to get done (it's hard to program when I can only keep focus for about 10 minutes at a time).
What are tips/tricks you use to help "build" your concentration?
94 comments
[ 3.3 ms ] story [ 160 ms ] threadI've tried downloading the loopable brown noise file, but when I put it on a loop in quicktime there's a break at the end of the loop which is annoying.
Anyone knows how to make a seamless loop?
edit: I've tried it in iTunes and the break isn't quite as annoying (though still there). You can make it a bit more "full" by playing the website (oscillating) and the loop file at the same time.
Also this seems like a perfect excuse to program a solution, if you are so inclined. I've used supercolider in the past and it was easy to pick up quickly. http://www.audiosynth.com/
If you're in a crowded and/or noisy work environ, noise-cancelling headphones are useful for zoning out, and are more obvious than earphones, so people around you can see the reason for you not responding to them.
But as for "building" concentration because 'co-workers and the Internet' keep you from getting work done? No amount of mindhacks can help if you want to continue 'blaming' them for your distraction. Hard to fix a problem you claim to not have control over..
Something I've discovered is that the more I let my mind and my mouse wander away from what I'm supposed to be working on (ie: right now), the harder it is to maintain focus. I suspect this has to do with the reward circuitry in my brain - when I desire something (going on the internet, sending a text message, etc) and IMMEDIATELY receive it, I become habituated to that. So much so that when I desire something and don't immediately get it, my dopamine drops, and it becomes extremely important that I get it right away. It works the same way as addiction, really.
So to avoid it, you just need to get used to denying yourself - eventually your reward center will get used to not getting what it wants immediately, and your dopamine will return to normal levels.
http://www.abc-of-yoga.com/pranayama/complete.asp
-Sit comfortably, either on a chair or on the floor. Close your eyes.
-Lengthen your spine up towards the ceiling, as if a string were attached to the crown of your head.
-Relax your shoulders by rolling them down your back.
-Breathe slowly and deeply through the nose. Fill your lungs from the bottom up. Focus on feeling your abdomen push out, then the middle of your chest, and finally your upper ribs.
-Breathe out through your mouth in the reverse order - compressing your chest from the top down (ribs, solar plexus, lower abdomen).
Repeat this a few times, breathing slowly, deeply and mindfully. To breathe mindfully means to focus on the act of of breathing, and how it feels inside of you. Notice the temperature and moistness of the air in your nose, the ribs expanding, the shoulder blades being stretched, the sound the breath makes...
The idea is to calm your body with deep breathing, and calm your mind by focusing solely on the breathing. Try to allow your muscles to relax and be stretched by the breaths (but keep the back straight). Your mind should be empty at the end of this.
It may take a few practices before you're able to completely clear your mind. You might consider taking free meditation workshops or yoga classes offered by your community centre.
P.S. - HN - how do I do bulleted lists?
As the URL (and title) implies, it provides you with a good starting point. I'd floundered for quite a while reading up on theory, which is nice but has nothing on actual practice.
In particular, he linked (and now, so will I) to the online text of Mindfulness In Plain English at http://www.urbandharma.org/udharma4/mpe.html, which is both pragmatic and convincing.
Those two links finally got me started on the meditation practice I'd intended to try for years, and I've stuck to it without breaks longer than a day or two.
One of the keys to meditation (and to most of Oriental arts) is consistent practice. If you can find supervision it is better, but you can go a long way just by practicing consistently and correctly.
2. You should have 2 modes: coding and not coding. For coding, you should be at your desk coding. For not coding you can be anywhere, but not at your desk. One of my biggest problems is that I often find myself in one mode when I should be in the other. If you're having trouble writing code, then you probably don't know what to write. Grab source code listings, pen, & paper and get away from your computer. Don't come back until you know exactly what you're going to be working on. Better yet, until you're dying to work on it. OTOH, if your doing analysis and are stuck, stop. Go back to the computer and code something, anything small, just to get going.
3. End every day in analysis mode. Don't go to sleep until you have tomorrow's plan ready. You should wake up knowing exactly what you're going to be working on and excited to do it. More about that:
http://news.ycombinator.com/item?id=191275
4. Never text or IM when working. Have the cell phone nearby only for emergencies. For email, go to the other computer once an hour (see #1 above).
5. Try 48 minutes on, 12 minutes off. For long coding sessions, this works pretty well for me:
http://successbeginstoday.org/wordpress/2006/09/the-power-of...
6. Ipod.
Fell into that pattern in college when I had to write my philosophy papers.
#3 is an unbelievably important point and I fail to do it myself and I get bitten in the ass. When I finish writing I always try to add a quick 'to do' of my thought process for the next day, I find it helps me get back into the groove a lot faster. The past couple of days I forgot to do it and it seriously feels like going against a brick wall and basically feels like how writing used to be for me at the beginning.
#6 I practice myself, but I'm never sure of. I have music going and then like 40+ minutes later I become lucid and I'm like 'SOAB I missed the song I like', so I'm unsure if the music helps me or if it's just background noise. Although music can certainly help set the mood for working, so I suppose it helps in some way.
Now I'm off to setup a timer on my G1 so I can test out the 48/12 method.
You really should start a blog
Thanks for reminding me, I forgot...
7. Don't blog.
Blogging is one of those things I'd love to do (along with bridge, piano, & foosball), but I don't because I don't want to do it "half way". I'd be afraid of having 3 posts one week, then none for the next month. And I don't want any of these things to interfere with the time I dedicate to my projects. I know that by the third Wednesday night, I'd have to choose between coding and blogging, and I don't want to be in that position (at least at this point in my life).
So instead I come here. hn is perfect for someone like me; I come when I can and don't come when I'm really busy coding. I suppose my posts here comprise my "pseudo-blog".
Getting work done really isn't all that complicated, and I'm glad to share what works for me. Most importantly, work on something you're passionate about and find those habits that work best for you. All the rest is details.
I'll just have to start saving clips I've read that have been very inspiring for reference.
http://productiveblog.tumblr.com/
OP: For noise, really good noise reduction headphones are the key to my sanity in the workplace.
As for internet distraction, I found two things helpful. 1) Eliminate non-essential immediate/push notifications. and convert them these tasks to on demand type tasks. Turn off twitter notifications on the iphone, shut down your IM client, and only check your feeds when you want to, not when they get pushed to you. I find the interruption of the notifications plays hell with my concentration. 2) install rescuetime and track (or even block) your internet sites.
Used under physician supervision he (w/doc) may find a dosage and plan that works for him. YMMV.
Honestly, I tend to use my imagination to concentrate. I mean, really stupid things like imagining that my code is slaying dragons or something, or that I'm actually developing software for an asteroid mining platform. Really, use whatever it takes to make yourself INTERESTED in what you are doing.
Also, avoid Hacker News. ;)
Hard to do in an office environment without strange looks. ;-)
I am a heavy chain smoker, averaging 30 cigarettes a day .. except when I am in hack mode. I can go for up to 10 hours without even noticing I haven't had smoke all day.
The other thing that motivates me is phone work and emails; when I have a contract or a deal in my sights I am in predator mode :-)
Then I write just enough code to make that test past.
Then I refactor my code so that it meets the 4 rules of simplicity.
Then I write another test.
When I sit back down, I know exactly where I was: making the test pass.
Not being facetious here at all. The internet for a computer worker is the biggest concentration killer out there. Blocking it all means losing part of your toolbox (i.e. googling some obscure/unknown language reference or topic), but relying on you being able to kill your temptation is not effective.
RescueTime solves this problem brilliantly. (There are other programs too, I just happen to use RescueTime)
After 30 years I decided I probably have ADD. Talked to a doctor and he agreed.
Very small doses give me hours and hours of concentration.
Only about six months in, but the difference is night and day.
I can live with that, insomuch as it's a trade off of that risk versus problems right now with focus and concentration.
(That said, pretty much anyone routinely taking any drug needs to have their liver functions checked regularly, and periodically evaluate if the drug is still doing doing anything useful.)
If you are not currently fighting cognitive problems, then the risk/benefit balance is different.
I'm worried about tolerance.
I run regularly, and eat reasonably well. There are risks, but the difference is so dramatic i think it's worth it. As i understand it, amphetamines have been around forever, and are pretty well understood.
To be clear, i tried everything many times. personal organizers, schedules, regular exercise, diet, avoiding stimulants like caffeine and depressants like alcohol, meditation, weird reward systems where i'd buy myself stuff if i did well for x days. I didn't do the full powerset... maybe there is some combination that would work, but my search for a system i could live with for the rest of my life was not successful.
My current personal theory is, I wear glasses cause my eyes are a little screwy, and take speed cause my brain chemistry is a little screwy.
I'd suggest doing everything else first. 5 hours of exercise (or so) a week is a big win. If you only eat horrible food, diet changes help ... if you occasionaly eat horrible food not so much. Meditation helped, but if you only do 1 thing, pick exercise.
If you still suck at finishing things after you've done all that, talk to your doctor.
I wish this POV was more prevalent, and I hope that more people talking about neurochemical imbalances will help that.
Most people have no trouble with the idea of taking insulin shots to handle diabetes, but somehow taking brain drugs is de facto spooky bad. Pretty much, "Oh, psychiatric stuff. So you're like, crazy?"
But I'm seeing improvement.
I disable auto-checking for new email.
Quit Tweetie.
Quit your IRC client.
Listen to some slow, drone-like ambient music (favorite: "The Tired Sounds of Stars of the Lid" or a Buddha Machine).
Also, while in school (when I really had to and wanted to concentrate), I had very good success listening/experiencing binaural beats. http://en.wikipedia.org/wiki/Binaural_beats
I've been listening to http://www.philosomatika.com/ a lot lately. 24/7 streaming psychadelic trance.