I disagree. It's harder today now that everything is online. Most people in wealthier countries, especially younger people, struggle greatly to focus deeply for long periods of time and several of their most addictive distractions are available in the same web browser they use to visit docs, source control, technical chatrooms and Q&A sites.
Back when you did it, it was just you, the books and your dev environment.