• 5 Posts
  • 76 Comments
Joined 9 months ago
cake
Cake day: March 28th, 2025

help-circle







  • SinTan1729@programming.devtoTechnology@lemmy.worldCloudfare outage post mortem
    link
    fedilink
    English
    arrow-up
    7
    arrow-down
    1
    ·
    edit-2
    26 days 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.




  • SinTan1729@programming.devtoProgramming@programming.devUsing Vim is Amazing
    link
    fedilink
    English
    arrow-up
    6
    arrow-down
    1
    ·
    edit-2
    1 month 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.









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