DevDisasters

The 'Groundbreaking and Revolutionary' Update

For MegaCorp's end-of-quarter presentation, the vice president of marketing arranged a demo for a feature that he had contracted an outside consultant to add to the new version of the company's customer-facing online application.

The new feature, described as "groundbreaking and revolutionary," had caused quite a stir within the organization. This was mostly because, when implemented, it would allow customers to receive updates sent directly to their cell phones -- and, interestingly enough, it would work with every cell phone carrier in the United States.

Equally impressive was the widely circulated rumor that the VP had paid the consultant around $50,000 for his troubles. Many people at MegaCorp viewed it as an attempt to upstage the technical expertise of the internal engineering group, which included Jared's application development team.

Something Missing
Soon after the demo, Jared's team received the application code to include in the next build. Expecting a large project that would include the contingencies for each possible cellular carrier, the team was shocked to receive only a single C# source file, which acted as a wrapper for the following function:

private object GetEmailBasedOnCarrier()
{
  string text1 = " ";
  switch (this.MobileCarrier)
  {
    case SMS.EnumMobileCarrier.T_Mobile:
      text1 = "tmomail.net";
      goto Label_005B;

    case SMS.EnumMobileCarrier.Virgin_Mobile:
      text1 = "vmobl.com";
      goto Label_005B;

    case SMS.EnumMobileCarrier.Cingular:
      text1 = "cingularme.net";
      goto Label_005B;

    case SMS.EnumMobileCarrier.Sprint:
      text1 = "messaging.sprintpcs.com";
      break;

    case SMS.EnumMobileCarrier.Verizon:
      text1 = "vtext.com";
      goto Label_005B;

    case SMS.EnumMobileCarrier.Nextel:
      text1 = "messaging.nextel.com";
      goto Label_005B;
  }
  Label_005B:
  return (this.PhoneNumber + "@" + text1); 
}

The engineering group was stunned. They collectively wondered: Coding "style" aside, surely this wasn't all of it ... Where was the rest of the application?

About an hour after sending an e-mail to the VP of marketing, Jared and the rest of the engineering group received a reply from the hired gun.

Whoops! Wrong Version
Indeed, the consultant had sent an older, inferior version that was neither groundbreaking nor revolutionary. The updated version, which was attached, was far superior, utilizing direct "IP Calls" to send the data and "not using e-mails" anymore.

Curious, Jared opened the new code, but felt a little let down after seeing that using an "IP Call" really meant replacing the server domain name of the destination message with its IP address and keeping everything else the same.

After closing the source file, Jared did the only thing he could do: He checked the code into source control and waited for the next round of groundbreaking and revolutionary changes.

About the Author

Mark Bowytz is a contributor to the popular Web site The Daily WTF. He has more than a decade of IT experience and is currently a systems analyst for PPG Industries.

comments powered by Disqus

Featured

  • Cloud-Focused .NET Aspire 9.1 Released

    Along with .NET 10 Preview 1, Microsoft released.NET Aspire 9.1, the latest update to its opinionated, cloud-ready stack for building resilient, observable, and configurable cloud-native applications with .NET.

  • Microsoft Ships First .NET 10 Preview

    Microsoft shipped .NET 10 Preview 1, introducing a raft of improvements and fixes across performance, libraries, and the developer experience.

  • C# Dev Kit Previews .NET Aspire Orchestration

    Microsoft's dev team has been busy updating the C# Dev Kit, a Visual Studio Code extension that enhances the C# development experience by providing tools for managing, debugging, and editing C# projects.

  • Hands On: New VS Code Insiders Build Creates Web Page from Image in Seconds

    New Vision support with GitHub Copilot in the latest Visual Studio Code Insiders build takes a user-supplied mockup image and creates a web page from it in seconds, handling all the HTML and CSS.

  • Naive Bayes Regression Using C#

    Dr. James McCaffrey from Microsoft Research presents a complete end-to-end demonstration of the naive Bayes regression technique, where the goal is to predict a single numeric value. Compared to other machine learning regression techniques, naive Bayes regression is usually less accurate, but is simple, easy to implement and customize, works on both large and small datasets, is highly interpretable, and doesn't require tuning any hyperparameters.

Subscribe on YouTube

Upcoming Training Events