mike hodnick

Point your browser to www.hodnick.com for Mike's latest content.

Notice:

You are viewing Mike's old, archived site. For new content, navigate to hodnick.com

Latest From Twitter...

The Blog

A few people have asked me why I don't ever really write about many technical things on my website, such as code examples or challenging design issues.  Well, today that's going to change.  Here's some code for you to enjoy:

 public class MikesCode
 {
     public static CodeExample GetCodeExample()
     {
         Mike mike = Mike.Instance();
  
         if (!mike.HasTime)
             throw new NotEnoughTimeException("Mike is busy doing something else.");

         if (typeof(CodeExample) != mike.PrioritizedTasks[0].GetType())  
             throw new PrioritizationException("Mike would rather be doing something else.");

         return GetRandomCodeExample();
     }
 }

posted on Wednesday, March 30, 2005 8:35 AM |