DEV Community

Discussion on: What's the funniest comment you've encountered in code?

Collapse
 
buphmin profile image
buphmin

So someone wrote a function called "rm_rf" which recursively went through and deleted all of the directories and files. The comment said something like "hmm, now why didnt I just use exec('rm -rf')" then a day later in another commit "I dunno but I probably shouldn't change it, who knows what might happen"

The other one (I know 2 for 1 special) was just "oh boy" and nothing else.

Collapse
 
yashints profile image
Yaser Adel Mehraban

Classic