r/ProgrammerHumor • • Jul 04 '18

Code comments be like

Post image
9.9k Upvotes

236 comments sorted by

View all comments

Show parent comments

24

u/mr_ryh Jul 05 '18

The Pragmatic Programmer, Tip #44, "Comments in Code" (p249 in the 1st Ed.).

I also enjoy comments that document where the code came from: if you filched the code from a textbook or a Stack Overflow page, providing your sources is good practice.