Random value

 Nov 20th, 2011 

Do you follow xkcd? It yes, then you mostly sure know the Random Number episode:

Image credits: http://xkcd.com/221/

I believe it is very funny and it actually happened, a few days ago, to me. Here is my “random” code that was caught in a code review by the eager eye of a colleague:

//Pass random language. It doesn't really matter
string assemblyPath = ProxyHelper.GenerateAssembly(ProxyLanguage.CS);

And the code review comment: “Although it is hard coded to CS.  :)”

  • Razvan Martian

    Hello there,

    I was just wandering if u changed your yahoo messenger id because I wan’t to talk to you because I’ve been in the US for the last 3 months also :P