You have the data so whats the problem?



  • I've been battling this guy at work for 3 months now trying to get data in a logical manner rather than this jumbled, piece of crap. This data is used to render a UI. It should be pretty straight forward. Heres the input type, heres the label to apply to the input and heres the value if one already exists. Simple right?

    Today I'm told that one of the properties of the data used to determine what type of field to render is causing issues with the validation logic.

    Me: "Ok, so then how about we add a new property to the data and the UI can just read that and then the validation logic can use the other property."

    Him: "We are going to send it to you in the data format property."

    Me: "Isn't that field used for telling the UI the format of the data? not the type of field to render? Besides it doesnt make any sense for the UI to read 3 different properties to determine the field type. Also, I have to start to add extra conditionals in the code for these 'special' cases. A few more of these and the code is going to be a nightmare to maintain."

    Him: Its only an if statement, we have to do all this extra stuff.

    Me: I need the data in a logical, consistent manner.

    Needless to say this gets escalated to management. Management listens to what I have to say and says ya that makes sense. Why dont we just have one place to read the data from. Management goes to talk to the other guy, comes back and says, they are not willing to change their design.

    I've since asked for reassignment.... good thing my resume is up to date.



  • Why didn't management TELL him to change the design?



  • @ObiWayneKenobi said:

    Why didn't management TELL him to change the design?

    Because management will always choose the hardest to maintain code between to choices.
    It's a law of nature



  •  There was a scene in Rambo (I forget which one) where he comes back to camp at the end of the movie, goes into the tent of the guy that sold him out with an M60 and goes f*cking mental.

    This is what I want to do when I hear the expression  "Its only an if statement".



  • @ObiWayneKenobi said:

    Why didn't management TELL him to change the design?
     

    Because it's a third party and Him doesn't answer to Management?



  • I'm guilty of bringing our fine WTF-free selves into disripute.... 

    Do I spend a few minutes doing a small UI to setup exceptions for whatever feature, or knock up another If statement and hard code statuses or account numbers? Usually, the latter.

    I have already slapped myself in the face with a wet fish for doing so. I hope that is punishment enough :-)



  • That was the confusingly-named, yet oh so good, Rambo: First Blood Part 2.



  • @blakeyrat said:

    That was the confusingly-named, yet oh so good, Rambo: First Blood Part 2.

    Is that the one where Rambo befriends Osama bin Laden and trains him to become an unstoppable killing machine?



  • Someone has done the ground work. We can look it up.


     



  • @dhromed said:

    Someone has done the ground work. We can look it up.

    I love the fact that they never queered Rambo up by adding sex scenes.

     

    Also, I remember reading a review of Rambo IV by some idiot in an English newspaper.  It was all "whine, whine, 236 people killed, whine".  It was then that I realized that the British are the enemies of joy.



  • @Shondoit said:

    @ObiWayneKenobi said:
    Why didn't management TELL him to change the design?

    Because management will always choose the hardest to maintain code between to choices.
    It's a law of nature

    It's like occams razor:
    If two codebases are equally expensive, the least maintainable will be picked



  • @MeesterTurner said:

    knock up another If statement
    God I hope not.


Log in to reply
 

Looks like your connection to What the Daily WTF? was lost, please wait while we try to reconnect.