In every activity that requires full concentration, I have a problem, distractions.
Now that I've started coding, I have to face a lot of distract...
For further actions, you may consider blocking this person and/or reporting abuse
I haven't done this in a while, but the Pomodoro technique works really well for me when I need to maintain focus or keep at a task.
Basically, it works like this:
Like you said, it's important to get out of your comfort zone. If you work from home a lot, it's easy to want to stay at home where all your comforts and routines are. I've found that it's super helpful to make a specific space in your home that is meant for work. This could be an entire room turned into an office, or a table you always sit at. As a fellow gamer, I made it a point to not sit at the table where my desktop is, although if your laptop is the same one you use for gaming and coding, that'll be another challenge.
That said, I still focus a lot better when I get into the office, so I try to do that as often as I can. Also, I think finding the best working hours for yourself are important, although that's hard if you have a job that has set hours. I tend to be more focused in the mornings, but I'm struggling to wake up early enough. :( Habits are hard to break, but having a goal in mind and not wanting to feel guilty about how I spend my time gives me motivation.
Anyway, that's what I do, hopefully it's helpful for you!
Certainly there will be distractions anywhere you go. I feel the same way as well, be it friends who constantly message me, or that lingering thought about that next episode on Netflix. However, I do find that if I force myself to beat the distraction for the first 30 minutes into my work, I will automatically be focused throughout. It's like getting a car over the first uphill and letting it roll down on its own afterwards. Maybe that's how it works for you as well when you are listening to Hamilton.
I also remove any social media/distracting app icons on the desktop of my phone (or make it very troublesome to access) so that I won't even bother lol
My phone is always on silent and I even disabled vibration. Either on Windows or Linux, I use virtual desktops to manage my projects. I have one virtual desktop per project (and one for “stuff“). Usually I have multiple browser windows open, regarding to a certain issue about the project. My problem is often the opposite: How do I get myself to not forget to drink/eat/pee while I‘m programming?
I've been working remotely for about 4 years now and getting routines has been important for me to keep focus. At start I had a harder time to focus on work but starting the day by taking a shower, making the bed and clearing the dishes has helped me a lot. I feel that these small distractions can make frustrations over nothing if just left as is.
I can't relate to having issues with Netflix or similar as I keep one computer for personal and one for professional. There was a certain time I was bit hooked on random browsing on the phone. I put the phone away in another room and only let myself only use it during the lunch.
There are a number of tools you can use to block access to sites that you find distracting (I use StayFocusd, a Chrome extension).
You can also track how long you send on productive/unproductive activities with Rescue Time.
Finally, one thing I do from time to time is take the laptop to a different location (library, coffee shop) where there's Internet access. I don't bring a charger so I have exactly "one battery" to get my work done. No time for anything else.
This book really helped me, and I intend to use it to influence the culture wherever I end up next: The One Thing
Another book recommendation in the same line would be "Hyperfocus: How to Be More Productive in a World of Distraction" by Chris Bailey. I listened to the audiobook version; really awesome practical advices in there!
Sorry about that broken link. 😉 I fixed it.
Beyond hacks to change your local mental state (e.g. music and other things people suggested), I find big picture understanding is very helpful. Why am I doing this? How does this connect to my project goals, my organization's goals, and most importantly my goals? Staying focused isn't particularly useful if you're working on wrong thing, and often working on the right thing can compensate for lack of focus because it's so much more productive.
(Long version: codewithoutrules.com/2018/05/20/st...)
Hi, Brenda. The schedules have never worked for me. Instead, I set small goals and don't stop until I complete them.
Btw, I also played WoW many years ago, it's very addictive.
What does the trick for me in most situations is noise canceling headphones and this soundtrack (youtu.be/CMnIsnINckU). Now I'm very sceptical of the supposed science behind the binaural waves thing, but for me it provides a pleasant backdrop that will actually fade to the background unlike other types of music which always pull me back out of my work with some chord progression or cadence.
Also when it's over after 1 1/2 hours it's always a good time to take a break.
I agree that discipline is what it mostly comes down to. You've got to create a set of rules and force your brain to follow them. It is simple, but also very painful in the beginning. 😓