• 0 Posts
  • 46 Comments
Joined 2 years ago
cake
Cake day: July 1st, 2023

help-circle





  • Giooschi@lemmy.worldtoLinux@lemmy.ml$HOME, Not So Sweet $HOME
    link
    fedilink
    English
    arrow-up
    3
    arrow-down
    4
    ·
    4 months ago

    I hate all the cruft in my home directory, but I also hate when stuff suddently stop working after an update, or when all the documentation online talks about something that doesn’t work on my system or is not there anymore. Developers are the ones that will have to deal with people with these issues, so I can see why they are reluctant to implement the naive solutions that some ask for.



  • If you distribute your app via Flatpak, what benefit is there over “disk space” (irrelevant for all but embedded devices)

    Everyone always focuses on disk space, but IMO the real issue is download size, especially when you update a bunch of flatpaks together.

    I still prefer the upstream flatpaks over Fedora’s though.


  • Well, but then you’re basically just pushing the mutability onto the container

    That’s the point, when programming with immutable structures you always pass the mutability onto the enclosing structure.

    It’s a good strategy at times though. Like say you’re working in a language where strings are immutable and you want a string you can change. You can wrap it in a list along the lines s=['foo'] and pass references to the list around instead. Then if you go s[0]='bar' at some point, all the references will now see ['bar'] instead.

    A list is an antipattern here IMO. Just wrap it in some dedicated object (see e.g. Java’s StringBuilder).







  • Zig is “c”, but modern and safe.

    Zig is safer than C, but not on a level that is comparable to Rust, so it lacks its biggest selling point. Unfortunately just being a more modern language is not enough to sell it.

    So imagine if trying to fit in a C-like cousin failed

    C++ was not added to Linux because Linus Torvalds thought it was an horrible language, not because it was not possible to integrate in the kernel.