Avoid distractions - and focus intensely
It's a cliché, but it's a cliché for a reason: if you want to solve challenging problems, you need to focus for an extended period. The fiercest enemy of sustained attention is our devices. They are all connected to the internet and are inexhaustible sources of