I've never had AI create working code anyway.
But it will generally point me in the right direction. It's useful for:
- Helping get your train of thought back in the right direction
- Automating what would be a lot of boilerplate/repetitive coding. Just beware you will still need to check it over.
You need to be skilled to spot the mistakes it will definitely make.
hendrik@palaver.p3x.de 4 weeks ago
Our computer science professor in some programming course at university told us we were not supposed to take advice from the internet or answers from Stack Overflow for half a year... Until we learned the ropes. And could asses for ourselves what's right and what is wrong.
I think he was right. There is lots of misinformation out there that isn't a proper design pattern. And with copy-pasting stuff, you don't necessarily learn anything. Whereas learning with some method is efficient and works.
AceBonobo@lemmy.world 4 weeks ago
The real learning comes from debugging the garbage code you copied from stack overflow
hendrik@palaver.p3x.de 4 weeks ago
I mean it also contains great stuff. Niche workarounds, ways to do something more efficiently than some standard library function does.
You just need a means of telling apart the good and the bad. Because there's also people smashing their forehead on the keyboard until it happens to be something that compiles. And people repeating urban legends and outdated info. You somehow need background knowledge to tell it apart.
peopleproblems@lemmy.world 4 weeks ago
Debugging and being able to interpret documentation when it exists.
But good lord, the amount of programmers I work with that never use an IDE debugger is unreal. I get that you don’t have to, but Jesus Christ, if yout not getting an expected result, it’s way fucking faster to step through the code and see where the data changes then to slap logging into every line and attempt to read the output.
wewbull@feddit.uk 4 weeks ago
Debugging only teaches logic. Not structure. No amount cut, paste, debug with teach you the factory pattern.