Mel Robbins (not exact #quote):
"#Confidence is not something that you feel - it is something that you do. People often think: 'once I feel confident, I'll take action', but that's wrong. You have to force yourself in a moment of self doubt to do something. And when you see yourself taking action, the confidence follows. Confidence is the willingness to try.'"
100 #Rust binaries
A collection of 100 Rust #CLI tools.
"Identifiers can now contain non-ascii characters. All valid identifier characters in Unicode [...] can now be used. That includes characters from many different scripts and languages, *BUT DOES NOT INCLUDE EMOJI.*"
Meehhh...😭 I want my variable to be 🦀. ☹️
Very useful e.g. if you have an api that can either accept an existing thread pool (borrowed), or can provide a default one if none is provided (owned).
I know, there is also `std::borrow::Cow`, but it requires your value to be `Clone`able, which thread pools are often not (for good reason).
The rest is taken care of by the compiler.¯\_(ツ)_/¯
It absolutely changes the way you think about algorithms and data structures, because you can finally focus on them and make them really fast without fear.
I've read about this in the "Service trait" post:
The article is actually about a different topic, but they casually mentioned the 'static lifetime bound rule in a sentence, which has been so valuable to me.😍
I highly recommend the article - it mentions a lot of important concepts in #Rust.
And another epiphany in #Rust 🤯:
When you have a generic type parameter `T` that is bound to the 'static lifetime, it basically means that:
- the concrete type for `T` must not have any references in them
- or must not have references in them that live shorter than the lifetime of the program.
Especially the first point wasn't clear to me at all.😮
See this elaborate example:
Passionate Software Developer interested in Rust, TypeScript, Node, C# and a lot of other interesting stuff.
Dare to think for yourself.
This Mastodon instance is for people interested in technology. Discussions aren't limited to technology, because tech folks shouldn't be limited to technology either!