r/java • • Jun 10 '24

[deleted by user]

[removed]

615 Upvotes

594 comments sorted by

View all comments

Show parent comment

2

u/Misophist_1 Jun 11 '24 edited Jun 11 '24

I wouldn't complain, if I hadn't had run ins with configs causing startup failures, because there was a tab somewhere instead of the appropriate number of spaces.

S* like this happens especially fast if you need to change yaml-files outside the warm shelter of your IDE, which might lent some support there. For example, when using a simple text editor like nano from a server command line.

YAML is only easy, if your configuration fits into a single screen page. I have seen Swagger-OAS descriptions for complex web-services in YAML, that easily stretched for 500 lines, and indent more than 5 levels deep.

I always wonder, what drives such stupid design decisions. I find JSON even worse. It has no problems with invisible chars. Instead, it is impossible to comment. This makes life really miserable for operating, as it forces separation of documentation and data.