News for hackers. Stuff that matters.
Re:Configs suck? Try a real programming language by pdonis on Sunday April 05, 2020 @06:56PM (#22789428)
> If your config is so complicated that it warrants a full-blown language, the logic should go into the main program that reads the config

Exactly. Even the simple toy example in the article illustrates the problem: why is the Person class being defined in the config? If the program is going to use objects representing people, the code defining the structure of those objects should go in the program. If the program is not going to use objects representing people, why are you adding extra code to your config to define Person objects when you could just use a list of plain tuples?

There are no comments on this comment yet.