Home > .NET, .NET User Groups, Fun > Rosebud. Or is it RoseBud? (Hashtable)

Rosebud. Or is it RoseBud? (Hashtable)

Last night at the WinProTeam .NET UG Rockville Meeting, Carney Clegg spoke on “Using Hashtables Effectively”.

Of course, my burning question on Hashtables was …

Why is it Hashtable and not HashTable as the .NET Design Guidelines would indicate?

The question went unanswered last night with only my guess that it was kept the same to keep transitioning Java developers happy. Chris Mohan did some research and posted the real answer (below) on theAspNetMetroAreamailing list this morning – thanks Chris!

“In the early days of the BCL design we heavily debated the name of this class. Some felt it should be HashTable and others felt is should be Hashtable (lower case t in table). There was ample prior art for both choices, so it really came down to what fit best in our library. The Pascal naming convention we adopted suggests that each word should begin with an initial uppercase character. So the debate boiled down to the question of what this class is. Is this class a table of hashes, that is, a Hash Table, or is it a single entity, a Hashtable. I think it is likely that the history of the data structure is a special kind of table, but in the end we decided the data structure had entered the common lexicon as a single word– Hashtable.” — Brad Adams, Primary Author of the .Net Framework Design Guidelines

If you are completely lost by the Rosebud reference, watch this. (Thanks Bob!)

Categories: .NET, .NET User Groups, Fun
  1. No comments yet.
  1. No trackbacks yet.

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

%d bloggers like this: