I see that too. In the 90s a lot of developers were self taught and were self motivated to solve problems. With recent hires I see a lot of people who probably did CS for a good career but don’t really care about the craft. If something doesn’t work exactly as it should they just give up.
I am not resentful. It's a pretty normal thing when a profession gets more professional and is considered highly paid. It attracts people who aren't naturally attracted to the job. From observation a lot of doctors aren't that enthusiastic about their profession either but do it for the reputation and money.
There is definitely a division between people who are attracted to the profession because they have an intrinsic interest and those looking for extrinsic rewards.
I bet asking what age someone started programming is as good an interview question as any other.
I'd fail that too. I didn't have the money to get a computer. But I am mechanical engineer and in my first job I quickly was the guy who wrote macros for our CAD system instead of doing designs with it. I never liked using the CAD system but I loved writing code for it. That would indicate a natural attraction to writing code.
Most of the code we are writing now will be garbage in 20 years too. Guaranteed. You do your best with the tools and knowledge you have at the moment. That's all you can do.