|
|
|
|
|
by JanezStupar
4732 days ago
|
|
You are missing the point. I am not saying that one should make mess of his code. I am merely saying that configuration files are code too. They need to be tested, debugged and refactored. Writing code in XML seems a retarded way to go about it. If my language would prevent me from writing configurations in itself in a sane manner, I would rather use another language with a solid toolchain for this part of the job. Than go and build my own DSL in XML of all things. If you are of an open mind, go check how Django is configured and extended and compare it to your run of the mill enterprise framework. And let me tell you that I did my fair share of enterprisey "configurable and extendable" framework shit. And its all a lie. You cannot make "simplified" languages that will enable you to be more "flexible" or to let amateurs to program system behavior. Always these kinds of interfaces gobble up way more developer hours than they save in the long run. Often programmers resort to writing programs that offer a sane API for writing these kinds of configs. One should simply build a quality API and document it well. |
|