• 0 Posts
  • 213 Comments
Joined 1 year ago
cake
Cake day: February 15th, 2025

help-circle

  • HelloRoot@lemy.loltoProgrammer Humor@lemmy.mlTrue crime
    link
    fedilink
    English
    arrow-up
    26
    ·
    edit-2
    7 months ago

    The only flaw is that the console.log states that null means user is not logged in.

    If there are three or more explicit states, you should not use a nullable bool, but some more explicit data structure, like enum.

    For example, if the state comes from a db, the user could be successfully logged in, but somehow for a range of possible reasons this variable ends up as null and you’ll have a hell of a time debugging, because the log will give you nonsense.





  • when i was about to install steam i found a tutorial on it with 3 - 4 pages full of text and was a bit overwhelmed

    Here is my tutorial:

    • enable multilib repo by editing pacman config
    • sudo pacman -Syu steam

    It’s as easy as that. Thats how I run it.

    and i read now im responsible on maintaining it, what does it mean? is it just finding and testing drivers? or system update? what is the easiest way to do it? and what i getting myself into?

    When I started my Linux journey, I went with Ubuntu and kept breaking it every year for a couple of years, which taught me a lot. Then eventually I hopped to Arch and I’ve been running the same setup since. For over 6 years now. I am very lazy, so I don’t do anythjng special unless it breaks.

    My setup has automatic btrfs snapshots and manual offsite backups with borg.

    My workflow is:

    • every friday evening after work, I do an update and reboot.

    • If everything works, I do a borg backup. Most update fridays are like this and end here.

    • If it’s broken (this year it’s been 2 times so far, last year iirc 3 times) I read the journal log, find the cause, fix it by live booting an arch usb stick and chrooting into mt system and following the archlinux forum or reddit or news. (For example recently, there was a kernel bug with btrfs, someone on reddit posted a mailing list link with a command that solved it)

    • Sometimes there is an issue with an app I have, especially if it’s from the AUR. Often a reinstall fixes it, otherwise I fix the PKGBUILD and let the maintainer know what was broken.

    • After it is broken, I go through all the .pacnew files and merge them (The wiki says you should do it after every update, but I’m lazy)

    • After I fixed it, I do a borg backup.

    • If it takes too long to fix or I am especially lazy, I restore a btrfs snapshot and try next week. Usually the issue is resolved by then or somebody solved it on reddit.

    So yeah it’s quite involved, but I got better at it with time and again, most of the time everything just works and I can enjoy weekly improvements or new features to play with.

    I am a bit on the fence which advice to give you. Either keep it and run with it for a while longer or install a simpler gaming focused distro. It’s up tp you really.






  • What? No.

    At least in all the libraries I’ve been to in my life there is a dedicated section for operating systems, which contains a subsection with just Linux books. You can ask the receptionist “Where is the Linux section?”, walk up to it and there it is. And you can grab a book and skim through it to see whether it suits you.

    How is that not information on exactly that specific topic?


    Genuine question:

    Have you ever been to a library when looking for something specific? Was your experience vastly different from mine?










  • HelloRoot@lemy.loltoProgramming@programming.devA theory I have
    link
    fedilink
    English
    arrow-up
    4
    arrow-down
    5
    ·
    edit-2
    8 months ago

    First, read my text fully before replying.

    But additionally I have a brain and can use it to double check:

    In example 1. I just build it blindly because it’s a game and it doesn’t matter if it’s wrong. But it ended up being correct and I ended up having more fun instead of doing excel for an hour.

    In 2. the math result was not far off from my guesstimate and I confirmed later, it was correct.

    In 3. it gave me a source and I read the source. Google did not lead me to that source.

    When I let LLM write code, I read the code, then I test the code. Here is where I get the most faults. Not in spreadsheets or math or research.