IMO you really only learn the important bits about architecture, DRY, YAGNI, and so on by fucking up, realizing your code is horrible to edit, and refactoring.
The issue is that AI lets you just vibe like crazy and those pain points aren't felt until they're thousands of times worse.