SinTan1729

  • 8 Posts
  • 88 Comments
Joined 8 months ago
cake
Cake day: March 28th, 2025

help-circle

  • SinTan1729toTechnology@lemmy.worldCloudfare outage post mortem
    link
    fedilink
    English
    arrow-up
    6
    arrow-down
    1
    ·
    edit-2
    17 hours ago

    I hope you’re joking. If anything, Rust makes error handling easier by returning them as values using the Result monad. As someone else pointed out, they literally used unwrap in their code, which basically means “panic if this ever returns error”. You don’t do this unless it’s impossible to handle the error inside the program, or if panicking is the behavior you want due to e.g. security reasons.

    Even as an absolute amateur, whenever I post any Rust to the public, the first thing I do is get rid of unwrap as much as possible, unless I intentionally want the application to crash. Even then, I use expect instead of unwrap to have some logging. This is definitely the work of some underpaid intern.

    Also, Python is sloooowwww.



  • I have a Framework 13 with the super button instead of Windows button, but I’ve set it up similarly to how the Windows buttons works in Windows. Pressing it by itself opens the KDE app menu, super+D goes to desktop, super+L locks screen, super+[ or ] moves around virtual desktops, super+W shows overview, supe+T shows tiles config, super+arrows do snapping, super+PgUp/PgDn/X for maximize/minimize/close etc.


  • SinTan1729toProgrammingUsing Vim is Amazing
    link
    fedilink
    English
    arrow-up
    6
    arrow-down
    1
    ·
    edit-2
    13 days ago

    Welcome to the club. Don’t worry too much about setting it up perfectly in your first attempt. You’re gonna rewrite your whole config every year-ish anyway. (Or is that just me? 😥) Also, try Neovim. It’ll be a drop-in replacement for your current config. But Lua is just a superior language compared to Vimscript, so you’ll have a much better performance in the future. You also get all the sweet LSP and treesitter features.











  • SinTan1729toLinuxDocker Alternative: Podman on Linux
    link
    fedilink
    English
    arrow-up
    6
    ·
    23 days ago

    I like quadlets, but I wish podlet could handle translating external networks. Right now, it just fails, and needs manual intervention. Also, afaik, there’s no way to preserve comments when translating.

    For me, it’s the opposite. I vastly prefer the compose syntax. In general, I guess I prefer yaml based syntax to toml or json based ones. It’s just more readable due to the indentation.