I have been programming in Rust for about 8 years now. I love the language. But I feel I have some confessions I must make.

  1. I don’t know if I use tabs or spaces in my final code. I just assume that it all get solved correctly by cargo fmt. I don’t even understand that people have been arguing about this for real? I vaguely remember this being important in C and C++, but I am hoping I never go back to those dark days.

  2. I never do linebreaks, not even when adding my semicolons. I hit “:w” and if shit doesn’t move around on my screen, I fucked up somewhere.

  3. The only lifetime I ever use is '_, 'a or 'static otherwise I give up

  4. Wtf is the 'de lifetime in serde deserialize??

  5. Rocket is the best web server

  6. I actively chose software written in Rust over other software, even if it’s not better, and I argue that it is.

Okay, got that of my chest. Never dared telling anyone this before. Feels scary

  • SufferingSteve@feddit.nuOP
    link
    fedilink
    English
    arrow-up
    3
    ·
    19 hours ago

    Done a lot of embedded work as well, but now mostly webstuff. I think I would prefer the embedded again, web is horrible the more you get to users and browsers, wasm isnt really all that, so many caveats.

    Embedded is exhausting with its unsafe and slices everywhere. And whoever wanted most of the HAL traits to be fallible had me spinning in embedded-hal.

    Why have the errors when you can’t really handle most of them?

    But Jesus if probe-rs and the gang att ferrous systems aren’t revolutionizing the embedded space. It’s amazing. And now the official hal from esp32, it’s moving places!