This is not joke. This is the real code, I got from one of offshore companies, I working with

I, probably, print it and put in my office…

if( (i==j).ToString().Length == 4) { …DoSomething();…}
else if( (i==j).ToString().Length == 5) { .. DoSomethingElese();… }
else { throw new NotImplementedException(); }

Be Sociable, Share!

⟨ , , ,  ⟩

12 Responses to “This is not joke. This is the real code, I got from one of offshore companies, I working with”

  1. Max Says:

    tamir:

    or he could write:

    if (i==j)

    {

    …Do Something…

    } else {

    …Do Something…

    }

    come on

  2. Tamir Khason Says:

    Mr. J – :) Yes, he’ll probably should write something like (i==j).ToString().ToUpper() == "TRUE" & (i==j).ToString().ToLower() == "true" && … :)

  3. Mr.J Says:

    I don’t understad what you are talking about. I think it is perfectly readable ;)

    Probebaly another example of Job Security !?

  4. Hong Le Says:

    =))

  5. Felix Says:

    Incredible.

    This is a text book example of WTF.

  6. Nir Kovalio Says:

    I’m speechless

  7. עומר ון קלוטן Says:

    Wow.

  8. Tamir Khason Says:

    They need only Hindi :)

  9. ekampf Says:

    Hey, that code is not globalizeable! ;)

  10. Tamir Khason Says:

    Chris, good idea. Did it

  11. Chris Says:

    You should submit that to thedailywtf.com!

  12. Yosi Taguri Says:

    Take them to the nearest PIAZZA and ****t them :)

Leave a Reply

Recommended

 


Sponsor


Partners

WPF Disciples
Dreamhost
Code Project
Switched to Better Place

Together