Earlier in my career I went on all sorts of productivity boosting courses and read loads of books...in the end only one thing has stuck and that's the 2 minute rule from David Allen.
In short, if a tasks hits you and you can get it done in 2mins or less just do it there and then.
Explained in his voice here for those interested - https://www.youtube.com/watch?v=5_-YOdwUDsg&t=37s