3 ms·
Why not? With config as data, you need an extra parsing step. More moving parts, more maintenance, and the same end result.
by 0x0 14y ago
Why not? With config as data, you need an extra parsing step. More moving parts, more maintenance, and the same end result.
- andrewmunsell 14y agoTo be fair, that parsing step is still here-- it's just being parsed into Javascript.
- pyre 14y agoIf the configuration was data, then you would have to parsing steps: Data => Python Data => JavaScript With this setup they only have one: Python => JavaScript Granted, storing it in YAML/JSON/whatever means that you could potentially have many different codebases / languages reading it without a Language A => Language B conversion. It just depends on what works best for your project / team.