• 2 Posts
  • 518 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…


  • Presumably you’re using an IDE or smart text editor to run your code. Otherwise you’d be running e.g. cargo build and cargo test from the command-line quite often.

    The difference to Pip is that Cargo detects changes in the Cargo.toml and will automatically install all the necessary dependencies, when you run cargo build or cargo test (or other similar commands). And since your IDE / editor runs these for you, it looks to you like you’re just editing a text file.

    It should also be said that Pip has a somewhat unusual workflow in that you pip install everything, which would normally install it globally into your operating system. And then with venv, you kind intercept that to install it into the .venv/ folder in your repo instead.
    This workflow doesn’t make a ton of sense, if you always have a repo folder where the dependencies can be installed into, so Rust just doesn’t do it that way.
    (In particular, installing dependencies globally quickly causes issues when different projects have different version requirements for the same library.)

    There is a cargo install command, but it’s only for installing applications, not libraries.




  • Ephera@lemmy.mltoGames@lemmy.worldStop killing games
    link
    fedilink
    English
    arrow-up
    1
    ·
    2 days ago

    All the initiatives I’ve read so far, did have pretty concrete suggestions for how laws should be changed. In my experience, law makers will gladly consider a suggestion, because making laws is hard. Yes, that means lobbying is rather easily possible, but consumers are the group that does the least amount of lobbying.




  • Yeah, I had to figure out what it really is from Wikipedia and my two reactions were:

    • Ubisoft has a ‘universe’? Huh, I guess, they do have a few franchises there.
    • That actually sounds reasonably interesting. At least it’s not just yet another uninspired shooter.

    And like, yeah, lacklustre marketing puts it quite well. I had heard of XDefiant before, but all I got from that was that it’s a shooter, which made me fall asleep immediately.
    Had they sold it as “You ever wanted to pit the Splinter Cell guy against the Far Cry bandits?”, I would have at least remembered it.

    But to be fair, a lot of games are currently coming out. It is difficult to be seen for pretty much all titles…


  • 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
    ·
    3 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.


  • There’s this open-source, Diablo-like game/engine, called FLARE, which I find interesting in that regard, because the basic gameplay is there. My monkey brain is having fun with it, i.e. getting an endorphine rush, because big numbers go brr.

    But they obviously don’t have the budget of Blizzard, to try to hide that that’s what it’s doing.
    I think, around 4 times throughout the campaign, you get the same spider model, but this time it’s five levels stronger than last time. 🙃