2 ms·
Somehow my brain finds YAML hard to parse. JSON is easy but ugly. Lately I’ve just been using Python code in a module to initialize config settings. Initially i
by JSR_FDED 5mo ago
Somehow my brain finds YAML hard to parse. JSON is easy but ugly. Lately I’ve just been using Python code in a module to initialize config settings. Initially it was just a lazy way to get started, but having the flexibility of an actual language is great when things evolve over time.
- Insanity 5mo agoTBH that is what attracted me to Pulumi to manage IaC. My brain doesn’t find YAML appealing as a configuration language, and having a known fully-fledged language available makes life a bit easier.
- vrighter 5mo agocomputers find yaml hard to parse too :)
- rixed 5mo agoThat was the initial intended use case for Python to be a configuration language.
- JSR_FDED 5mo agoReally? I thought that was more the case for Lua. Which by the way is more happiness per line of code than most other languages :-)
- rixed 5mo agoActually, I remembered having read that in an old interview in the early 2000s, but I can't retrieve it now so it's safe to assume that it's a false memory. Lua was designed to be an extension language though (checked on wikipedia this time :-D)
- cornell532 5mo ago“Explicit is better than implict.” —PEP 8