Jun30

Method Names of Excellence!

 Categories: WTF, Development, Intergen

Just had a great giggle and a shudder after my workmate Henrik showed me some code that is the latest check-in for a project, and I assume running on a site out there.

   1: protected void Page_Load(object sender, EventArgs e)
   2: {
   3:     if (Request.QueryString["QueryStringKeyOfAwesomeness"] != null)
   4:     {
   5:         ThisWillBeEmbarrassingOneDay();
   6:     }
   7: }

Inside the same class we have methods with such glorious names as:

  • DoSomeMoreTrippyStuffOggaOgga()
  • DoSomeCrazyAssDataUpdatesV2Awesome()
  • DoJDMagicalSuperUpgradeWOotWOt()

Somewhat disturbing that the ThisWillBeEmbarrassingOneDay() can still be run on the live site if you know the magical key, but those method names, wow!

What is the craziest method name that you have encountered?

Tags:

 

Links to this post

Enterprise Collaboration and Virtual Teams Report (March 7, 2008)

Trackback from Effective Collaboration on 07 Mar 2008 05:07

CKS:EBE Resources

Trackback from thekid.me.uk on 12 Mar 2008 11:58

Comments

On 30 Jun 2008 09:45, James Newton-King said:

I have seen an open source project where the method names described every single bit of logic that happened inside them. e.g. SplitLineIntoWordsAndMakeFirstLetterUppercaseAndReverseOrder Now imagine that for every single method. Then imagine how ugly the code inside the methods are from calling each other!

On 30 Jun 2008 11:15, John-Daniel Trask said:

That sort of effort deserves the Watson award! - An impartial observer

On 21 Sep 2008 11:54, Clement DeLarge said:

Funny... ;) Craziest method name I've ever run across is... DumbBossWantedHisCodeHere(string insertFootInBottom) with an internal comment on the method that said... // This $h!t will never run unless. :P if (insertFootInBottom == "") Throw New IdioticException() And there was an IdioticException class. Guess they didn't believe in code reviews. ;)

Leave a comment