I loved programming, but what I really cared about was what it produced, not the code itself. That's not the same as not caring about the craft. I'm proud of how I solved some problems, but none of my code from the last 15 years will matter in 30. Code doesn't have longevity. The problems you solved do
Exactly how I see it as well. I love writing code, because I love what I can do with it. I've spent the last 15 years limited by my ability to write code faster, while mostly already knowing what I want to write in order to achieve what I want to achieve. AI has made this so much better. I still care very much about the vision, but now I don't have to destroy my wrists to achieve it.
True, you can make good money as a COBOL programmer doing maintenance work. But I'm not sure anyone could pay me enough to live through that sort of misery. (Which is precisely why COBOL programmers do bring in the big bucks).
And I don't imagine there are a whole lot of new project starts using COBOL.
Code is like a Lego build. The bricks last: conditionals, loops, the languages themselves. But someone will pull your build apart and put it back together differently, and nobody will remember how you did it. Unless your algorithm is truly extraordinary, there's no legacy.