Closed miguelraz closed 1 year ago
I like the idea of building a small library with best practices, however:
Proposal:
We write a high-quality example library (shapes, or pangram, or whatever) and we stick it in the repo under rust-training/examples. We then point to the examples from the slides, and call out various components.
Some things we should highlight:
lib.rs
vs using sub-modules and pub use submodule::Thing
cargo doc --open
This overlaps a lot with what we planned for simple_db and shapes, but it is bit more detailed and explicit but not different enough to be its own thing at this point. So my proposal would be to basically start where simple_db stops, and focus on the points not mentioned there.
A first-pass short version is in #47. We can add more material later if required. Some of this material can also be moved into a more advanced/detailed deck if desired.
@miguelraz do you want to finish this one up or close it for now?
Ping @miguelraz again.
Closing until we have a better reason to open this up again.
I think I like where these slides are going.
We'll scaffold a small
is_pangram
library and handle a few corner cases as enums as we hit them.I think it's a good (and brief enough) story that should work as slides.
Making the pull request to get some early feedback.