• 39 Posts
  • 3.01K Comments
Joined 6 years ago
cake
Cake day: May 31st, 2020

help-circle


  • Will mich da mal nochmal damit ausprobieren, weil ich mir erhoffe, dass es konfliktfreier über Systeme ge-synced werden kann, weil eben nicht mehr die gesamte Datenbank-Datei als geändert markiert wird, sobald man auch nur ein Passwort ändert.

    Aber ja, hatte das vor einer Weile schonmal probiert und war mir damals doch zu minimalistisch…




  • Ephera@lemmy.mltoProgrammer Humor@lemmy.mlTOML
    link
    fedilink
    English
    arrow-up
    1
    ·
    15 hours ago

    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.


  • Ephera@lemmy.mltoProgrammer Humor@lemmy.mlTOML
    link
    fedilink
    English
    arrow-up
    2
    ·
    1 day ago

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

    [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.


  • Ephera@lemmy.mltoProgrammer Humor@lemmy.mlTOML
    link
    fedilink
    English
    arrow-up
    4
    ·
    1 day ago

    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.


  • Für mich taugt es, explizit keinen höheren Sinn zu erwarten.
    Also ja, irgendwo alles nicht so krass bedeutungsvoll, aber das Gleiche gilt eben auch für die eigenen Sorgen. Gibt keinen krassen Grund zu leben, aber auch keinen krassen Grund es nicht zu tun.

    Dadurch versteift man sich auch nicht so darauf diesen Sinn zu suchen, sondern macht eben was man in kleinen Sinne für sinnvoll erachtet. Dann macht man vielleicht mit der Zeit auch noch mehrere solcher sinnvoller Dinge und irgendwann fragt man sich gar nicht mehr, was jetzt der große Sinn ist, weil man so viele kleine Sinne hat.


  • Ephera@lemmy.mltoProgrammer Humor@lemmy.mlTOML
    link
    fedilink
    English
    arrow-up
    33
    ·
    edit-2
    2 days ago

    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.)

  • Ephera@lemmy.mltoProgrammer Humor@lemmy.mlTOML
    link
    fedilink
    English
    arrow-up
    3
    ·
    2 days ago

    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.



  • Find’s wertvoll, dass das öffentlich ausgetragen wird. Viele Kapitalisten sind maximal opportunistisch unterwegs und behalten sich vor mit Nazis zu kooperieren, sobald es finanziell vorteilhaft wird.

    Mag sein, dass die Klage dafür gedacht war, Campact mundtot zu machen, aber schon die Klage selbst hat erfordert, dass sich Theo Müller dazu hinreißen lässt, explizit zu sagen, dass er nicht die AfD unterstützt.

    Egal wie dicke er mit Alice Weidel ist, so eine Aussage kommt bei der Basis der AfD erstmal wie sie gesagt wurde an.
    Und naja, mal schauen, vielleicht bricht es ja auch das ewige Schweigen der Kapitalisten.





  • Man, I do love when Wikipedia is Just Stating Facts™ and yet reads like the sassiest gossip, because reality is just so dumb[1].

    Ivanka Trump [Trump’s daughter with his first wife] has been described as the inspiration of Mar-a-Lago face.

    Kristi Noem, Melania Trump [Trump’s third wife], and Kimberly Guilfoyle have been described as having Mar-a-Lago face.

    He does like to talk about wanting sex with Ivanka, so I guess, that tracks.

    Melissa Rein Lively, a MAGA political worker, was reported […] to reject “any idea of submission or constraint” associated with Mar-a-Lago face, and that “no one forces me to do two hours of sport a day, to go to the hairdresser every three and a half weeks, to get my nails and eyebrows done, to get Botox.”

    Blink twice, if you’re being forced to say this…? Seriously, why would you list a bunch of unpleasant aspects, if you’re trying to make the point that you don’t mind it?


    1. By the way, we do have a great word for this in German: Realsatire – when reality is so ridiculous that merely recounting it sounds like satire. ↩︎


  • One thing that will become important pretty quick if you continue making these scripts is that it’s almost always better to wrap your variables in quotes - so it becomes yt-dlp -x “$a.

    Oh man, this reminds me of the joke that any program that’s more complex than Hello World has bugs – and folks still don’t even agree how to spell “Hello, World!”.

    Of course, Bash is a particular minefield in this regard…