New Rustacean

e020: Putting code in its place

New Rustacean

How do we organize code in Rust? Where do we break it apart into modules or crates, and why?


Structuring code in a language like Rust can seem a bit more ambiguous than doing the same in a language with classes to attach all our functionality to, but in practice, the concerns are much the same: modules are namespaces, and we group by responsibility. In today's episode, I talk through that philosophy (and give some comparisons to other languages), and then look at what it looks like in practice!


(Thanks to the couple people donating who opted out of the reward tier, as well. You know who you are!)

Become a sponsor


Next Episodes

New Rustacean

Bonus 8: Giving back (by teaching) @ New Rustacean

πŸ“† 2017-03-19 16:00 / βŒ› 00:13:30

New Rustacean

e019: Let's `Clone` a `Cow` @ New Rustacean

πŸ“† 2017-02-28 23:20 / βŒ› 00:18:11

New Rustacean

CYSK: clap @ New Rustacean

πŸ“† 2017-02-15 03:33 / βŒ› 00:10:42

New Rustacean

e018: `Borrow`, `AsRef`, `Deref`: my head hurts now @ New Rustacean

πŸ“† 2017-02-01 00:32 / βŒ› 00:17:25

New Rustacean

CYSK: quick-xml @ New Rustacean

πŸ“† 2017-01-09 15:03 / βŒ› 00:08:38