• 1 Post
  • 381 Comments
Joined 4 years ago
cake
Cake day: May 31st, 2020

help-circle
  • Normally, the process is:

    • install the packages for the desktop environment
    • log out (not just locking the screen)
    • find a dropdown or cogwheel where you can select the other desktop environment
    • log in

    Having said that, I don’t know what you mean with “graceful”. Desktop environments may involve lots of packages, which may create configuration files in your home directory or get auto-started in your other DEs, so it can be messy.
    Something minimal, like LXQt or the various window managers, isn’t going to cause much of a mess, though.

    I guess, creating a second user with a separate home-directory, like the other person suggested, would isolate that potential mess…



  • I mean, that is more obvious and more readable.

    But what I really don’t like about it, is that it’s less clear to what it applies. For example:

    not list.isEmpty() and x > 3
    

    Is that not (a and b) or (not a) and b?
    Obviously, you can define precedence rules, like there also is for !, but that’s again just additional things to learn.
    I’m definitely not generally opposed to special characters. I do also hate significant whitespace, because I find that less readable than braces.



  • For me, it’s pretty much the opposite. With the exclamation mark, I’ll see the inversion, then I’ll read the actual condition and try to make sense of it, and then I’ll remember that this thing was supposed to be inverted. Or I won’t remember, that’s unfortunately also a possibility.

    Might just be what we’re used to, though. I have been working in a codebase with mostly .not() for the past year.


  • Ephera@lemmy.mltoProgrammer Humor@programming.devNot
    link
    fedilink
    arrow-up
    1
    arrow-down
    1
    ·
    4 days ago

    Oh, I know where it came from. That’s also why we have all kinds of maths operators in the syntax of virtually any programming language. Because back when we didn’t yet know where this programming thing was going, we just threw in the conventions of maths and theoretical logic.

    What I’m saying is that we have our own conventions now, i.e. objects and methods, so I think, it’s worth reconsidering whether we still want to have these old conventions that are special cases in the syntax.



  • I feel like there’s just too many different programming workflows, to try to pre-install them.

    Here on openSUSE, there’s ‘patterns’ you can install, which are basically just groups of packages, and they’ve got some pre-defined patterns for programming:

    I feel like that kind of goes in a more useful direction, although it’s still partially questionable what those contain. For example, the Java development pattern comes with Ant as the build system, when Maven and Gradle are more popular, I believe.

    I also have to say that I often prefer installing programming tooling in distro-independent ways, and ideally automated in the project repo, to avoid works-on-my-machine situations.
    Of course, something like Git, Docker, VMs etc. tend to be stable across versions, and I might not care for having the newest versions, but even with those, I think it’s good to install them on demand, rather than having them pre-installed. If the distro simply makes it a breeze to install them, that’s ideal IMHO.




  • As others have already said, Kate should work as text editor. I think, the only thing that’s not built-in is base64 en-/decoding, but you can set that up like this:

    That’s for decoding. For encoding, just change the name to “base64 encode” (exact name doesn’t matter) and remove the “–decode” from the Arguments-field.
    This relies on a CLI utility called base64, which is going to be pre-installed on most distros.
    It’s not entirely perfect, because it’ll always insert a newline, as that’s part of the base64 output. If you do want to get rid of that, you could write a tiny script and then call that script instead, but obviously, you don’t have to.

    You can also install Kate on Windows, if you want to give it a test-ride: https://kate-editor.org/
    (The base64 CLI won’t be available on Windows, though.)


  • My workplace preinstalls Ubuntu, personally I’m using openSUSE. I don’t even think that Ubuntu is particularly bad, I’m mainly frustrated with it, because it’s just slightly worse than openSUSE (and other distros) in pretty much every way.
    It’s less stable, less up-to-date, less resilient to breakages. And it’s got more quirky behaviour and more things that are broken out-of-the-box. And it doesn’t even have a unique selling point. It’s just extremely mid, and bad at it.



  • For example Rust needs to be able to dynamically allocate memory for all of its syntax to be intact.

    Hmm, you got an example of what you mean?

    Rust can be used without allocations, as is for example commonly done with embedded.
    That does mean, you can’t use dynamically sized types, like String, Vec and PathBuf, but I wouldn’t consider those part of the syntax, they’re rather in the std lib…