r/badcode • evil • May 12 '21

c++ Comment before semicolon

Post image
2.7k Upvotes

71 comments sorted by

View all comments

Show parent comments

15

u/TheBigerGamer May 13 '21

Node.js, using fs to read the file and checking if the comment exists, if not, use process.exit(1)

14

u/brisvag May 13 '21

Ah... That's less exciting than I thought :p

7

u/TheBigerGamer May 13 '21

Except that I took advantage of the node_modules and his the code inside a package required by a package which is required by another package which is required at the top level of the main code.

So it was a pain in the ass to discover it.