Rockfish Blog

A Rockfish Welcome!

Posted by Dana Sargent on Friday, December 04, 2009 in Happening At Rockfish

At Rockfish, developers sometimes announce "new arrivals" in a more creative way. Check out this baby announcement written in code and congratulations to Robert Hanacek and family on the addition of Adrian Wyatt Hanacek!!

 

private readonly string _name;

private readonly DateTime _timestamp;

 

public static Dude GetInstance() {

    if (_instance == null)

        _instance = new Dude();

    return _instance;

}

 

private static Dude _instance;

 

private Dude() {

    _name = "Adrian Wyatt Hanacek";

    _timestamp = DateTime.Now.AddHours(-1.5); }

There are no trackbacks associated with this entry.

Comments

Congrats!! I guess by implementing the Singleton pattern twins were out of the question? :)
Posted on 12/7/2009 at 11:27 AM by Thomas Wynne
According to this code, Adrian is THE dude :)
Posted on 12/21/2009 at 11:26 AM by John Bailey
This code is not thread safe! :)
Posted on 12/21/2009 at 11:56 AM by Shawn Camp
Oh my...I see it's buggy, I must have been distracted by witnessing my son's birth! Please correct the singleton, and make it thread-safe.
Posted on 12/21/2009 at 1:43 PM by robert

Post a Comment

  •  
  •  

  •  

Share With a Friend

Enter the following information to e-mail a link to this site to a recipient of your choice.
  • Your Name:
  • Your Email:
  • Recipient Email:
  • Your Message:
Your message has been delivered!
An error occurred while sending your email. Please click "Send Again" to try again.