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

  • Compare New GitHub Copilot Free Plan for Visual Studio/VS Code to Paid Plans

    The free plan restricts the number of completions, chat requests and access to AI models, being suitable for occasional users and small projects.

  • Diving Deep into .NET MAUI

    Ever since someone figured out that fiddling bits results in source code, developers have sought one codebase for all types of apps on all platforms, with Microsoft's latest attempt to further that effort being .NET MAUI.

  • Copilot AI Boosts Abound in New VS Code v1.96

    Microsoft improved on its new "Copilot Edit" functionality in the latest release of Visual Studio Code, v1.96, its open-source based code editor that has become the most popular in the world according to many surveys.

  • AdaBoost Regression Using C#

    Dr. James McCaffrey from Microsoft Research presents a complete end-to-end demonstration of the AdaBoost.R2 algorithm for regression problems (where the goal is to predict a single numeric value). The implementation follows the original source research paper closely, so you can use it as a guide for customization for specific scenarios.

  • Versioning and Documenting ASP.NET Core Services

    Building an API with ASP.NET Core is only half the job. If your API is going to live more than one release cycle, you're going to need to version it. If you have other people building clients for it, you're going to need to document it.

Subscribe on YouTube