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.
In Firefox, you can set browser.tabs.tabMinWidth to a large number in about:config, so that fewer open tabs are visible at once, which may reduce distractions.
Or (slightly more complicated) you can keep a fixed number of tabs visible irrespective of window width, by using userChrome.css to apply a style like `tab:not([pinned=true]) {min-width: calc((100vw - 12em) / 3) !important;}`
Reading the manual used to be part of an IT job. And for web devs, having a local sandbox is invaluable.
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.
I’d like to do this but wouldn’t know how to make it routine (e.g. lining up audiobooks to read, loading them on a phone).
I’d like to see if I can steal your “workflow” ;)
You have to eat and you have to use the internet.
What's the solution to not doing it to your own detriment?
The best way to deal with the 'internet' is to have a seperate device - call it an "internet terminal" - connected to the internet - preferably in another room, or completely opposite side of the building.
And thus when a necessity to access a particular piece of information arises, you specifically get up and GO TO the 'terminal' to do that specific information retrieval action.
Sort of like going to a library to pick up a particular book.
Kind of like RMS does when he asks people to email/print him out webpages.
Certianly harder to pull of for people who do web-development related thigns.