|
|
|
|
|
by brianleroux
2935 days ago
|
|
There are many issues with both formats: - JSON has no comments
- YAML nesting tends to get deep which makes creating bugs very easy
- Both are become hard to read / edit in larger files The primary issue is translating the intent into a machine syntax. The format we landed focused on minimalism to communicate intent. The the file format is the least interesting thing about .arc but one of the most distinctive. An .arc file VERY QUICKLY communicates the project intent. An example: ```
@app
hi @html
get /
``` The equiv CloudFormation YAML is 700 lines. You'd have no idea what that project does without digging into the code. The .arc by contrast is extremely easy to both read and author. As the app grows it becomes very clear the project intent and were to find things. We certainly could have created a new YAML thing but many projects already do that … and I'll let their work speak for itself. |
|
Accepted, but that's not the topic of debate.
The issue here is that you can write the example you gave in YAML like this
And it could still generate the same result. But this way people can write the config in a more familiar syntax.Hope I explained my point correctly.
This is just a matter of UX/ API, not how it works.
If you somehow felt that I disrespected your work, forgive me.