Or learn about user experience, design, how humans think and how to build good products.
Please don't get discouraged by the hype. The only people saying AI will replace developers are the people who have something to sell. Engineering is more than just writing code. If anything, AI will increase the level of complexity in the software today, so you'd need engineers to tame that increased complexity.
---
This is from a related thread I wrote in Reddit:
There has never been a more exciting time than now to be a software engineer.
In a nutshell: all the parts I enjoy about software engineering remains challenging, unchanged and open areas of research (distributed systems, algorithms etc). All the grunt work that I hated doing (CRUD work, remembering tailwind classes) have gotten automated very well.
I've played around with AI a lot. I mean A LOT. People who don't code fundamentally lack the insight that writing code is not the only thing that a software engineer does. The way software engineers are coding is changing - but it's changing it in a way that make good ones better, not necessarily bad ones any good.