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.
-
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.
-
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.
-
The only lifetime I ever use is '_, 'a or 'static otherwise I give up
-
Wtf is the 'de lifetime in serde deserialize??
-
Rocket is the best web server
-
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
I get payed to write c++ but try to integrate rust in my hobby projects once a year. It starts and ends always the same way. At first the std lib makes coding seem easy but once the code gets more complicated I run against a wall called async, named lifetimes or restructuring the code to please the borrow checker (that’s good I guess). I see that those are things you need to learn. But my time is limited since having a family and my brain has become slower over the years.
Regarding point 5. I am worried about the amount of sub dependencies one dependency pulls in (not only rocket). Gives me a feeling of being not in control and I don’t think I am able to grasp how each dependency works.
Currently I am trying to do network stuff just using std::net::* will see how far I get this year.