Re: a few suggestions

Chris Falter replied to Rune Funch Søltoft at 24-Apr-08 01:05
Rune,

Thanks for the kind words.  I'm delighted that you found the MagicStringTranslator to be useful.  One of the things I love about publishing articles is that I get to see terrific ideas, like yours, that improve and extend what I have done.  I hope you will add another comment with your actual code when you finish the IEnumerable<KeyValuePair<x,y>> implementation.  As for the named singletons concept, the preference in our shop has been to keep the MagicStringTranslator subclasses as simple as possible; they do nothing but declare the named constants.  I certainly see the appeal of your named singletons idea, though, and would encourage you to try it out and let us know how it works.


Biography
Chris has spent about 14 years in software development, most recently serving as a lead developer for an insurer in South Carolina. He previously served as an Escalation Engineer and as an Application Development Consultant at Microsoft. A graduate of Princeton University's class of 1983, Chris has also taught high-school students, baked bagels, and lived among the West African poor.

Click here to sign in and reply. You could earn money via our $500 contest just for being helpful.
  Article Discussion: A Good Solution for "Magic String" Data - Chris Falter  06-Mar-08 01:51 1:51:03 PM
      Yo, Chris! - Peter Bromberg  06-Mar-08 07:32 7:32:13 PM
      a few suggestions - Rune Funch Søltoft  24-Apr-08 05:23 5:23:53 AM
          Re: a few suggestions - Chris Falter  24-Apr-08 01:05 1:05:57 PM
              IEnumerable<KeyValuePair<string, string>> implementation - Rune Funch Søltoft  25-Apr-08 04:02 4:02:16 AM
View Posts