Useful Piece of Information #1: Don’t do pull-ups until your hands are trashed if you’re planning on spending the afternoon typing.
I had lots of useful replies to my tweet asking how to get blood off a keyboard, both Cyber Clean and Hydrogen Peroxide with a Q-Tip seem popular. Makes me wonder exactly what those “other people” were going to need keyboard cleaning. And by association this brings me to…
Useful Piece of Information #2: The collective noun for Crows is…
“A murder of crows”
That was easy.
Useful Piece of Information #3: You can use the Lazy<T> class to implement a thread safe singleton.
Reed Copsey Jr. blogged about this and he gave me some pointers on my initial implementation. Here I’ve sealed the class and made the constructor private, rather than protected. Usually I’m not a big fan of sealing classes but in
Jon Skeet’s post on singletons is also worth a read. There are several alternative implementations and Jon’s post describes many of the tradeoffs. I like this one because it’s not only simple but also very readable, whereas in my opinion some of the alternatives are not.
Anyway… Three useful pieces of information is you lot for the day and “Appendix A: Supporting Patterns” beckons.