"my code works...but no idea how"
that's because you went:
code → fix → fix → fix....99 times → works
instead of:
plan → fix plan → code → fix code → works
stop it...plsssss
fix your thinking before fixing code
always
A mistake I see developers making:
Over-relying on AI for complex problem solving.
Remember that AI struggles to maintain the bigger picture.
It does way better with smaller, well-defined tasks.