Ask HN: Any scientifically proven techniques to boost concentration?
288 points| amznbyebyebye | 4 years ago | reply
Are there any proven exercises or techniques I can adopt that are proven to boost my ability to focus and get in that clear headspace to write code?
Edit: adding some tips as I try to figure this out. Note: not scientifically proven (to my knowledge)
1. Music. which type depends on the individual.
2. Timing. Dead of night or early in the morning when the world is quiet. Not this isn’t a muscle you can flex at any time, you have to just capitalize on the right time.
3. Long shower
4. Caffeine
5. Get out of the office/house go somewhere else (like a cafe)
6. Take a walk
7. Have a beer
8. Write thoughts down in a notebook without any phones/laptop in sight and then jump to the laptop to implement
9. Meditate
10. Lift weights / exercise to work the demons out and quiet the mind
[+] [-] jmalicki|4 years ago|reply
Just a few studies (there are countless): https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3951958/ https://pubmed.ncbi.nlm.nih.gov/20065132/ https://pubmed.ncbi.nlm.nih.gov/35153701/ https://ju.se/download/18.4662178a174aa5f82061c573/160103080...
[+] [-] k__|4 years ago|reply
[+] [-] Breza|4 years ago|reply
[+] [-] rthomas6|4 years ago|reply
[+] [-] nine_k|4 years ago|reply
Also, timeboxing things helps. It's hard to work on one thing indefinitely, it can even induce panic. But if you're using something like the pomodoro technique, you know that when you're feeling a craving to switch, you have, say, 27 minutes left until the next break. It's observable and manageable; you can concentrate during this time, knowing that a relief is nearing. But the relief (like going for more tea / coffee / etc) is also timeboxed, so you don't get distracted forever.
[+] [-] hombre_fatal|4 years ago|reply
Not sure if it has improved my concentration, but it has improved all sorts of aspects of my life in surprising ways. Like I'm now the type of person who doesn't mind hand-washing all the dishes where, in my 20s, I'd let them pile up in the sink—I just do it while listening to a book.
[+] [-] lewisjoe|4 years ago|reply
[+] [-] lordnacho|4 years ago|reply
You have to eat and you have to use the internet.
What's the solution to not doing it to your own detriment?
[+] [-] Cerium|4 years ago|reply
[+] [-] pingeroo|4 years ago|reply
[+] [-] qznc|4 years ago|reply
[+] [-] throwaway4good|4 years ago|reply
[+] [-] ichugwindex|4 years ago|reply
[+] [-] gyulai|4 years ago|reply
Binaural beats [3,4] are also worth a try.
[1] https://bandcamp.com/tag/video-game
[2] https://bandcamp.com/tag/video-game-music
[3] https://en.wikipedia.org/wiki/Beat_(acoustics)#Binaural_beat...
[4] http://gnaural.sourceforge.net/
[+] [-] nabusman|4 years ago|reply
[1] https://di.fm
[+] [-] csomar|4 years ago|reply
[+] [-] amiga1200|4 years ago|reply
[+] [-] kaczordon|4 years ago|reply
One of the tips from the video that I really love is called the cathedral effect. It was found that having high ceilings increases your creative capacity when doing an activity.
[+] [-] adolph|4 years ago|reply
https://hubermanlab.com/optimizing-workspace-for-productivit...
[+] [-] endymi0n|4 years ago|reply
I have yet to see whether the methods are scaleable and replicable for me, but a lot of the content resonated with me, especially the insight that concentration to flow states is a skill that can be learned and brought down from 20 minutes to just one with training.
It was an interesting mix of fundamentals from Cal Newport (Deep Work), plus mind emptying exercises, concentration meditation, exercise breaks and group work sessions.
I'll probably dig more into it.
[+] [-] reactspa|4 years ago|reply
[+] [-] 71a54xd|4 years ago|reply
[+] [-] dzink|4 years ago|reply
Go to bed early - 9-10pm and wake up when your body feels like it for a change. If it’s 4-5 am, you get more hours of dark and focus time and your brain is at peak executive thinking, so you can see the bigger picture and write much wiser code.
Fasting for a bit may keep your focus as well for a while. If you wake up and are distracted from hunger, drink a cup of plain while milk or plain yogurt. The protein and fat will be an instant boost to your brain and you will stay focused until you get hungry again. If you keep to meat, dairy, or sugar-free protein and fat you kan keep your focus all day. Carbs will crash you.
When you feel tired or unfocused, or ready to go to social media, take a nap instead. You can eat some carbs now as they can help you fall asleep faster. When you wake, apply the same principles.
I had to work for my own startup for a while and a squeezed a whole bunch of top quality code out of my brain. Without enough sleep or quality fatty protein, the brain gets distracted more easily or operates only at lower levels of abstraction.
[+] [-] arnejenssen|4 years ago|reply
Avoiding carbs and sugar prevents insulin spikes and that prevents "brain-fog"
[+] [-] vedran|4 years ago|reply
ADHD & How Anyone Can Improve Their Focus - https://www.youtube.com/watch?v=hFL6qRIJZ_Y
How to Focus to Change Your Brain - https://www.youtube.com/watch?v=LG53Vxum0as
[+] [-] dominotw|4 years ago|reply
[+] [-] Graffur|4 years ago|reply
[+] [-] tkgally|4 years ago|reply
You could do a scientific study on yourself, though. Figure out some objective way to measure your own concentration, and then try various interventions one at a time to see which intervention correlates with the best concentration. You could also try combinations of interventions—having a beer while taking a shower?—to see if you can get an even stronger effect.
I’ve never done such an experiment on myself, as planning and implementing the experiment would distract me so much that I wouldn’t be able to concentrate. So I just exercise for a while every morning. That seems to work—for me.
[+] [-] k__|4 years ago|reply
Ritalin is that pill. I know a bunch of devs that take it to code through the whole night.
But...!
1. It usually requires a prescription.
2. While it lets you hyper-focus on one task for hours, if you not careful that task could be rearranging your cutlery.
[+] [-] mannykannot|4 years ago|reply
The other thing is to notice when I am no longer able to concentrate any more, as it is no longer productive to keep going. When that happens, any of the above might be helpful, but that list is missing the most important one: get enough sleep.
Your list is mostly of solitary (or not explicitly social) activities, but socializing is also helpful for me.
[+] [-] jmcgough|4 years ago|reply
I can't find relevant studies, but there's a few scientists who say that reading improves focus: https://www.ncu.edu/blog/reading-improves-memory-concentrati...
[+] [-] seer|4 years ago|reply
First of all it kinda puts you in this “survival” state where while not feeling hungry per say, you’re on high alert and can concentrate like crazy.
And after you finish you feel rejuvenated and excited. Amazing experience and can’t recommend it enough. Done it several times already (4 days fasts) and still having the same initial effect.
After listening through all of the science in Lifespan (the book and the podcast) have started the “only eat in the evening” routine. Like I skip breakfast and lunch.
Still in my first week so its kinda hard, but after another week or two my glucose levels are supposed to stabilize and I would not be feeling the pangs of hunger and highs and lows of sugar spikes after a meal and brain fog after the insulin response has sucked all of the sugar from my blood (and brain).
Its that what I’m really after - steady brain performance throughout the whole day. Will see if I adapt and that actually happens!
[+] [-] winrid|4 years ago|reply
Also naps! 20min naps are a nice reset to fix concentration issues. I wrap my head in a blanket so I fall asleep fast and set a timer.
[+] [-] Broken_Hippo|4 years ago|reply
Before going to a water fast, especially for a 2 whole days, talk to your doctor. Not everyone can fast, even for shorter times, and you might not know you are in that group. Ancedote: I have a friend that was hospitalized for doing a much shorter fast - daytime fast for religious reasons. As far as he knew, he was healthy enough for it and he was young at the time.
[+] [-] maartenpi_|4 years ago|reply
I'm already fairly slim (1.90m and <80kg) and become a complete stick man after doing this. Anybody know how to do this and how to stay in shape at the same time.
[+] [-] dasil003|4 years ago|reply
The good news is that "sometimes it's effortless". Consider yourself blessed. For a lot of people that is never true and though they may even achieve some professional success by grinding, it will be joyless and likely not lead to real career satisfaction.
Now in terms of optimizing your coding output, don't focus on minmaxing this as if you were an assembly-line manager trying to squeeze out your next ounce of performance. Instead recognize that coding is a creative craft that depends hugely on your state of mind. Focus on finding ways to recognize and harness the energy overall, but recognize you can't force it. This comes in two parts:
First, if you are procrastinating diagnose that by practicing self-awareness at all levels. For me it can range from something as simple as eating the wrong lunch all the way up to existential crisis about how I'm living my life, and everything in between. This is obviously non-trivial, but it can be hugely important. A lot of folks mention exercise here—and I agree—but I would broaden it to include ones overall physical and mental health. By addressing those things holistically one establishes the conditions to allow inspiration to strike.
Once that is established then you need to recognize and harness the energy when it comes to you. It might be on a schedule, it might not. You might have an understanding boss who gives you carte blanche to organize your own deliverable schedule, or you might need to some stakeholder jiujitsu (up to and including finding a new job) in order to carve out space to make your process work for whoever is putting money in your pocket. The point though, is not to adopt some external productivity narrative (I was brought up with the puritan work ethic) but to instead recognize and optimize for the tao of your own abilities.
[+] [-] nnf|4 years ago|reply
[+] [-] philipswood|4 years ago|reply
I suspect it’s because they needs to have an emotive effect without distracting you from the story.
[+] [-] thadk|4 years ago|reply
https://news.ycombinator.com/item?id=24696601 https://www.healthline.com/nutrition/7-supplements-for-vegan...
[+] [-] PragmaticPulp|4 years ago|reply
One of the most effective strategies I've learned isn't necessarily cheap, but it works: Get two computers. One is your work computer. You only work on it. One is your play computer. You only play on it. If you struggle with self-control, use extensions to block or limit your time on sites like HN, Reddit, Twitter, and others on the work computer.
For me, physically moving between the two computers helps reinforce the separation. If visiting HN is an alt-tab away, it's easy to drift off when there's a lull in work or I have to wait for a compile. If I have to actually get up and move to waste time, I will put deliberate thought into it and, most of the time, not do it.
If you have the space, creating a separate home office that is in a different room from your play computer is golden. That's a lot to ask, obviously.
For a more accessible alternative, consider isolating your distracting activities to only your phone. That's what I do most of the time. I only use the phone distractions while I'm walking, which helps wake me up in the process.
[+] [-] graphpercolator|4 years ago|reply
For me, I am just not going to play on my personal work computer after going through the trouble and space to set all this up.
[+] [-] jseliger|4 years ago|reply
[+] [-] pingeroo|4 years ago|reply
[+] [-] btgeekboy|4 years ago|reply
I’ve had a subscription to Brain.fm for a bit over a year now. Supposedly it doesn’t work for everyone but I find the act of picking a 60 minute Deep Focus block, probably just as much as the music itself, really helps me keep my head down.
[+] [-] marttt|4 years ago|reply
[+] [-] grahamplace|4 years ago|reply
To help achieve this effect while working remotely, I’ve used https://www.flow.club/ and recommend it
It helps you: (1) actually block time off in your calendar to do focused work (2) set your intention for that chunk of time (3) create an accountability mechanism by telling the people in your session your goals (4) creates cognitive dissonance if you let yourself get distracted (since you told people what you would be doing, and have to tell them at the end of the session what progress you made)
[+] [-] anonyfox|4 years ago|reply
To go beyond that, a daily routine of 2x20min meditation is somewhat proven to increase your mental capabilities slowly over time.
Also background Music (like Trance or game soundtracks) have some instant effect, I personally have great results with Endel.io - highly recommend!
[+] [-] meken|4 years ago|reply
HealthyGamerGG YouTube channel has videos on it.
Apparently the yogis have been doing it for 1000s of years.
[+] [-] ultrasounder|4 years ago|reply