Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail From: joseph@thehomeoftime.com Newsgroups: comp.programming Subject: Re: config pattern Date: Fri, 4 May 2012 21:14:30 -0700 (PDT) Organization: http://groups.google.com Lines: 4 Message-ID: <18253942.288.1336191270165.JavaMail.geo-discussion-forums@ynei5> References: <2136283.53.1336143092105.JavaMail.geo-discussion-forums@ynjc8> NNTP-Posting-Host: 99.161.190.61 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1336191270 24699 127.0.0.1 (5 May 2012 04:14:30 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sat, 5 May 2012 04:14:30 +0000 (UTC) In-Reply-To: <2136283.53.1336143092105.JavaMail.geo-discussion-forums@ynjc8> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=99.161.190.61; posting-account=ZxsdrwoAAABcdFIipqbCLsfn6zfG-SGM User-Agent: G2/1.0 X-Received-Bytes: 1417 Xref: csiph.com comp.programming:1536 On Friday, May 4, 2012 10:51:32 AM UTC-4, bob wrote: > What is the best and/or most common way of handling persistent config data? Is it to make a Config singleton class or a class of static variables or something else? Depends on the language, but if I can I use a static class. I like to do it lazy, where the configs load the first time you need them and they stay accessible and loaded.