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.  :)”