Learning Rust For Busy People
#7 – minised, part 2

Episode 7 · Season 1

#7 – minised, part 2

Learning Rust For Busy People

26:35

About this episode

Use Rust to develop a miniature version of the “sed” command-line utility, part 2. Covers topics that include an update to the level of detail covered in the podcast, considerations when selecting the name "build" or "new" for a constructor function that is associated with a "struct", differences between the Python Standard Library and Rust Standard Library when it comes to functionality for command-line interfaces and parsing command-line arguments, using "de-structuring" to create and assign values to multiple variables simultaneously, using the "clone" method to make a "deep copy", defining a custom "enum" type, several string-related methods (such as "split", "match_indices", and "split_at"), using "match" expressions, reading from standard input, using the "format!" macro to create new strings, and converting between "Strings" and "string slices".

Find more information about this podcast and the practical code examples here: https://joshroot.github.io/learning-rust-for-busy-people-podcast



This is a public episode. If you would like to discuss this with other subscribers or get access to bonus episodes, visit learningrustforbusypeople.substack.com

More from Learning Rust For Busy People

Use Rust to develop a miniature version of the “sed” command-line utility, part 1. Covers topics that include a subset of functionality for the “sed” command-line utility that’s used for replacing tex…

21m

Use Rust to extract text from a Markdown file, part 3. Covers concepts that include how to implement error handling by treating problems as either "unrecoverable" errors (by calling the "panic!" macro…

27m

Use Rust to extract text from a Markdown file, part 2. Covers concepts that include refactoring a program into a binary crate and a library crate for separation of concerns, passing command-line argum…

22m

First practical code example. Use Rust to extract text from a Markdown file. Covers how to use Rust to read the contents of a text file, iterate through lines of a text file, manipulate a String by re…

19m