Comment Coding Basics 101 (Score 1) 151
This is not an AI problem (I mean, it is), it's a user problem.
I use AI to code a lot. Like, a crazy amount. I am by no means a professional software developer, but have been coding for close to 30 years. One thing I never do is work on production code - that is what dev environments are for, I always have backups - I'm too lazy to learn Git or other code repo tools, so I just work off static files and keep my own versions in folders.
I never, ever let AI touch active code or files without having a backup in place. Anyone who has ever used AI for code development knows that AI does stupid shit, it doesn't listen, it rewrites entire files when you asked it to write just one function, and does other random stuff.
The human component of AI coding needs to focus heavily on QA. Treat AI like a junior programmer and scrutinize it's code like your career depends on it.