"I'm trying to figure out some code and I don't even know where to start with the WTFs!" writes Rachel. "The design has introduced me to a new level of terrible. The naming convention is inconsistent, and the WTFs just keep coming..."

"Here's one of my favorite snips of code. Apparently names are all numeric, and everyone has to be White, Hispanic, Asian, or Indian."

"Actually, scratch Indian."

public bool set_consumer_info(double firstname, double lastname, double ssn, 
                              double white, double hispanic, double asian, double indian) {
    this.consumer = new double[6];
    this.consumer[0] = firstname;
    this.consumer[1] = lastname;
    this.consumer[2] = ssn;
    this.consumer[3] = white;
    this.consumer[4] = hispanic;
    this.consumer[5] = asian;
            
    return true;
}

"It gets better though when you see how it's called."

// ds is a custom class helpfully called "DataSet"
ds.set_consumer_info(
    Convert.ToDouble(st.ConsumerName/st.NumberOfAccounts), 
    Convert.ToDouble(st.CosignerName/st.NumberOfAccounts), 
    Convert.ToDouble(st.Socials/st.NumberOfAccounts), 
    1,0,0,0);
[Advertisement] BuildMaster allows you to create a self-service release management platform that allows different teams to manage their applications. Explore how!