Skip to content
The beaver is a proud and noble animal

The beaver is a proud and noble animal

Notes from a bemused canuck

  • Home
  • About
  • Bookmarks
  • Pictures
  • Resume
  • Wine
  • Random Recipe
  • Toggle search form

Day: January 9, 2013

Best code comments

Posted on January 9, 2013 By admin

Software developers are a whimsy bunch. Sometimes, the long hours and tiredness makes your brain go bye-bye. This is the result:

/**
* For the brave souls who get this far: You are the chosen ones,
* the valiant knights of programming who toil away, without rest,
* fixing our most awful code. To you, true saviors, kings of men,
* I say this: never gonna give you up, never gonna let you down,
* never gonna run around and desert you. Never gonna make you cry,
* never gonna say goodbye. Never gonna tell a lie and hurt you.
*/

// 
// Dear maintainer:
// 
// Once you are done trying to 'optimize' this routine,
// and have realized what a terrible mistake that was,
// please increment the following counter as a warning
// to the next guy:
// 
// total_hours_wasted_here = 42
// 

//When I wrote this, only God and I understood what I was doing
//Now, God only knows

stop(); // Hammertime!

//Dear future me. Please forgive me. 
//I can't even begin to express how sorry I am.  

//private instance variable for storing age
public static int age;

options.BatchSize = 300; //Madness? THIS IS SPARTA!

//I am not sure why this works but it fixes the problem. 

//This code sucks, you know it and I know it.  
//Move on and call me an idiot later.

// I am not responsible of this code.
// They made me write it, against my will.

// drunk, fix later

#define TRUE FALSE //Happy debugging suckers

I’m probably guilty of a few similar ones myself. Makes me giggle :)

uncategorized

Power to the beaver!

Show me the beaver!
January 2013
M T W T F S S
 123456
78910111213
14151617181920
21222324252627
28293031  
« Dec   Feb »

Quote of the day

She'd become a governess. It was one of the few jobs a known lady could do. And she'd taken to it well. She'd sworn that if she did indeed ever find herself dancing on rooftops with chimney sweeps she'd beat herself to death with her own umbrella.
--(Terry Pratchett, Hogfather)

Random Posts

  • Wear a damn mask!
  • Taking the first step
  • Major milestone
  • This is really, really, REALLY getting old
  • Grown-up date day
reading leopard

Tags

bobble the little blue owl boobies brought to you by the fda cats chonk christmas comics computers are evil covid-19 dealing with idiots dilbert dog ducks galleries geek god bless the land of the free holidays house I am Canadian land of cheese and chocolate linked news lolcat london news from the stupid not my dog nsfw pets pictures potd2014 qotd random shit re-member recipes relationship shrill slice of life stress Tao the british way The Peanut things i miss travel video wine work

Archives

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org

Copyright © 2026 The beaver is a proud and noble animal.

Powered by PressBook Premium theme