I’ve also found its more difficult to focus when your in the same environment all the time. I have a few recommendations on how I’ve dealt with focus/procrastination in the past.
- Change your environment to promote focus
- Plan achievable, and reasonable goals for a given time frame, or directly schedule them
- Make it harder to get distracted
Change your environment to promote focus.
I used to find changing my environment from where I’d work to another place where I’d focus helped keep me focused at the task at hand. Your mind will automatically transition from “work” or “play” mode to “focus” mode if your in your “focus” environment. This might not be possible if your limited on space, but do what you can. Something as simple as cleaning off your desk, or changing a few things around to make it as much of a “focus” environment helps. Find what works for you, but I do recommend to making “more” changes than less. If your essentially in the same environment all the time, it will be harder to change your mindset. Just try what you can
Plan achievable, and reasonable goals for a given time frame, or directly schedule them
I usually create a list of small and doable items I can tackle at any given time. So even if I can only focus on a given project for a few minutes out of a day, I have already setup myself up a list of things to focus on.
I also sometimes update my calendar with “blocks” of time to “do work”. Not a massive chunk of usually part of an hour so its much more reasonable and doable to spend that time focused at the task at hand, rather than get distracted. (This is very similar to the Pomodoro technique, which also could be used).
Make it harder to get distracted
This is probably the most obvious, and most effective way to keep you from getting distracted while your trying to focus. Eliminate sources of distractions, or make them harder to get into.
So for example, if you have a nice fun game on Steam waiting to play instead of what you want to focus on, log out of Steam, keep it closed so it has to update, and turn on 2FA so its more of a pain to login.
Or if your phone is just calling to be scrolled, put it on the other side of the room.
Or if you just need to see whats on your favorite social media, log out and turn on 2FA.
Some of these measures might work, or might be complete overkill. See what you can follow through on and you will find yourself more “bored” and really looking into what you want to focus on almost by default, as you made all distractions more work to get into.
I want to end with that its fine if your not developing 24/7 non-stop all the time. Most developers don’t do that, its more of a myth than a reality. Its fine to go get distracted, and relax and do other things.
Now if you can’t focus on what you need to focus on to get to your goals, then yes do what you need to do, to get what you want. Just be sure what you want is reasonable, and not some “mythical pro code” that just codes 24/7.
Good luck, keep building keep learning!