News for hackers. Stuff that matters.
Re:Automatic Programming by hjoutfbkfd on Saturday January 31, 2026 @06:33AM (#46835663)
when you inplement a quick sort, do you credit Hoare in the comments?
Re:Automatic Programming by jakkos on Saturday January 31, 2026 @06:50AM (#46835769)
No, in the same way that I wouldn't cite Euler every time I used one of his theorems - because it's so well known that its history is well documented in countless places.

However, if I was using a more recent/niche/unknown theorem, it would absolutely be considered bad practice not to cite where I got it from.

Re:Automatic Programming by OJFord on Saturday January 31, 2026 @07:10AM (#46835921)
If I was implementing any known (named) algorithm intentionally I think I would absolutely say so in a comment (`// here we use quick sort to...` and maybe why it's the choice) and then it's easy for someone to look up and see it's due to Hoare or whoever on Wikipedia etc.
Re:Automatic Programming by antirez on Saturday January 31, 2026 @06:37AM (#46835687)
Now many will downvote you because this is an algorithm and not some code. But the reality is that programming is in large part built looking at somebody else code / techniques, internalizing them, and reproducing them again with changes. So actually it works like that for code as well.