Skip Navigation

InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)E
Posts
57
Comments
3732
Joined
6 yr. ago

  • You could always have a proper alarm a few minutes later as a fallback...

  • TOML

    Jump
  • VSCode is Electron, i.e. a webpage, so it's not hugely surprising that they opted for the natively supported JavaScript Object Notation. And also shows that they don't care for using the right tool for the job to begin with.

    Personally, I much prefer TOML over YAML, because it does not have significant whitespace, and because you can read the spec in a reasonable amount of time. It just has so much less complexity, while still covering the vast majority of use-cases perfectly well.

  • TOML

    Jump
  • They're not supposed to contain data, but some parsers will allow you to access what's written into comments. And so, of course, someone made use of that and I had to extract what was encoded basically like that:

     xml
        
    <!--
        Host: toaster,
        Location: moon,
    -->
    <data>Actual XML follows...</data>
    
      

    My best guess is that they added this data into comments rather than child nodes or attributes, because they were worried some of the programs using this XML would not be able to handle an extension of the format.

  • TOML

    Jump
  • We just document that this is how you write the config file:

     ini
        
    [network]
    bind.host = "127.0.0.1"
    bind.port = 1234
    
    # etc.
    
      

    And that seems straightforward enough. Yeah, technically users can opt to use inline tables or raw strings or whatever, but they don't have to.

  • TOML

    Jump
  • I can kind of understand it after having to work with an XML file where users encoded data into comments for no good reason. But yeah, it does make JSON awkward for lots of potential use-cases.

  • TOML

    Jump
  • I don't feel like it will stray very far from what's dubbed "TOML 0.1" in the meme. Yes, it has inline tables and as of TOML 1.1, they're allowed to span multiple lines, so it's technically not anymore illegal to do what's in the meme. But all things considered, this is still a miniscule change compared to TOML 1.0.

  • TOML

    Jump
  • Well, you can still decide how much of the TOML features you actually use in your specific application. For example, I'm currently involved in two projects at $DAYJOB where we read TOML configurations and we don't make use of the inline tables that OP memes about in either of them.

    Ultimately, the big advantage of TOML over INI is that it standardizes all kinds of small INI extensions that folks have come up with over the decades. As such, it has a formal specification and in particular only one specification.You can assume that you can read the same TOML file from two different programming languages, which you cannot just assume for INI.

  • I would try to avoid driving over them when safely possible, because they make an annoying noise, which I wanted to spare folks living nearby from. ¯(ツ)_/¯

  • TOML

    Jump
  • Well, Wikipedia does say:

    The [TOML] project standardizes the implementation of the ubiquitous INI file format (which it has largely supplanted[citation needed]), removing ambiguity from its interpretation.

    https://en.wikipedia.org/wiki/TOML

  • TOML

    Jump
  • Counterpoints:

    • TOML is intended for configuration, not for data serialization, so you shouldn't be sending it over the wire in all too crazy ways anyways.
    • Most protocols will have a built-in way of knowing when the whole content has been transferred, typically by putting a content length into the header.
    • Having to wait until the closing } or ] can also be a disadvantage of JSON, since you cannot stream it, i.e. start processing the fields/elements before the whole thing has arrived. (You probably still don't want to use TOML for that, though. JSONL, CSV or such are a better idea.)
  • TOML

    Jump
  • Well, TOML is essentially just an extension of the INI format (which helped its adoption quite a bit, since you could just fork INI parsers for all kinds of programming languages).

    And then, yeah, flattening everything is kind of baked into INI, where it arguably made more sense.Although, I do also feel like non-techies fare better with flat files, since they don't have to understand where into the structure they have to insert the value. They just need find the right "heading" to put the line under, which is something they're familiar with.

  • TOML

    Jump
  • They serve largely different use-cases. JSON is good for serializing data. TOML is good for configuration.

  • (too hard for me)

  • It's kind of bad for scripts, where it can be either annoying or genuinely problematic, when your script hangs on a password prompt. You typically do want it to just fail right away, because if you have monitoring, then you'll be able to spot it failing.

    These days, it is (largely reliably) possible to detect whether a command is being run interactively or as part of an unattended script, so you do see some commands that trigger a sudo password prompt only for interactive use, for example systemctl does this. But this adds quite a bit of complexity to each individual program, so it isn't really something that's going to be implemented universally.

    I also have to say that systemctl kind of gets on my tits when it does that, because it throws up a GUI dialog for grabbing the password, which is quite jarring.

  • Habe mehrere Minuten damit zugebracht, einen Produktbegriff zu finden, wo es keinen "...24.de"-Shop dazu gibt, weil ich weder Werbung für einen Betrüger-Shop machen will, noch einen legitimen Shop durch den Kakao ziehen will. 😅

  • Finde ich cool, gerade auch weil's so ein bisschen schon kuratiert ist, einfach nur weil die Leute nicht jeden Schrottladen eintragen.

    Wenn man halt in eine Suchmaschine "knalltüte online-shop" eintippt, dann kommen teilweise die üblichen Verdächtigen, teilweise dann aber auch knalltüten24.de, wo man sich einfach nur denkt, Leute, ihr könnt mir nicht erzählen, dass ihr nur Knalltüten verkauft und sich das rechnet.

    Die mittelgroßen/regionalen Online-Shops findet man leider oft nur mit Glück, oder indem man bei den üblichen Verdächtigen schaut, wer deren Vertriebspartner ist.

  • Der nude Ossi

  • 196 @lemmy.blahaj.zone

    MusicBrulez

  • Anti Meme @sopuli.xyz

    When I'm hungry...

  • KDE @lemmy.kde.social

    This Week in Plasma: dark mode switch and global push-to-talk

    blogs.kde.org /2026/01/17/this-week-in-plasma-dark-mode-switch-and-global-push-to-talk/
  • ich_iel @feddit.org

    ich🌷iel

  • ich_iel @feddit.org

    ich🎄🪄💻iel

  • Science Memes @mander.xyz

    How I imagine mathematicians...

  • Firefox @lemmy.ml

    Copy RSS Button (Extension)

  • Programmer Humor @lemmy.ml

    Me, when doing error handling

  • Linux @lemmy.ml

    Underappreciated top

    friendo.monster /posts/underappreciated-top.html
  • Rust Programming @lemmy.ml

    Everybody's so Creative! (about library abstraction design)

    daymare.net /blogs/everbody-so-creative/
  • Memes @lemmy.ml

    When the webpage doesn't want you opening new tabs

  • Open Source @lemmy.ml

    What's up with FUTO?

    drewdevault.com /2025/10/22/2025-10-22-Whats-up-with-FUTO.html
  • Programmer Humor @lemmy.ml

    Escaping a string when passing through multiple tools

  • Dad Jokes @lemmy.world

    When your Dad gives birth to you

  • General Programming Discussion @lemmy.ml

    Fighting human trafficking with self-contained applications

    lwn.net /Articles/1036916/
  • General Programming Discussion @lemmy.ml

    Thunderbird Accessibility Study

    tilvids.com /w/3ymZQj1ikB9hdtpMmaP836
  • Programmer Humor @lemmy.ml

    Wish granted

  • ich_iel @feddit.org

    ich🦭🔄🐒iel

  • ich_iel @feddit.org

    ich🕜🫑🫙iel

  • Firefox @lemmy.ml

    Blasphemy! 😤