• 0 Posts
  • 74 Comments
Joined 1 year ago
cake
Cake day: June 16th, 2023

help-circle




  • That’s a valid point.

    There are two kinds of good serialization languages, the ones where values are black boxes and only serialize the data structure, and the ones where everything is completely determined and can be turned directly into an API.

    JSON is neither, but it’s closer to the first than YAML. XML is the first, while the SOAP standard almost turns it into the second. TOML is about as close to the first as JSON.




  • marcos@lemmy.worldtoProgramming@programming.devWhy YAML sucks?
    link
    fedilink
    arrow-up
    9
    arrow-down
    3
    ·
    edit-2
    27 days ago

    Haskell supports both semantic whitespace and explicit delimiters, and somehow almost everybody that uses the language disagrees with you.

    But anyway, for all the problems of YAML, this one isn’t even relevant enough to point out. Even if you agree it’s a problem. (And I agree that the YAML semantic whitespace is horrible.) If YAML was a much better language, it would be worth arguing whether semantic whitespace breaks it or not.








  • And those are only fully packaged user-facing software.

    I’d guess almost all of the Rust code for low level hardware access is maintained by a single person. Most of them once joined forces and created a standard, it had 4 developers last time I checked. The only usable cryptography library for C# has a single developer, and while on crypto, that meme got widespread because of OpenSSL, that had a single developer who spent most of his time on OpenSSH and other BSD user-facing software.

    Also, while we are on crypto, the modern algorithms were all created by a single researcher, that got famous for a work on how to decide if you can trust a crypto algorithm. Almost everybody uses his code.

    Anyway, that meme first appeared because of Javascript, when a developer removed his library (with ~10 lines of code) from the language’s repository and almost every Javascript software broke.




  • There’s a reason they do that: Files can get big

    Oh, boy. Wouldn’t it be great if servers had a way to discover the size of the files on their storage without having to read them?

    adding various code highlighting and interactivity costs performance

    Somebody, quick, there’s work to be done on language theory so that we learn how to do those things with a cost just proportional to the file size!

    (No way! Who is that Chomsky guy you keep telling me about?)