Hacker News new | past | comments | ask | show | jobs | submit login

Why not? With config as data, you need an extra parsing step. More moving parts, more maintenance, and the same end result.



To be fair, that parsing step is still here-- it's just being parsed into Javascript.


If 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: