Tuesday, February 27, 2007

Al Gore’s Personal Energy Use Is His Own “Inconvenient Truth”


Top 10 Most Influential People in .Net

An interesting post although I think it's missing Don Box and Mike Gunderloy.

Friday, February 23, 2007

I am Green Lantern

Your results:
You are Green Lantern

Green Lantern
Iron Man
The Flash
Wonder Woman
Hot-headed. You have strong
will power and a good imagination.

Click here to take the "Which Superhero are you?" quiz...

Sunday, February 18, 2007

TFS Links, Tools, Blogs, Books, etc.

Update 03/25/2008: I've begun managing this list in del.icio.us tagged under TFS.

Some of my favorite Team Foundation Server / VS.Net Team Edition tools and links:

Value-add, Marketing
Best Practices


How Tos

Source Structure / Branching

Friday, February 16, 2007

Team System Case Studies

Team System Book Listing

I'm reading Pro VS 2005 Team System from APress. It's very good but definitely targeted to the manager...although, there is some customization and extention with custom code. Overall, a helpful book.

Monday, February 12, 2007

Favorite C#.Net Interview Question: Numeric Conversions

I like to ask a wide variety of technical questions targeted to the candidate's seniority during interviews. My favorite C# question focuses on converting an Int64 into an Int32. Hopefully, this isn't something you need to perform often (poor design) but occasionally we have to clean up after the other guy, right? ;-) (If you interview with me and are reading this post-consider it a gimme...and hopefully you learned something anyway.)

Situation: We have an Int64 "b" I need to convert into an Int32 "a". How should we set a = b in the safest manner (i.e. no data loss)? Here are some options:

  • Line 15 does not compile throwing a "Cannot implicitly convert type 'long' to 'int'. " exception.
  • Line 17 properly raises an OverflowException.
  • Line 19 does _not_ throw an exception. a's value incorrectly becomes 1569325055.
  • Line 21 properly raises an OverflowException.
In my opinion, the style in Line 17 is the best because it leverages the Framework to do most of the work. This way, if the Framework implementation ever changes, my code will automatically benefit. Also, most developers aren't familiar with the checked construct (2nd best option, IMO) so it looks a bit out of place.

Many developers unknowingly choose Line 19. Bugs introduced with this code can be some of the nastiest to track down. Be safe out there! Convert explicitly using the Framework.

Good web links for conversion:
Jeff Adkin's Data Conversion posting
Explicit Numeric Conversions Table (C# Reference)

Friday, February 09, 2007

Online Regular Expression Evaluator

I don't use regular expressions daily but when I do I always find myself starting from scratch-trying to download some tool. And it's never the same one I used the last time so I have to re-learn an interface. Here's an excellent regular expression tool leveraging AJAX...it even includes a nice cheat sheet.

Tuesday, February 06, 2007

Death to DRM

Props to Steve Jobs for finally calling a spade a spade and dismissing DRM as an ineffective solution to rights management. I'm all for protection of author/artist rights but DRM just isn't getting the job done. DRM is simply the major record/movie houses trying to solve the problem with technology. We see this all the time in business. It's easy to treat everything like a nail if all you have is a hammer. Get creative. Come up with a solution that works-hint: it's not technology.