TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

That's a Lot of YAML

82 pointsby l0b0about 1 month ago

13 comments

AlphaCharlieabout 1 month ago
Yaml is the language nobody needed. All we wanted was a better JSON format that supports comments and doesn’t crash with an extra comma as the end of a list, eg: [1,2,3,]
评论 #43653394 未加载
评论 #43652923 未加载
评论 #43653248 未加载
评论 #43652795 未加载
评论 #43651452 未加载
fbrchpsabout 1 month ago
This format is unreadable on mobile, it keeps opening up my keyboard and scrolling up a bit when it does.<p>I understand and appreciate the &quot;why&quot; of the format, but this also could have been a non-editable &quot;editor-like&quot; presentation and achieved the same result.
评论 #43650508 未加载
评论 #43653374 未加载
评论 #43660935 未加载
评论 #43652769 未加载
huem0nabout 1 month ago
Yeah theres some problem, but reading a multiline code block (like github actions bash script) as an indent-escaped string is so much better than having to understand crazy triple-escaped characters like &quot;sed \&quot;\\\\\\&quot;name1\\\\\\\&quot;\&quot;&quot;
评论 #43653011 未加载
PollardsRhoabout 1 month ago
I will die on the hill that TOML should be used for the vast majority of what YAML&#x27;s used for today. There are times a full language is needed, but I&#x27;ve seen so many YAML files that use none of the features YAML has with all of the footguns.
评论 #43658047 未加载
评论 #43661547 未加载
评论 #43656831 未加载
lfpeb8b45ezabout 1 month ago
I find the configuration complexity clock always valuable in framing conversations like this: <a href="https:&#x2F;&#x2F;mikehadlow.blogspot.com&#x2F;2012&#x2F;05&#x2F;configuration-complexity-clock.html?m=1" rel="nofollow">https:&#x2F;&#x2F;mikehadlow.blogspot.com&#x2F;2012&#x2F;05&#x2F;configuration-comple...</a>
评论 #43660995 未加载
sabslikesobsabout 1 month ago
I&#x27;m a big fan of YAML after coming from JSON and, later, ProtoBuf&#x27;s many definition formats while working at Google---but it&#x27;s true that there are a lot of oddities in YAML&#x27;s magical parsing. I&#x27;m grateful for the many ways it&#x27;s possible to quickly an naturally define simple hierarchies of data (for example, in a docker-compose file).<p>This website does the rare thing of, after complaining, providing a long list of alternatives. It&#x27;s really nice.
soraminazukiabout 1 month ago
YAML&#x27;s idea of human readability misses the mark. Especially anchors. They&#x27;re the worst tools for abstraction.<p>JSON with functions as the high level format and JSON as the low level format is the way to go. Examples include Nix and Jsonnet. They&#x27;re much nicer to deal with and less error prone.
zombotabout 1 month ago
&gt; # Anyone wondering why their first seven Kubernetes clusters deploy just fine, and the eighth fails?<p>Yay, octal numbers! But don&#x27;t panic, lots of supposed C programmers fall for exactly the same trick when prefixing numbers with `0`.
stevageabout 1 month ago
I can take credit for one of these, the 63 ways to wrap a string, on line 156.
评论 #43655499 未加载
pankajdohareyabout 1 month ago
All I see is Lisp:<p>#Operator: - Operand 1 - Operand 2
评论 #43656567 未加载
sbennettmcleishabout 1 month ago
When it comes to AWS Cloudformation, I love YAML. Can&#x27;t think of any other positive use though.
评论 #43655004 未加载
tryauuumabout 1 month ago
I like writing yaml<p>(context: I&#x27;ve never had to write 1000-line yaml files for kubernetes)
RadiozRadiozabout 1 month ago
Yawn. I&#x27;ll keep using XML. While many waste their youth pointlessly reinventing XSDs in YAML&#x2F;JSON&#x2F;TOML&#x2F;JSON5&#x2F;HJSON, I&#x27;ll still be here. Living. Content.