When I wrote my first Rust program, I got the advice "just clone everything until v1 compiles". I think this OK advice, but I think a better rule of thumb is "used owned types as much as possible".
I spent a ton of time returning &str or &[T] and fighting the borrow checker.
miniblog.
Related Posts
Today I learnt that a continually blinking caps lock on Linux signifies a kernel panic: https://unix.stackexchange.com/questions/3840/the-caps-lock-and-scroll-lock-lights-are-flashing-and-everything-is-frozen
(On the plus side, it's the first time I've encountered this despite using Linux for years.)
Tried `just` (the task runner) today, and I really like it. npm has scripts, but `just` works anywhere.
Editor integration is also excellent: you can get by with Makefile highlighting, but in Emacs you can even run everything interactively!
https://github.com/casey/just
A fun example of Emacs composability: run spell check when you're viewing files, so you can fix typos in file names: