Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Yaml is great for basic stuff but it has way too many features, don't use them.
-
I agree! But then I'm also annoyed by the modern ini format - toml. Imo the best config formats are json and properties [key=value\n], where key is a dot-delimited property path. Easy to parse, understand, debug, share. Hard to make mistakes. Drawback - verbosity...Which is also a good thing
-
While YAML suffers from feature creep, it is still better than XML, JSON and any INI derivative.
-
@Oktokolo How it's better than JSON ?
writing
this
way
makes
no
sens
JSON is 10000000000000 times better than YAML in ANY way. (I reserve my judgement for XML, as XML is a LOT of useless writing)
See : Even devrant trims the strings. -
@NoToJavaScript As someone who likes to indent his code, i like the instant readability of YAML without any decorations like curlies, brackets or quotes where you really shouldn't need any.
-
I only ever looked at it once
That's how relevant it is to me
The concept of memory leak prevention in rust sticks in my mind more and I dont think rust is useful -
-
@AvatarOfKaine Only people who like indenting their stuff. People who don't, obviously also don't like YAML.
-
@AvatarOfKaine Yes, they like it because Indentation works pretty damn well for making structured stuff more readable. It works so well that almost everyone uses it when writing code even when whitespace isn't significant.
All but the most trivial configuration has structure. It can be complex. It is more likely to be maintained by people who aren't developers - so the readability requirements are actually higher than for normal code.
And you want it to be less readable than code? Why? -
@Oktokolo well all the curly braces brackets commas and delimiters do make JSON readable 🥺
-
@AvatarOfKaine Not really. They are a compromise between readability and not wanting to parse significant whitespace. Also, if used as configuratuion, JSON normally gets indented too - making the delimiters, curlies and brackets just clutter that could be optimized away.
-
@Oktokolo like I can deal with python
But it has delimiters as well
But in the case of c etc I see the value of being able to compile a string with no line breaks -
@Oktokolo you know like when platforms didn't play nice and their line endings were different
-
@AvatarOfKaine It is easy to support both line ending schemes still in use. And yes, parsers are easier to write for languages that don't have significant indenting. But when it comes to readability, significant indenting just rules.
Python does it right (as does YAML): Only a few delimiters where they are actually needed (the colon for control structures in Python is sortof redundant - but for me it reads better with it than without). -
@Oktokolo but...
The parser doesn't need indenting to have significance
That's just a human thing...
Again it's not a big deal for me in python
Because like everyone
I indent anyway
But
I like
Markers
That
Express
What
The
Type is
And organizational units
Yaml is crap lol -
@AvatarOfKaine Of course it is a human thing. Making the computer's interpretation match the human's expectation makes code more easy to reason about - for humans. The whole point of readability/maintainability is to make it easier for humans.
For machines we got the language interpreted by the CPU's microcode. Good luck directly writing code for that (possible but not desirable nor efficient).
Let's start 2023 !
WHO THE FUCK imagined that having language like YAML is a good idea ??
Fuck you and your spaces. No editor produce any decent errors messages except "Your spaces are wrong".
When you edit an Azure debops pipeline, it's just 5 min ti do thing, 35 minuites to figure ou where to add/remove spaces.
NO, I WILL NOT read 25 pages of documentation to add a single step into pipeline.
Fuck YAML !
rant