Globals
2006-04-11 Filed in: programming
If globals
are evil, then how come developers keep on using them
more and more?
I'm referring to the fact that software increasingly depends on pieces spread all over my hard disk, with "configuration files" everywhere. Pick any non-trivial developer tool - the problem is not just that it's hard to get things working properly, but that any configuration change later may break things.
If that isn't global state (and the worst engineering approach ever!), then I don't know what is ... What a mess.
I'm referring to the fact that software increasingly depends on pieces spread all over my hard disk, with "configuration files" everywhere. Pick any non-trivial developer tool - the problem is not just that it's hard to get things working properly, but that any configuration change later may break things.
If that isn't global state (and the worst engineering approach ever!), then I don't know what is ... What a mess.