screepers / screepers-standards

MIT License
13 stars 7 forks source link

Universal Credentials File Standard #9

Closed ghost closed 5 years ago

ghost commented 6 years ago

This PR defines a standard to be used to store credentials for 3rd party applications to authenticate to Screeps servers.

tedivm commented 6 years ago

I prefer yaml over ini. Does anyone else have thoughts?

ghost commented 6 years ago

INI is more widely-supported, and is easier to write a parser for than yaml.

tedivm commented 6 years ago

I don't know any language that doesn't have a yaml parser already built for it. Admittedly this does requiring using libraries for most of them, but that doesn't seem like a big deal.

YAML has two benefits over INI that I believe is worth it-

  1. Many of the Screeps open source projects- especially the ones in the screepers org- are already using YAML. A lot of others are using JSON. Most YAML libraries are written to mirror JSON library APIs, making the switch easy. I don't know of any project for screeps that is using INI files (I may be missing some, but it's clearly not a huge group).

  2. YAML (and JSON) both support complex object rather than just supporting scalars. This gives future compatibility for other configuration standards.