Marathons. So if I'm not over-tired and I've had my morning coffee, and a good night's sleep, I will do a marathon session of 4-5 hours of solid work, no interruptions apart from social media feeds where I need to know what's going on in the world so I have context for what I'm working on. (If Github's down for example, I need to know that).
Sprints. These are smaller tasks that take 5-10 minutes, but I treat them as micro-habits that compound over time, or in other words; many-littles-make-a-lot and the desired outcome reveals itself over longer periods of time.
It's good to know which mode you're in, because with ADHD, you need to pre-allocate time-frames to the important things and know when you're in sprint-mode vs marathon-mode. Some people mix them up and end up doing 4-5 hours on something that should be a 5-10 min sprint, and needs to be incrementally improved on over a long duration (we're talking months or years of progress here).