Generics Baseball Sample Scores a Hit

Readers chime in on Dan Fergus' article on generics, including the whereabouts of a missing file.

Generics Baseball Sample Scores a Hit
I just received my February issue of Visual Studio Magazine, and was pleased to see an article by Dan Fergus on generics ["Implement Custom Generic Collections," VSM February 2007]. This is an interesting topic because generics are a "gray" area for many programmers like me.

I especially liked the article's reference to the many demos that attempt to cover complex topics, but have little or no real-world value. I also liked the idea of using baseball players and statistics for the code sample, but I'm sure there are many people wondering what a slugging percentage is.

Frank Ansanitis
Springfield, MA

For the record, slugging percentage is a baseball term that measures the power of a given hitter. It is obtained by dividing the total number of bases per hit (one for a single, two for a double, three for a triple, and four for a homerun) by the number of at bats a player has.—Eds.

I'm writing to you in reference to the recent article in VSM by Dan Fergus, "Implement Custom Generic Collections" [VSM February 2007]. I have been a classic VB programmer for the last 12 years, and I have finally made the jump to VB.NET, so I'm reading anything I can get my hands on to help with the transition.

I must say this article has been an immense help to me. There's so much to the Framework that it's overwhelming trying to find all the things that it can do. So it was gratifying and eye opening to see an article that brought so many aspects of the Framework to light.

I ran into one issue, however. I tried my best to re-create all of the code in your article without downloading the source code, but hit a wall. So I broke down and downloaded the source, only to find that the online source code for the article was incomplete. I'm right in the middle of this code, so seeing the full solution would help me greatly understand its usefulness and how to best take advantage of it.

Thanks for such a great article. It's really helped me get a better grip of the kinds of things that are possible with the .NET Framework.

Mike Issakian
received by e-mail

First, let me say that Dan Fergus' article that covers generic collections in the February issue of VSM ["Implement Custom Generic Collections," VSM February 2007] is extremely good. I've been looking for something like this for a long time.

However, when I try to download the code, the solution file is missing the project files. I downloaded it twice just in case something was messed up. If you happen to have the source code for the article handy, I would appreciate it if you would send it to me.

Randall Sexton
Knoxville, TN

Oops! As we mentioned in the last issue, we are in the process of upgrading our Web site and some things are bound to fall through the cracks. This was one of those cases. The initial code posting left out a couple essential files. The online file has since been updated to include the full solution. You can access the full code file by visiting vsmagazine.com and entering the article's Locator+ code: vs0702df. If you experience any problems accessing the site, feel free to email the editors at [email protected] for any desired code samples or other issues, and we'll see that the site is fixed or you are otherwise provided with missing code. We appreciate everyone's patience, and look forward to your reactions to the improved Web site service overall.—Eds.

comments powered by Disqus

Featured

  • AI for GitHub Collaboration? Maybe Not So Much

    No doubt GitHub Copilot has been a boon for developers, but AI might not be the best tool for collaboration, according to developers weighing in on a recent social media post from the GitHub team.

  • Visual Studio 2022 Getting VS Code 'Command Palette' Equivalent

    As any Visual Studio Code user knows, the editor's command palette is a powerful tool for getting things done quickly, without having to navigate through menus and dialogs. Now, we learn how an equivalent is coming for Microsoft's flagship Visual Studio IDE, invoked by the same familiar Ctrl+Shift+P keyboard shortcut.

  • .NET 9 Preview 3: 'I've Been Waiting 9 Years for This API!'

    Microsoft's third preview of .NET 9 sees a lot of minor tweaks and fixes with no earth-shaking new functionality, but little things can be important to individual developers.

  • Data Anomaly Detection Using a Neural Autoencoder with C#

    Dr. James McCaffrey of Microsoft Research tackles the process of examining a set of source data to find data items that are different in some way from the majority of the source items.

  • What's New for Python, Java in Visual Studio Code

    Microsoft announced March 2024 updates to its Python and Java extensions for Visual Studio Code, the open source-based, cross-platform code editor that has repeatedly been named the No. 1 tool in major development surveys.

Subscribe on YouTube