It may be an age/experience thing. I spent many years coding in my free time, worked on all parts of the stack from boot loaders to single page applications. The magic is kind of gone for me now and I prefer to try to expand my physics and math skills which capture how I used to feel about code.
Ok but you did enjoy coding on your breaks in the past right? So the advice of “don’t code on your break” is more like “do something you enjoy on your break.” Or maybe “beware of contributing to burnout on your break.”
Yeah I would agree that the magic is kinda fading for me too, but there's always something new in our field. Someone coming up with a new project, a new language, a new idea, something... I don't think it'll ever be completely gone for me!