2 ms·
Makes more sense to just not commit generated code without understanding it first. As has been said many times, writing the code was never the hard part. Softwa
by sublinear 3y ago
Makes more sense to just not commit generated code without understanding it first. As has been said many times, writing the code was never the hard part. Software devs are still responsible for the integrity of implementation details.
- lvncelot 3y agoYeah, I like the sentiment here, but I wouldn't pass review on a piece of code that had the "@generated" tag on it to absolve either the author or me as the reviewer of actually understanding what it does. At the end of the day, whether you copy-pasted the code from StackOverflow, let Copilot generate it or M-X-Butterfly'd it in yourself doesn't make a difference as you still need to understand thoroughly what it does.
- klhutchins 3y agoHalf joking but I try to make sure to ask the AI to "explain line 5 - 20 as if I am new to coding" and throw that in a comment
- sublinear 3y agoYup. A bad comment can be worse for maintenance than bad code without any comments.