TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: How do you concentrate?

91 pointsby bgrayover 15 years ago
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).<p>What are tips/tricks you use to help "build" your concentration?

36 comments

edw519over 15 years ago
1. Do not have access to the internet on your work machine. If you don't have 2 computers, get a netbook for &#60; $300 and connect it to the internet. They should be in 2 different workstations, ideally in 2 different rooms. The thinking is that if you have to get up, you'll only do it if it's really necessary. It works pretty well.<p>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 <i>not at your desk</i>. 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, &#38; paper and <i>get away from your computer</i>. Don't come back until you know exactly what you're going to be working on. Better yet, until you're <i>dying</i> 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.<p>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:<p><a href="http://news.ycombinator.com/item?id=191275" rel="nofollow">http://news.ycombinator.com/item?id=191275</a><p>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).<p>5. Try 48 minutes on, 12 minutes off. For long coding sessions, this works pretty well for me:<p><a href="http://successbeginstoday.org/wordpress/2006/09/the-power-of-48-minutes/" rel="nofollow">http://successbeginstoday.org/wordpress/2006/09/the-power-of...</a><p>6. Ipod.
评论 #869356 未加载
评论 #869282 未加载
评论 #869325 未加载
评论 #869368 未加载
hegemoniconover 15 years ago
Practice.<p>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.<p>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.
arfrankover 15 years ago
If I really need to block out everything I use <a href="http://simplynoise.com/" rel="nofollow">http://simplynoise.com/</a> and turn the brownian noise all the way up and turn on oscillation. It both calms me and lets me focus on what I need to do for extended periods.
评论 #869155 未加载
评论 #869175 未加载
评论 #869116 未加载
评论 #869137 未加载
al3xover 15 years ago
1. Stop using IM. Period. Not just when you're working. All the time. You don't need it. There's email, SMS, phone calls, Twitter, and other social messaging services. IM is the most brutally distracting and easiest way to waste time when trying to work.<p>2. Stop using Growl or equivalent. You're training yourself to constantly be looking for distractions in the periphery. You don't need that information, I promise - even for your fancy CI system that tells you when tests fail. Knock it off.<p>3. Quit anything remotely interruptive for the duration of your work session: IRC, Campfire, Twitter client, email client. This can be tough if you're working remotely, so let clients and coworkers know when you'll be available online and when you're focusing. As long as you communicate your goals and intentions clearly, they'll understand.<p>4. Get yourself some noise-cancelling headphones. I like the Bose QC 3. Added bonus: take 'em on plane trips and they help to dull the engine noise.<p>5. Listen to something engaging but not totally engrossing. Ambient music and noise generators were mentioned in this thread, and I like them, but sometimes you need something with more "oomph" to get you through a dull task. Minimal techno is my staple, as it rarely has distracting vocals and typically maintains a steady, not-too-fast, not-too-slow beat. There are tons of sites out there with free DJ mixes, just search around.<p>6. A personal preference: work standing. I find that standing helps keep me focused and helps to distinguish work from relaxation.<p>7. Get a really big monitor and cover it in your code, terminals, documentation, etc. The only thing that should be in view is the material you need to get your task done.<p>8. Make a list of stuff to do, and do that stuff. Doesn't matter whether that list is in some fancy GTD app, a bug tracker, or on a piece of paper. It's helpful to see the list and know that you get to cross off an item or close a ticket when it's done.<p>9. Block work time out on your calendar. I refuse meetings after lunch (from 1PM to 6:30PM), and I'll only make exceptions for truly exceptional circumstances (candidate flew across the country to interview, has one day, there's no other time to meet with him/her). This is essentially pg's idea of the "Maker's Schedule", although I'd been doing it for several months before he wrote about it.<p>10. Meditate. This sort of speaks to the comment in this thread about practice. Meditation is conditioning for your brain. It's really, really hard to do well, and even harder to find the time to do it. I don't do it as often as I should, but when I do, I find it much easier to concentrate on hard problems.<p>Hope some of the above helps.
评论 #869805 未加载
评论 #869790 未加载
评论 #869797 未加载
评论 #869950 未加载
评论 #869747 未加载
评论 #869892 未加载
jfoutzover 15 years ago
I take speed.<p>After 30 years I decided I probably have ADD. Talked to a doctor and he agreed.<p>Very small doses give me hours and hours of concentration.<p>Only about six months in, but the difference is night and day.
评论 #869304 未加载
评论 #869487 未加载
shrikantover 15 years ago
In the context of tackling a niggling problem that really could be dealth with in minutes, but appears to be taking forever - I find that a short nap (about 15-20 mins tops) helps me focus and gather my thoughts.<p>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.<p>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..
评论 #869545 未加载
bhamover 15 years ago
For the love of all things good in the world, block Google Reader.<p>I disable auto-checking for new email.<p>Quit Tweetie.<p>Quit your IRC client.<p>Listen to some slow, drone-like ambient music (favorite: "The Tired Sounds of Stars of the Lid" or a Buddha Machine).<p>Also, while in school (when I <i>really</i> had to and <i>wanted</i> to concentrate), I had very good success listening/experiencing binaural beats. <a href="http://en.wikipedia.org/wiki/Binaural_beats" rel="nofollow">http://en.wikipedia.org/wiki/Binaural_beats</a>
评论 #869546 未加载
keefeover 15 years ago
I have read that meditation helps build a control circuit in the brain and I practice it regularly. I often listen to music or some well known old TV show, something that flows familiar impressions to block out external noise but does not command my attention. Finally, my somewhat silly but surprisingly effective method is budgeting my time with a vibrating watch. <a href="http://www.epill.com/medos.html" rel="nofollow">http://www.epill.com/medos.html</a> I set this up with a 60 minute countdown and commit myself to work for that hour. The alarm is subtle and doesn't distract others, just a small vibration. Then, I take a break. My goal is always to do that 1 hour work, so I take a break for long enough that I feel I can do the next 1 hour sprint. Then, I figured out how many I could do in a day (started at 4, now working on 9) and moved it up, just like working out. That is not to say I don't do other work as well, but these sprints are both more productive and more stressful.
mahmudover 15 years ago
I am only distracted when I have no problems. Show me a good problem or show me money, and nothing can pry me away from work.<p>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.<p>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 :-)
ojbyrneover 15 years ago
I know this is weird, but for me the best way for me to concentrate is to lie down on my stomach with a laptop in front of me. Not good ergonomically, and I think its because as a kid I did all my homework lying on the floor in front of the TV.<p>Hard to do in an office environment without strange looks. ;-)
snitkoover 15 years ago
This might sound weird, but under no circumstances start concentrating and working unless you've previously jerked off. Or unless you're absolutely sure your mojo's not going to be awake for some time. This thing distracts you like in a moment when you're really starting to get deeper into the code and it's really hard to concentrate again. Ejaculation frees your mind.
anelsonover 15 years ago
I find the thing that most kills my concentration is lag. For example, right now I'm at work and we're facing a crucial deadline, but I'm not working. Why? Because I just made a change that requires re-running an integration test, which takes several minutes to run. I'm not about to sit there staring at the test, so I switch over to my feed reader and catch up on news.<p>Logically, I know this is devastating for my productivity, but so is staring at a progress bar for 10 minutes after every change. After the iteration, I focus on fixing the one or two serious lags that hurt productivity. It's not always possible (I've no idea how I'll speed up this integration test), but it's a worthwhile effort.<p>It is for this same reason that my company spares no expense on dev workstations. When a build takes 10 minutes, the productivity hit is at least twice that, and it's a recurring penalty.
评论 #869891 未加载
n-namedover 15 years ago
Exercise, meditation, yoga, spending time in nature. Sleeping regularly. Eating breakfast. Spending enough time per day not working, i.e not overdoing it.
评论 #869154 未加载
diN0botover 15 years ago
record every hour of your day in an easy-to-record system such as OSX's iCal. facing your inefficiencies and patterns is crucial for doing better. combine what you learn from your past with what others here are saying about better planning and habits. <a href="http://github.com/diN0bot/iCal-Analyzer" rel="nofollow">http://github.com/diN0bot/iCal-Analyzer</a>
bingamanover 15 years ago
If you really do need a network connection to do work I've found that the Leechblock plugin for firefox helps me regain at least some measure of control. You can set it to allow yourself a certain number of minutes per hour of "freedom" and the rest of the time it simply blocks the sites that you tell it to. It's amazing how many times per day I see that block page. (And at the moment, hacker news seems to have slipped through my filters :) <a href="https://addons.mozilla.org/en-US/firefox/addon/4476" rel="nofollow">https://addons.mozilla.org/en-US/firefox/addon/4476</a>
angelbobover 15 years ago
One thing I had to work hard to figure out is that I code in two different ways, and I need to alternate them. They are physically incompatible -- I can only be doing one or the other in a given hour or so.<p>One of these is design. When designing (software, not visually) I need to avoid getting into ruts. I need to rethink constantly and brainstorm frequently. I should consider wildly different or thoroughly impractical structures for code and programs, because those frequently lead to more practical but non-obvious ideas. Design mindset is facilitated by having enough sleep/rest, having eaten reasonably (especially protein, but not too much), and not having much else on my mind.<p>The other mindset is for execution. I need to take that design and churn through it. I'm not rethinking, I'm building. This mindset is excellent for churning out a lot of code fast when I have a good understanding of it. I do less of this in Ruby than in C (less grind-work!), but it's still important on occasion. Execution mindset is helped by minimal distractions, caffeine or other stimulants, and being slightly tired and undernourished, as long as it doesn't get too extreme.<p>These states alternate, and different coding tasks call for different proportions of one versus the other. Planning which and making sure I'm physically well-adapted to the appropriate kind of work for the task help me a lot.
run4yourlivesover 15 years ago
1. Right click rescue time in sys tray. 2. Click "Get Focused" 3. Enter three digits (at least) 4. Get back to work.<p>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.<p>RescueTime solves this problem brilliantly. (There are other programs too, I just happen to use RescueTime)
bhouselover 15 years ago
The right kind of background music really helps me concentrate on a task. It has to be something with enough energy to get my pulse up, but brainless enough not to distract me.<p>I've been listening to <a href="http://www.philosomatika.com/" rel="nofollow">http://www.philosomatika.com/</a> a lot lately. 24/7 streaming psychadelic trance.
UsNThemover 15 years ago
I would recommend some of the tracks by the group All india radio <a href="http://www.myspace.com/allindiaradio" rel="nofollow">http://www.myspace.com/allindiaradio</a> . I use it effectively to differentiate the signal from the noise ! :) Anything without lyrics works for me
esilaover 15 years ago
Taken from "Time Management for System Administrators", however I feel this particular principle applies towards your situation:<p>Figure out if you're a "morning/mid-day/late-afternoon/night" person when it comes to your brain activity. Some people, for the life of them, can't get their brain functioning when they get up. Others can't seem to concentrate until they've gotten lunch and feel "established" in the day.<p>Figure out your natural cycle and make sure you attempt to get good quality coding time in during your best times. If this is not possible, then apply the other response suggestions and hopefully you can increase the range of your concentration time.
评论 #869726 未加载
srnover 15 years ago
Listen to music. Get the headphones that encompass your entire ear so you don't hear other people talk. I've done this for 10 years now. Also possibly get people to write you emails instead of dropping by the office even if you're 5 feet away. Work from home or from somewhere else occasionally, and work hours when other people aren't there.
评论 #869163 未加载
monologicalover 15 years ago
I love to work on things that interest me, like coding up a back-end for a site. If it's interesting, I start thinking about solutions, I get in the zone automatically and just code away.<p>Be careful to not overdo it by having balance between hacking (analytical) and dreaming (creative), lest you get burned-out, in which case concentration becomes impossible.<p>my 2cents
yarapavanover 15 years ago
Perhaps, this best advice works for you!!<p><a href="http://productiveblog.tumblr.com/" rel="nofollow">http://productiveblog.tumblr.com/</a>
uptownover 15 years ago
I switched from talk radio to music. It helps me focus better. I also force myself to close my RSS reader and email because the alerts were pulling me away from what I was trying to get done. I open it up every hour or two, or after I reach a milestone. Those two small things have helped me immensely.
alexgartrellover 15 years ago
I was having a big problem concentrating and getting work done so I tried something my friend told me to do. Sit for an hour, and do nothing. Don't plan, hardly think, just sit. It's hard to explain, but it feels like hitting the motivation reset button. I would say it's definitely worth trying.
评论 #869888 未加载
javanixover 15 years ago
I do my best to give myself ridiculous deadlines, and then do my damndest to meet them.<p>If I absolutely <i>have</i> to meet something, I will. Granted, I can only keep it up for a couple of weeks or so, but during that time I can productively code for &#62; 10 hours at a time.
rubentopoover 15 years ago
I normally try to schedule blocks greater than 4 hours for programming and i do everything else on the remaining block of time. This normally requires a little bit of planning the day before and may be disrupted by peers or emergencies, but it works for me.
gcvover 15 years ago
Try to work on something interesting. Hate to sound snarky, but it's that simple for me.
allenpover 15 years ago
When are times when you can concentrate? Do they have patterns that you can see? Can you artificially re-create these patterns?<p>Are you disengaged from your daily work? Maybe you need more interesting endeavors?
knownover 15 years ago
<a href="http://en.wikipedia.org/wiki/Test-driven_development" rel="nofollow">http://en.wikipedia.org/wiki/Test-driven_development</a> helps me a lot in concentrating on my work.
maxerover 15 years ago
i use <a href="http://rescuetime.com" rel="nofollow">http://rescuetime.com</a> its free and helps me track what i waste time on and gives me a target to focus on when developing
kakooljayover 15 years ago
Did you see this? <a href="http://news.ycombinator.com/item?id=868967" rel="nofollow">http://news.ycombinator.com/item?id=868967</a>
bjclarkover 15 years ago
First I write a test.<p>Then I write just enough code to make that test past.<p>Then I refactor my code so that it meets the 4 rules of simplicity.<p>Then I write another test.
评论 #869269 未加载
projecktzeroover 15 years ago
I turned off email notifications. I put on earbuds and listen to instrumental(sometimes ambient) music and focus.
jmtameover 15 years ago
try adderall. you might be adhd.
评论 #869187 未加载
评论 #869895 未加载
nreeceover 15 years ago
I take breaks, not concentrating on anything.