• 0 Posts
  • 21 Comments
Joined 9 months ago
cake
Cake day: January 2nd, 2024

help-circle







  • iarigby@lemmy.worldtoProgrammer Humor@lemmy.mlGot no time to code
    link
    fedilink
    arrow-up
    11
    arrow-down
    3
    ·
    4 months ago

    Also, tests ARE THE code, and equally important too! However so many people make the mistake of writing tests after the function, when the benefit is less immediate. They also have the illusion that they are done and have to do extra work. And since they didn’t write the test first, they most likely wasted a ton of time and energy on extra work of testing changes manually






  • the can’t add proper typing without adding a compiler. Whatever they add will be closer to puthon’s type hints. I’ve had to write primary in python lately and type hints help very very slightly, and tools like pyright catch so many false errors due to lack of hints in libraries that we’re forced to add ignore statements on too many lines. I genuinely don’t understand how there can be so many languages and all of them be painful to use




  • iarigby@lemmy.worldtoAsklemmy@lemmy.mlInsomnia
    link
    fedilink
    arrow-up
    4
    ·
    7 months ago

    yes, all of that are very important as well. Sometimes I think about how exhausting it is to follow all these, and try my best to forget about the fear of not falling asleep when going to bed. I’ve noticed that overcoming that psychological “surrender” had a big impact on nights where I experience some problems - it’s important to keep calm and not spiral. But damn, it’s hard living like this.


  • iarigby@lemmy.worldtoAsklemmy@lemmy.mlInsomnia
    link
    fedilink
    arrow-up
    4
    ·
    7 months ago

    one more thing: I have to limit the amount of stress inducing activities throughout a day/days so my brain is not in alert mode for too long. I have social anxiety so this mostly means spending enough time at home, not going to more than 2 different places during one day, etc.


  • iarigby@lemmy.worldtoAsklemmy@lemmy.mlInsomnia
    link
    fedilink
    arrow-up
    28
    ·
    7 months ago

    My rules to have a higher chance of falling asleep at 11-12

    • always wake up early, even after I went to bed late, otherwise I won’t be able to fall asleep on time
    • no active brain work (studying, working) after 8pm
    • no food after 7-8pm
    • no ceiling lights after 8-9 pm, only yellow dim lamps
    • no staying in bed if I couldn’t fall asleep. get up, go to another room, try again in 15-20 minutes

  • iarigby@lemmy.worldtoLinux@lemmy.mlNixOS for gamedev
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    7 months ago

    If you were able to set it up yourself I feel like nix learning curve shouldn’t be too hard for you. Especially since if you decide to go back, you’ll bring back lots of value - you can use nix package manager and home manager on any distro. I’m very interested to try them out but am a bit wary since I don’t have experience with nixos