It's time for another July TechNet Guru winner!
Congratulations to Reed Kimble, our VB Guru winner for July! See the TechNet Guru Contributions for July 2013.
About Reed: [Adult Swim] fan, EQII player, and has broad interests in computers, electronics, and programming. Enjoys outdoors in forest, mountain, and/or secluded lake settings. Fascinated by social and spiritual aspects of humanity.
Here is the gold-medal-winning article:
How to Handle a Huge Collection of Strings in VB.Net
Now let's look at all the winning articles:
Five articles, from three entrants, all who have won an award for July. Some great articles too! Thanks again folks, hopefully see you all in with a chance of winning more for August!
And here's an excerpt from the article:
Although the basic premise of the collection is fairly straightforward, the code implementation can be a bit tricky in that our tree of characters must still be able to expose itself as a collection of complete strings. To achieve this, we need to create a custom enumerator for our collection that knows how to find each complete string within the tree of characters.
We can begin by creating a “SearchableStringCollection” class which implements ICollection(Of String) and declares a backing store of Dictionary(Of Char, SearchableStringCollection) :
There are a few simple class members that we can implement without first defining our actual character storage and retrieval mechanisms. First we can implement the Count property by simply defining a private _Count field to hold the number of full strings in the collection. We’ll want to track this total manually as items are added to and removed from the collection because our backing store will not have this information readily at hand (we would have to enumerate the entire collection to find and count all of the complete strings, and that would have undesirable performance).
Read the rest here:
Thanks to Reed Kimble for your great contribution to the TechNet Guru contest! You can read about all the July winners here: TechNet Guru Awards - July 2013
Also, for the August Guru competition, see TechNet Guru Contributions - August 2013.
Are you a Wiki Ninja? http://technet.com/wiki
- User Ed