3 ms·
Actually I am pretty careful about adding stackoverflow URLs to comments, not out of any sense of obligation but so I know where to look if I need further insig
by CamperBob2 3y ago
Actually I am pretty careful about adding stackoverflow URLs to comments, not out of any sense of obligation but so I know where to look if I need further insight when debugging or reusing the code later. This habit has paid off more than once.
For LLM-generated code, I don't see much value in documenting where it came from, especially since it will be very exhaustively tested (and likely rewritten entirely) before it gets checked in, to an even greater extent than excerpts snagged from Stack Overflow. Also, a given prompt will rarely return exactly the same code twice, certainly not years later when I need to look back at it. It will make more sense to create a new query if/when that happens.