Ask HN: What's the worst piece of code you've ever seen? Posted by dluan on Sunday January 31, 2016 @01:26AM from the ask-hn dept. ( 3 comments | 3 points | on HN )
One of the top posts, the so-called Bogosort, made me laugh pretty hard, even though it's probably intentionally bad: https://imgur.com/kUizTX1
Dos: "attrib," Will strip all attributes from all files in a directory. Very easy to run accidentally.
Has a partner though "dir," Show all files even hidden. Very berry handy.