640 reputation
28
bio website
location London, United Kingdom
age
visits member for 2 years, 8 months
seen yesterday

Dec
6
answered What is the real responsibility of a class?
Oct
25
awarded  Yearling
Oct
16
revised Construct your solution logic in syntax or in a faster and more efficient mental model?
added 71 characters in body
Oct
16
revised Construct your solution logic in syntax or in a faster and more efficient mental model?
added 249 characters in body
Oct
16
answered Construct your solution logic in syntax or in a faster and more efficient mental model?
Sep
30
awarded  Nice Answer
Sep
25
comment Why is “tight coupling between functions and data” bad?
I added a link to another question that talks about the evil of global state. I might have been exercising some poetic license when I said it was the 'only plus side'. I think you misunderstood what I meant by 'average programmer'. I mean a normal human being whose profession is a programmer - and though some competence level is expected, it is elitist to require that level to be that of a psychic. I agree with you - any paradigm or language that forces or encourages readable code in some way is worth celebrating. Myself, I'm not always convinced by the OO approach, but that's me.
Sep
25
revised Why is “tight coupling between functions and data” bad?
added 172 characters in body
Sep
25
revised Why is “tight coupling between functions and data” bad?
added 135 characters in body
Sep
25
revised Why is “tight coupling between functions and data” bad?
added 67 characters in body
Sep
25
answered Why is “tight coupling between functions and data” bad?
Jul
25
comment Where to load and store settings from a file?
I'm not sure what you mean by your first two questions. To answer your third - yes, basically.
Jul
25
comment Where to load and store settings from a file?
Case by case basis. Some of your top level classes might just need a reference to the whole Config instance passed into them if they rely on so many parameters. Other classes just need one or two parameter maybe, but there is no need to couple those to the Config object (making them even easier to test), just pass the few parameter(s) down through your application. As mentioned in my answer, if you build with a testable/DI oriented architecture getting the values where you need them will generally not be difficult. Use global access at your peril.
Jul
25
comment Where to load and store settings from a file?
.ini is easy to parse, and there are also lots of APIs that include .ini as a possible format. I'm suggesting that you use such APIs to help you do the grunt work of the textual parsing but that the end result should be that you have initialised a POD class. I use the term serialise in the general sense of copying to or reading in the fields of a class from some format, not the more specific definition of serialising a class directly to/from binary (as is typically understood for say java.io.Serializable).
Jul
25
revised Where to load and store settings from a file?
grammar and some additions to text
Jul
24
answered Where to load and store settings from a file?
May
30
answered What exactly makes code “clean”?
Mar
26
revised The problems with Avoiding Smurf Naming classes with namespaces
added 58 characters in body
Mar
26
answered The problems with Avoiding Smurf Naming classes with namespaces
Mar
14
comment Why use a database instead of just saving your data to disk?
Database stores data to disk anyway. It's just the end result of a natural evolution of systems for storing structured data to file. Chances are if you set out to use files to store your structured data you are going to find yourself reinventing features that have already been developed in databases. So why not just use a database from the start?