ferrous-systems / rust-training

Learning materials for the Rust Training courses by Ferrous Systems
144 stars 19 forks source link

WIP: Start of Good Design Practices #19

Closed miguelraz closed 1 year ago

miguelraz commented 1 year ago

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.

jonathanpallant commented 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:

Mirabellensaft commented 1 year ago

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.

jonathanpallant commented 1 year ago

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.

jonathanpallant commented 1 year ago

@miguelraz do you want to finish this one up or close it for now?

jonathanpallant commented 1 year ago

Ping @miguelraz again.

miguelraz commented 1 year ago

Closing until we have a better reason to open this up again.