funny code

As I stated in one of my blog posts, I’ve already seen a lot of strange code, some code parts are really funny. Since most of the code is closed source, I can not copy-paste the original code, but I will try to write it down as close to the original, as I can. I assure it’s all from productive applications.

Let’s start with the first one:

lock (new object())
{
// … some code here …
}

If you have funny code snippets for me, feel free to send it to me, or just leave a comment…

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.