The params and return is a good thing, but the comments just describe exactly, programatically, but in words what the function does (this we already do reading the code), that's not how comments should be written, comments mean to be more like what is the purpose of the function and how it is integrate with the whole code, notes and etc... At least for me.
Nah, it's the worst thing for someone learning because it's routinely wrong on anything that goes beyond trivial
So it feels like it has to be correct because it's correct on trivial things, but on things you actually can't understand it may easily mislead you, and you still have to check everything yourself
It's an AI, not a deterministic program, so being wrong and generating nonsense is normal
Maybe deterministic isn't exactly the right word. I meant in the sense that the same element in different contexts will give different results. Say, just because it interpreted this loop here correctly doesn't mean it will interpret that similar loop correctly as well, we can't extrapolate successes logically
263
u/[deleted] Jan 13 '22
The params and return is a good thing, but the comments just describe exactly, programatically, but in words what the function does (this we already do reading the code), that's not how comments should be written, comments mean to be more like what is the purpose of the function and how it is integrate with the whole code, notes and etc... At least for me.