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…

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

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