The Function Name Hall of Shame: Round Six



  1. // I prefer shaken, not bubble sorted
    const ABC_ERR_CD AbcParser::Gen007xRecords(…);
  2. // You’re more right than you know – this whole project is loco
    const ABC_ERR_CD AbcParser::AppendLocoSubjects(…);
  3. // Now, the implementation does check to ensure all digits are
    // greater than zero…but still, between the questionable grammar and the
    // name itself, that’s truly legendary stuff
    bool AbcParser::IsAllDigit(int);
  4. // Just get a Brazilian at the salon and get it over with
    const string TrimSpillover(string);
  5. // Sometimes the jokes write themselves
    bool AbcParser::DropDump(fileHandle, string);

Peter Bolton is the author of Blowing the Bridge: A Software Story and has also been known to be a grumpy bastard on occasion.

The Function Name Hall of Shame: Round Five



  1. // Nothing is more arousing than numbers inside function names
    bool IfBefore01011900ModifyIt(string& dateString);
  2. // Could we make this functionality any less generic?
    string SubtractOneDayFromDate(string& sDate);
  3. // Looks like it’s time to call Mulder and Scully
    void EncodeFileX2();
  4. // Let me tell you about this new member function of the String class
    // called ‘replace’…
    int ReplaceCharacters(targetString, charExisting, charReplacement);
  5. // Good thing Mulder and Scully are here. Now arrest that man for crimes
    // against humanity.
    int CreateTransactionSeqForIllegalProcedure(…);

Peter Bolton is the author of Blowing the Bridge: A Software Story and has also been known to be a grumpy bastard on occasion.

Valentine’s Day for Developers



Get that something special for the beloved developer in your life.

  1. For your C# sweetheart: A box of delicious “nugets”. (Important note: any groaning will be interpreted as laughter.)
  2. For your C++ sweetheart: An empty box of condoms, because there’s nothing better than a lack of protection.
  3. For your Java sweetheart: A box of inch-thick condoms, because there’s nothing better than a ridiculous abundance of protection.
  4. For your Swift sweetheart: A set of roleplaying costumes for bedroom fun, including a set of emoticon masks and a dildo in the shape of an upside-down table.
  5. For your PHP sweetheart: A 12-hour package of psychological counseling, in order to deal with the constant ridicule from non-PHP developers.

Peter Bolton is the author of Blowing the Bridge: A Software Story and has also been known to be a grumpy bastard on occasion.

The Function Name Hall of Shame: Round Four



  1. // Not for any other reason except it’s just a fun thing to do
    const bool OpenReadClose();
  2. // I think that you’re only using ‘_’ to make yourself look more important
    // in the eyes of the kernel
    char* Read_Whole_File(name);
  3. // Simple and to the point
    void DoEverything();
  4. // I’m gonna go out on a limb here…but you probably don’t need
    // a whole function dedicated to that
    int RemoveAllCarriageReturns(line);
  5. // Pack your bags…we’re going to Hollywood!
    void Producer_Offer(…);

Peter Bolton is the author of Blowing the Bridge: A Software Story and has also been known to be a grumpy bastard on occasion.

The Function Name Hall of Shame: Round Three



The previous lists can be found here and here.

  1. // Apparently we have given up on using enums or arrays
    // or other products of common sense (On a side note…sOriginPoint?!?)
    const string DecodeBoolean(const bool bBoolean)
    {
    string sOriginPoint = (bBoolean) ? “TRUE” : “FALSE”;
    return sOriginPoint;
    }
  2. // Whatever excuse is made to justify calling it, the answer is still “no”
    bool EnsureFunctionIsCalled()
    {
    bool bSuccess = true;
    return bSuccess;
    }
  3. // I’m lost now, and I need GPS
    void LoadPreLoadMapForPostUnloadProcessStep(…)
  4. // Well, yeah, it would only be one of them…but that still doesn’t explain what
    // a return value of ‘True’ means…

    const bool RealErrorOrNotError(string& sMessage)
  5. // Personally, I like my programming to be a little more decisive
    void SetIsHashableIsMayBeHashable(string& sIsHashable)

Peter Bolton is the author of Blowing the Bridge: A Software Story and has also been known to be a grumpy bastard on occasion.

The Function Name Hall of Shame: Round Two



The previous list can be found here:

  1. NOTE: I don’t think this means what he thinks this means…
    private bool EvaluateSimplePhrase(a, b, c, d, e, f, g)
  2. NOTE: Is that possible outside of a trailer park?
    public bool AreChildrenParents(…)
  3. NOTE: Shouldn’t that return more than just a bool?
    public bool GetTransactionSeqAndInitialJobCharacteristics(…)
  4. NOTE: Sounds illegal, if you ask me
    private int InsertChildrenIntoParents()
  5. NOTE: You’re right…an informative message isn’t necessary. Just the ObjectID will do.
    public void LogObjectID(objectID)

Peter Bolton is the author of Blowing the Bridge: A Software Story and has also been known to be a grumpy bastard on occasion.

Bad Programmer Pickup Lines: Menage a Trois



The previous lists are found here and here.

  1. I had planned to go home and create a whole new mod of Minecraft…but after checking you out, I’m only in the mood to craft something inside your mine.
  2. From what I can see, there’s no need to cast you to anything else, honey. You’re just my type.
  3. I wouldn’t mind calling the peek method on that stack.
  4. Girl, the way that you move those hips…all I can think about is where I’d like to redirect my streams.
  5. I don’t mind a girl who commits faults from time to time. In fact, you can dump your core on my lap anyday.
  6. They could create a whole new font based on that body…and they’d call it Heavenica.
  7. I wish that I had access to your database schema; you’re wearing a few things that I’d like to drop.
  8. Just so you know, I’m pretty good with my hands, and I like to help when I can. Mind if I open up that case of yours and flip your dip switch for you?
  9. How about you and I play a game of Scrum poker? In this case, though, it’s strip Scrum poker…and we’re estimating how long before we’re both naked.
  10. I’m sorry, but I couldn’t stop admiring your lady lumps. They’re so perfect that they even make the “round()” method jealous.
  11. So which algorithm should we use first: merge sort…or insertion sort?

Peter Bolton is the author of Blowing the Bridge: A Software Story and has also been known to be a grumpy bastard on occasion.

Leaked: Original Ending to ‘Blackhat’ Movie



Here, I present a leaked copy of the upcoming Blackhat movie (i.e., Hackers 2: The Next Crappy Movie about Hackers). Please don’t ask me where I got it. It’s a secret.

—–

EXT. BUILDING TOP – DUSK

[ On the top of a condo highrise on the Tsing Lung Tau Ferry Pier in Hong Kong, a masked man screams in agony with an arrow in his leg. Our hunky, hacker hero Nicholas Hathaway slowly approaches him with the empty crossbow that has wounded our villain. ]

NICHOLAS: You didn’t think that you would get away with it, did you? I was able to reverse-engineer your code, and I found the coordinates for your secret hideout buried in the comments. So, just tell me…why? I hacked for fun and mischief…where things are a little grey! But you, with your nuclear reactor shutdown and siphoning people’s money…that’s definitely much darker than anything I’ve done. Now I see the ‘white’, and I’ll never become anything like you…black hat!

MASKED VILLAIN: Ha ha ha! You’re just like me, Nicholas…you just don’t have the guts to face it! I issued the flag on the compiler, to put those comments in the binary executable…on purpose! Because I wanted you to find me…to find out who I really am…

[ The villain removes his mask to show his true identity. ]

NICHOLAS: Mark Zuckerberg!

ZUCKERBERG: That’s right! It’s me, Mark Zuckerberg. After the “Social Network” and how it mocked me, I became bitter at the world, despite my billions of dollars. I used my elite hacker skills for evil, like exposing Jennifer Lawrence’s breasts for the world to see. And to rob people of money and to make nuclear reactors fail…all in order to make the world pay for how they’ve treated me!

NICHOLAS: Of course…only you would know how to inject SQL into a database and give it a virus…

[ Mark Zuckerberg hobbles to his feet, so that he stands before Nicholas. ]

ZUCKERBERG: Exactly! Clearly, though, you won’t join me…so, in that case, you must die!

[ Mark Zuckerberg extracts a hidden gun from his shirt, and he points it maniacally at Nicholas. Bracing for the bullet, Nicholas shields himself with his arms just as the gun explodes in Zuckerberg’s hands. The explosion from his hands causes Zuckerberg to be propelled over the edge of the building, and Zuckerberg falls stories to his death on the street below. ]

FEMALE VOICE: I thought that you could use a little help.

[ Nicholas turns around to face his Asian love interest. ]

NICHOLAS: How did you…?

HOT ASIAN CHICK: You’re not the only one with elite hacking skills. I hacked into the biometric unit that controls access to the gun, and then I used a stack overflow to cause the gun’s bullet to implode upon ignition.

NICHOLAS: Hey, maybe girls can code, too.

HOT ASIAN CHICK: I’ll teach you what other things girls can do.

[ She and Nicholas Hathaway embrace and just begin to kiss when a maintenance man walks onto the roof from the stairwell. They turn to face him after being interrupted, and showing a face of embarrassment, he tries to leave them alone. He cannot, though, since the door to the stairwell is now locked and will not budge. He pats his pockets for the access card, and he shakes his head in frustration.]

MAINTENANCE MAN: Oh, no, I forgot my access card! Hey…do either of you know anything about hacking a door?

[ They turn to face each other and laugh. ]

THE END

Peter Bolton is the author of Blowing the Bridge: A Software Story and has also been known to be a grumpy bastard on occasion.