Category Archives: Coding fun

If at first you don’t succeed… try, try again…

Here’s another interesting piece of code I’ve just dug up in a C# application I’m reviewing. If you can come up with a bright idea about what those try/catch blocks are supposed to do, you’ve got more imagination than me… … Continue reading

Posted in Coding fun | Tagged , , | Leave a comment

Don’t code like this at home, kids

Sometimes when you’re reviewing someone else’s code, you find interesting pieces of “art“. Like the following loop construct in a C# application: 123456789101112    int i = anArray.Length – 1;     while (true)     {       … Continue reading

Posted in Coding fun | Tagged , , | Leave a comment