A humorous code snippet from The Daily WTF showcasing a C# method named shutdownServer() whose entire body consists of a single recursive call to itself, with no base case. The function is only ever called from within itself, making it an infinite recursion that would cause a stack overflow — the only way it could conceivably 'shut down' a server.
•1m read time• From thedailywtf.com
Sort: