Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.programming > #1536

Re: config pattern

From joseph@thehomeoftime.com
Newsgroups comp.programming
Subject Re: config pattern
Date 2012-05-04 21:14 -0700
Organization http://groups.google.com
Message-ID <18253942.288.1336191270165.JavaMail.geo-discussion-forums@ynei5> (permalink)
References <2136283.53.1336143092105.JavaMail.geo-discussion-forums@ynjc8>

Show all headers | View raw


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.

Back to comp.programming | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

config pattern bob <bob@coolfone.comze.com> - 2012-05-04 07:51 -0700
  Re: config pattern joseph@thehomeoftime.com - 2012-05-04 21:14 -0700
  Re: config pattern Rui Maciel <rui.maciel@gmail.com> - 2012-05-05 13:15 +0100

csiph-web