Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.programming > #5471
| From | August Karlstrom <fusionfile@gmail.com> |
|---|---|
| Newsgroups | comp.programming |
| Subject | Re: How to name class which will read and write configuration to file |
| Date | 2015-05-28 21:25 +0200 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <mk7q42$ia6$1@speranza.aioe.org> (permalink) |
| References | <4253758a-484a-424f-ac42-6fa2c2cffad4@googlegroups.com> <mk4ipq$24r$1@speranza.aioe.org> <9ux9x.13412$HS4.2372@fx07.iad> <mk6cql$u99$1@speranza.aioe.org> <VhH9x.6578$bM1.3874@fx01.iad> |
On 2015-05-28 18:23, Daniel Pitts wrote: > In particular, the "Single Responsibility Principle" seems relevant > here. A class that represents a Configuration, shouldn't also represent > a ConfigurationLoader and ConfigurationSaver. To me this makes as much sense as saying that a class that represents a stack shouldn't also represent a stack pusher and a stack popper. As I see it the configuration class doesn't *represent* a loader or a saver - the methods `load' and `save' are just operations on the configuration. -- August
Back to comp.programming | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
How to name class which will read and write configuration to file pavelkastornii@gmail.com - 2015-05-26 14:39 -0700
Re: How to name class which will read and write configuration to file August Karlstrom <fusionfile@gmail.com> - 2015-05-27 16:02 +0200
Re: How to name class which will read and write configuration to file Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2015-05-27 22:13 -0700
Re: How to name class which will read and write configuration to file August Karlstrom <fusionfile@gmail.com> - 2015-05-28 08:32 +0200
Re: How to name class which will read and write configuration to file Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2015-05-28 09:23 -0700
Re: How to name class which will read and write configuration to file August Karlstrom <fusionfile@gmail.com> - 2015-05-28 21:25 +0200
Re: How to name class which will read and write configuration to file Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2015-05-28 21:28 -0700
csiph-web