This. The standard worker smarter vs work harder dilemma.
I did the whole groove thing when I was in my twenties and just starting out. As I gained experience, it became obvious that the groove is far from ideal. I produce better code when I take frequent short breaks. Get up, stretch, take a quick walk, give your brain time to process everything you've been doing. Then you're in the right mindset to see what's what. So I don't work late, especially on Fridays. If I'm in the middle of a tricky bit and 5:00 hits, I'm gone. By the time Monday rolls around, I know how to proceed because the problem has been rolling around my subconscious for 2.5 days.
I see a few coworkers who work long hours in the groove, and they always seem to be rewriting four hours of work for the third time because they get into the groove, churn it out and a day later realize it isn't gonna work long-term. Meanwhile, if they'd just stopped an hour in and pinged one of their colleagues for a 5-minute sanity check they'd have realized it sooner and saved their evening.