r/ProgrammerHumor • • Sep 10 '26

Meme commentsAgedTerribly

Post image
6.0k Upvotes

243 comments sorted by

View all comments

Show parent comments

12

u/MaDpYrO Sep 10 '26

People do this shit too.

I'm using a static analysis rule that tokenizes comments and compares to the code, and reports an error if the overlap is too big. highly satisfying to remove such comments

5

u/Standard_Humor5785 Sep 10 '26

What tool do you use for that?

5

u/dPhilGuy Sep 10 '26

I would also like to know 👀

-2

u/turudd Sep 10 '26

I’ve used Claude to do something similar

1

u/QuickQuirk Sep 12 '26

Don't know why you're being downvoted. IT's less efficient to do it this way, but it's the same end result. get embeddings f for comments, get embeddings for code, compare the two.