<ixelp>
chatgpt comments code, before - after - Album on Imgur
<pve>
I feel there could be at least some added value here ;)
<pjb>
Yes.
<beach>
Well, comments that paraphrase the code represent one of the most common mistakes of inexperienced programmers.
<pve>
right, but if you get them "for free"?
<beach>
No, because the problem with such comments is that they tend to get out of sync with the code.
<pjb>
They're not to be commited.
<pjb>
The IDE could have them generated on demand as decorations.
<msavoritias>
Also a human could learn to do them better
<msavoritias>
or do them better to begin with
<pjb>
For programmers who are not fluent with the language or the algorithm, that can be useful.
<pjb>
But I would advise them to try to read the code instead.
<pve>
i think the ai should keep them in sync with the code always
<msavoritias>
so you have the language generator to scan the code always? But will we get better comments then? /thinks
<msavoritias>
when*
<pve>
pjb: I hadn't thought of not committing them, but instead only use them in the IDE.. that sounds interesting.
kevingal has joined #commonlisp
citizenajb has joined #commonlisp
zxcvz has joined #commonlisp
glaucon has quit [Quit: Leaving.]
anticomputer has quit [Remote host closed the connection]
anticomputer has joined #commonlisp
azimut has joined #commonlisp
glaucon has joined #commonlisp
<pve>
pjb: But what you're proposing seems to be something for the future, since currently the ai can make terrible mistakes, so the one who can best verify that the comments it produces are correct is the original author of the code.
aartaka has quit [Ping timeout: 264 seconds]
<pjb>
pve: try M-x vc-annotate RET for example. You can build temporary buffers. They're not code comments, but code explanations. They could be formatted typographically, instead of being syntactically comments.
ns12 has quit [Quit: bye]
ns12 has joined #commonlisp
glaucon has quit [Quit: Leaving.]
ec has quit [Ping timeout: 255 seconds]
avocadoist has quit [Ping timeout: 246 seconds]
ec has joined #commonlisp
Guest63 has quit [Quit: Client closed]
cosimone has joined #commonlisp
epony has quit [Remote host closed the connection]
<bjorkintosh>
so this is basically reverse literate programming isn't it pve?
Inline has quit [Remote host closed the connection]
<bjorkintosh>
write the program first, and then stuff it with comments and then ??? Profit!
<pjb>
bjorkintosh: you could try it with chatgpt: feeding the comments, see how well it can rewrite the code.
<bjorkintosh>
from pseudocode to actual code? that could be intriguing.
<pve>
bjorkintosh: I'm not sure what to call it but I just want to help future pve when he needs to revisit that script I was 100% sure would be a throw-away 6 months from now :)
cage has quit [Quit: rcirc on GNU Emacs 28.2]
<bjorkintosh>
hopefully services like chatpt will become as commonplace and ubiquitous as search engines.
<jackdaniel>
injecting ads in these will be so much more fun than seo right?
gxt__ has quit [Ping timeout: 255 seconds]
rgherdt has quit [Ping timeout: 248 seconds]
gxt__ has joined #commonlisp
amoroso has quit [Quit: Client closed]
<bjorkintosh>
jackdaniel just ruined my rosy gpt future.
luis has quit [Ping timeout: 255 seconds]
Inline has joined #commonlisp
marsia has joined #commonlisp
Inline has quit [Remote host closed the connection]
morganw has joined #commonlisp
tyson2 has joined #commonlisp
azimut has quit [Ping timeout: 255 seconds]
zxcvz has quit [Quit: zxcvz]
azimut has joined #commonlisp
marsia` has joined #commonlisp
marsia has quit [Ping timeout: 255 seconds]
neon has quit [Remote host closed the connection]
neon has joined #commonlisp
Inline has joined #commonlisp
epony has quit [K-Lined]
dcb has joined #commonlisp
Alfr has quit [Remote host closed the connection]
Alfr has joined #commonlisp
morganw has quit [Remote host closed the connection]
poselyqualityles has quit [Ping timeout: 246 seconds]
tyson2 has quit [Remote host closed the connection]