How can i keep myself focused?
Posted by RedwayBLOX@reddit | learnprogramming | View on Reddit | 39 comments
Hello.
I have been struggling lately with keeping myself focused while coding.
Im tired of it, mostly because im also struggling to focuse on everything. I cant keep track of what im doing in the day, i just keep scrolling on my phone, or daydreaming or doing whatever i can do just to not touch code / doing productive things.
I end up completely tired when i get back to home
I think thats messing with my life.
Sorry if im not self explanatory i just dont know how should i ask this and also wanted to vent a bit. Just wondering if someone had the same problem and how did they solve it. Anyways, thanks
Jolly_Inside5361@reddit
Check your sleep and when frustrated take a break and think of the next small step
chadlorg@reddit
We all get burnt out, my friend. If you need a break, take a break and don't beat yourself up about it.
If the issue, instead is that you just need to lock in, give yourself no more than 3 tasks that are ridiculously small. If one feature is too much, do one class, if thats too much then one method, if thats too much then one logic statement, if that's too much then one single line. Knock those three ridiculously small tasks our each day and take it as a win. Progress will be slow (at first) but yiur capacity will increase as you get things done - even small things.
Remember, motivation is fake. Work is real, and it comes from your hands, not your head, not your heart. So just get those hands busy doing something - ANYTHING, and momentum (not motivstion) will follow.
Good luck, and godspeed.
Familiar-Rip-2031@reddit
I was thinking that it was my fault , I see now better my symptoms thank you!
chadlorg@reddit
One must never punish oneself for being human. It is, afterall, the most wonderful thing to be.
RedwayBLOX@reddit (OP)
Thank you so much
Eldiablo2471@reddit
First make an appointment with a psychiatrist to check if you have ADHD. If he says no, then just try to discipline yourself. It's way harder than it sounds and there is no real shortcut to it. You either do it or not, it's your decision.
YoshiDzn@reddit
You're suggesting a diagnosis before even recommending discipline over phone usage, the number one indicator of fragmented focus?
terralearner@reddit
Yep, get tested for ADHD if you can OP.
Eldiablo2471@reddit
I bet he may have already tried the discipline path but failed. So maybe he could get a specialist's opinion just in case, he has nothing to lose.
decrementsf@reddit
Focus is a skill. You can improve it.
The boring advice from grandma are bigger levers than most credit. Simple meal prep, e.g. cook a weeks worth of protein or simple ingredients to stock the fridge to easily combine for a consistent targeted meal plan that hits most nutrition boxes. Every hour of sleep before 12am counts for two hours of rest. Waking up and getting outside for sunlight early, sets the anchor for when your body feels sleepy 12 hours later speeding up how fast you fall asleep. Exercise. Some form of aerobic development a few days a week, some form of weight training a few days a week. As a habit consistently these tend toward healthy bf % which one of the unstated benefits is deeper focus and more often waking up with that rare clear minded focus on tap, most days. Any caffeine or adderall or other nootropics only push an additional 2% beyond this base of the boring advice from grandma. I hate it. It works.
Every activity requires energy. Willpower takes energy. With prioritization focusing on those activities that give more energy means getting more done. Focus feels effortless when you have energy. Feels like pushing a boulder up hill when you don't. Generally early in the day when energy is highest feels easiest for focus activities. In many professions you hear the repeated story that those in senior positions who made it tend to be those that would wake up each morning and read, practice skills, exercise before core class or work hours. They used their highest energy of the day to those things that moved themselves forward first. Then performed their other tasks of the day second when energy was lower.
You can structure simple systems and organize your life around them to make things feel effortless. In any complex system is a simple system that scales at its core.
Yoosle@reddit
Wow this is the best advice ive ever read. I've recently began wanting to figure out how to get the absolute most amount of productivity out of my waking hours and it seems like this is the answer. your grandma must be very wise.
deleted_by_reddit@reddit
[removed]
AutoModerator@reddit
Please, ask for programming partners/buddies in /r/programmingbuddies which is the appropriate subreddit
Your post has been removed
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
deleted_by_reddit@reddit
[removed]
AutoModerator@reddit
Please, ask for programming partners/buddies in /r/programmingbuddies which is the appropriate subreddit
Your post has been removed
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
Familiar-Rip-2031@reddit
Is it age related issue ?
AdityaVerma609@reddit
A lot of people go through this, especially with coding.
Your brain starts associating coding with pressure/stress, so it keeps avoiding it.
That doesn’t mean you’re lazy.
Familiar-Rip-2031@reddit
Are you saying that the symptoms of burnout are like a stóp from my brain because it wants to reduce the stress?
Playful-Sock3547@reddit
You’re definitely not alone in this. What helped me was lowering the bar stupidly low instead of I’ll code for 3 hours I’d tell myself just open VS Code and do 10 mins. Half the battle is starting. Also doom scrolling absolutely destroys focus, so try keeping your phone in another room while coding… evil little distraction machine 😭
WonderBeast2@reddit
Use Pomodoro app
Aggressive_Many9449@reddit
Put the phone done in another room.
Take breaks.
Pom doro can help wonders.
rustyseapants@reddit
What does this have to do with learning to program? Why do you want to learn programming anyway? Do you work? Did you graduate high school? Clearly you can focus, but you are finding to many ways to make excuses not to.
grtk_brandon@reddit
I just wrote out a super long comment but realized it would probably exacerbate what you're dealing with. I'll summarize, but let me know if you want more info.
Emotional dysregulation amplifies the symptoms we feel when we struggle with executive function. Burning out is a sign of dysregulation because our dumb brains perceive big or hard tasks as threats and prompts our nervous system to kick into overdrive.
Mindlessly scrolling and day dreaming are signs that you're in fight/flight/freeze mode, so you want to do things that will help calm your nervous system, which will put yourself in a better spot to actually do something.
The best way to start is to take steps to calm your nervous system. This can be through breathing techniques, splashing ice-cold water on your face, whatever technique works for you.
I don't know if you know any regulation techniques. Most sound dumb and ineffective, but their purpose is to help train your nervous system to not activate instead of activating by default. You won't feel an immediate "fix" or reset, but you will notice a difference over time.
marrsd@reddit
Do some work every day.
Other suggestions:
Tuomas90@reddit
Focus is something you need to practice.
Meditation helps me most with it. It really teaches you to not be a mindlessly consuming smartphone zombie.
Reading books also helps.
And of course: Staying away from social media as much as possible is extremely important nowadays. They really fry your brain.
josesblima@reddit
Deep Work - Cal Newport
I really recommend it, he's a CS teacher a d researcher. If you are struggling with focus and scrolling, it's literally a book made for you. And if you can't read a book, then you're really cooked.
jasonboom@reddit
I came here to recommend him as well. Cal has this thumb on the exact problem described here. Listen to his podcast, watch his Youtube videos, and learn about deep work. It's helped me immensely.
KingOHearts22@reddit
I had the same problem until I started removing distractions completely while coding. Phone in another room helped a lot.
AdventurousLime309@reddit
Honestly a lot of people hit this point while learning programming because coding requires sustained focus and your brain gets used to constant dopamine from scrolling instead. Then starting feels mentally “heavy” even before you write a single line.
What helped me most was making the barrier ridiculously small. Instead of “I’m going to study for 3 hours,” I’d tell myself to code for 10 minutes or solve one tiny problem. Usually once I started, continuing felt easier. Also keeping the phone away physically mattered way more than I expected.
AffectionateZebra760@reddit
If u are lost on wht u have cover and not then its better to keep a list or like chapter index from somewhere and cut off as u go it will clear vision where u are you
themegainferno@reddit
I try not to overcomplicate things, I have a set time in the morning when I study and work, and after that I just kind of take it easy and do some admin stuff. So really, I am spending about 4 hours a day using my brain for deep work or study. After that I take it easy.
patternrelay@reddit
I’ve been there too. Sometimes breaking your day into tiny focused blocks, like 25–30 minutes, helps. Even logging what you actually do each block can keep your brain from wandering. Little wins stack up and make coding feel less overwhelming.
GreatMinds1234@reddit
Grab an interesting project and start planning it and work on it. Doesn't have to be a project from where your working, just something your interested in. My first C program was calculating ETA so you input the time for current position, the time elapsed till next position, and the program returns the ETA to the next position.
YoshiDzn@reddit
Phones and your awareness of time are the two biggest causes for a loss of focus, imo. This coming from a guy who taught himself into software engineering. I was lucky enough to grow up in the 90s/2000s and I can't overstate how lucky that makes me simply for experiencing life before smartphones. They're mental atrophy if not used wisely
sumplookinggai@reddit
Coffee, energy drinks and Adderall. You'll be ultra focused and be churning out code like no tomorrow.
Any-Cardiologist1641@reddit
Just start slowly with 20-30 minutes of sessions. Try to make the consistency and if somedays you feel not to code then try to revise the things you have done.
BtechNhiKarna@reddit
Keep challenging yourself by solving coding related problems instead of just theoretical study. If you like solving problems you'll end up being focused. If you don't like solving problems then coding isn't for you.
Striking_Rate_7390@reddit
actually i plan my day so everytime i get finish with my college stuff i decide a time slot for my skills like 2 hour for dsa, and 2 hour for development and rest of the day learning new thing (AI & stuff yk)
Spare_Dependent6893@reddit
May be you need to have in mind a bigger picture than just small coding tasks. I do not know what your company is doing but probably something which is useful to other persons and you may start from this and understand better what you are doing help in this bigger picture. Find some motivation and may be ask for covering other tasks which solve other aspects of this big picture.