Chunk your coding time into distraction-free sessions of at least 30 minutes. 2 hour sessions are the best.
If you only take one piece of advice from this article, it should be Stop multitasking. High productive software development can only achieve through quality time between you and your code. Any further multitasking is just an interruption which always translates into a lesser quality output. Multitasking is actually evil! There are many steps you can take to avoid multitasking:
- Turn off your email client / disable all notifications for the specific time window.
- Priorities your tasks.
- Tackle your biggest task first and then only move to smaller tasks.
- Have a cleaned workplace.
- Be consciously available and mindful of what you are doing.
- Keep your internal monologue continue while writing code.
- Streamline everything, one task at a time.
- Voicemail one of the best innovations, use it more often.
- Wear a headphone during coding sessions even if you are not listening to anything.