I write bugs and sometimes features! I’m also @CoderKat@kbin.social.

  • 0 Posts
  • 8 Comments
Joined 2 years ago
cake
Cake day: June 21st, 2023

help-circle


  • Ugh, there’s some parts of YAML I love, but ultimately it’s a terrible format. It’s just too easy to confuse people. At least it has comments though. It’s so dumb that JSON doesn’t officially have comments. I’ve often parsed “JSON” as YAML entirely for comments, without using a single other YAML feature.

    YAML also supports not quoting your strings. Seems great at first, but it gets weird of you want a string that looks like a different type. IIRC, there’s even a major version difference in the handling of this case! I can’t remember the details, but I once had a bug happen because of this.

    Performance wise, both YAML and JSON suck. They’re fine for a config file that you just read on startup, but if you’re doing a ton of processing, it will quickly show the performance hit. Binary formats work far better (for a generic one, protobuffers has good tooling and library support while being blazing fast).



  • CoderKat@lemm.eetoProgrammer Humor@programming.devGolang be like
    link
    fedilink
    English
    arrow-up
    0
    ·
    edit-2
    2 years ago

    Let’s not pretend people acknowledge warnings, though. It’s a popular meme that projects will have hundreds of warnings and that devs will ignore them all.

    There’s a perfectly valid use case for opinionated languages that don’t let you get away with that. It’s also similar to how go has gofmt to enforce a consistent formatting.

    Honestly, I’ve been using Go for years and this unused variable error rarely comes up. When it does, it’s trivial to resolve. But the error has saved me from bugs more often than it has wasted my time. Most commonly when you declare a new variable in a narrower scope when you intended to assign to the variable of the same name (since Go has separate declare vs assign operators).




  • Yeah, women focus more on things like having good hair, clothes and makeup. Men could wear stuff like makeup, but most don’t because it’s “not manly”. On dating sites, women also put more effort into taking flattering photos. It’s almost hilarious how many men on dating sites, despite being there to try and attract people, use the ugliest, poorly lit, badly angled, generic selfie. And another huge chunk are sunglasses and ball hat in a car seat (you know the one).

    I’m bi and women and find frankly most people attractive, but women are very disproportionately more attractive.