Is there a good mnemonic for remembering borrowed : owned types in Rust?
&str : String
&[u8] : Vec<u8>
These are easy because I see them often. Knowing the owned equivalent of Path (it's PathBuf) is harder.
miniblog.
Related Posts
One crucial skill in programming is knowing how to get answers to small, well defined questions.
When I started writing code I'd sometimes get completely stuck with syntax. These days I'd hop on IRC or Stack Overflow.
When I've been a mentor, I try to show where I get answers.
It is remarkably difficult to learn what a programming language is like work with.
It's easy to conclude '$LANG is rubbish, it doesn't even have a good way of doing $TASK!' due to not knowing the available tools well. 1/n
Emacs is full of specialised commands that you don't need right now, but knowing their existence will help later. Eg `C-x C-t' or `C-x C-x'.