http://qs321.pair.com?node_id=84942


in reply to (Software Engr) Encapsulate! No,no,no! Decouple!

The central config file can contain an entry naming the hello file. That way someone reading the one file can know that this other file is involved, rather than it having a magic name that is known implicitly.
  • Comment on Re: (Software Engr) Encapsulate! No,no,no! Decouple!

Replies are listed 'Best First'.
Re: Re: (Software Engr) Encapsulate! No,no,no! Decouple!
by simon.proctor (Vicar) on Jun 03, 2001 at 00:43 UTC
    My two penneths worth would be that the location of the welcome text should be in the configuration file but the text itself be in a separate file. When the server starts, it knows where to grab the text from and does so as required. Assuming, for a minute, that the welcome text is loaded from disk as required, the server need not be manipulated in any way to change the text, only the file contents need changing. The alternative would be a quick HUP.
      My thoughts exactly.