Re:Generating Code Without Generating Technical Debt?
by sublinear on Friday November 10, 2023 @04:07PM
(#38224543)
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.
[ Parent
| on HN ]
Re:Generating Code Without Generating Technical Debt?
by lvncelot on Friday November 10, 2023 @04:14PM
(#38224631)
Yeah, 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.
Re:Generating Code Without Generating Technical Debt?
by klhutchins on Friday November 10, 2023 @04:57PM
(#38225076)
Half 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