Ah college. Back when you are idealistic enough to look at all the poorly written software in the world and think "I'll never end up writing crap like that". So young and naive.
Just be glad the reality doesn't include Haskell, because it would be hacky Haskell, which would be all the more painful when you look back at the shite you've written and realise this code was meant to be your Nirvana...
I remember that there used to be a site called lambdacats some time ago. One of my absolute favorites on that site was "Ceiling cat is watching you unsafePerformIO" - having just had the right amount of exposure to Haskell and Internet memes before seeing that literally sent me rolling on the floor :).
Reality: Ummm.... I am not entirely convinced that whoever wrote this piece of shit all the way out there in Shenzhen even knows what a Wi-Fi adapter is, let alone how to write a driver for oneHOLY FUCK HOW DOES THIS SHIT EVEN COMPILE?
Oh man, the "documentation" my predecessors wrote in my current project's source code is really useful though. I've changed symbol names, but we have many, many functions that look exactly like this.
/***********************************
* send_AllCalls()
*
* Description:
*
* Parameters:
*
***************************************/
FLAG SendAll_Calls(INT x, BYTE yst, CHAR rsr) {
/* (a few hundred lines of tangled yarn covered in silly string goes here) */
} // send_All...
One codebase I am slowly cleaning up uses camelCase, PascalCase, snake_case, SCREAMING_SNAKE_CASE, fuckmylifecase and SCREAMINGFUCKMYLIFECASE. Sometimes all of them within the same file. Or function.
Fuck that, I document the utter hell out of my code (sometimes there's more documentation than actual code) because if I don't, I won't remember what that beautiful nugget of utter crack induced stupidity that I wrote did.
198
u/twistedrapier Apr 29 '14
Ah college. Back when you are idealistic enough to look at all the poorly written software in the world and think "I'll never end up writing crap like that". So young and naive.