Learning Rust For Busy People

#4 – Extracting text from a Markdown file, part 2

22 min · 17 feb 2026
aflevering #4 – Extracting text from a Markdown file, part 2 artwork

Beschrijving

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 arguments to a program, using a vector, using the "dbg!" macro, the system of "ownership" in Rust, and what it means for a Rust program to "panic". 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 [https://learningrustforbusypeople.substack.com?utm_medium=podcast&utm_campaign=CTA_1]

Reacties

0

Wees de eerste die een reactie plaatst

Meld je nu aan en word lid van de Learning Rust For Busy People community!

Begin hier

2 maanden voor € 1

Daarna € 9,99 / maand · Elk moment opzegbaar.

  • Podcasts die je alleen op Podimo hoort
  • 20 uur luisterboeken / maand
  • Gratis podcasts

Alle afleveringen

7 afleveringen

aflevering #7 – minised, part 2 artwork

#7 – minised, part 2

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 [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 [https://learningrustforbusypeople.substack.com?utm_medium=podcast&utm_campaign=CTA_1]

20 mei 202626 min
aflevering #6 – minised, part 1 artwork

#6 – minised, part 1

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 text, the scope of features that we’ll include in the miniature “sed” utility that we’re building, how to define a “struct” in Rust, how to leverage the “Option” enum for a value that may be either something or nothing, how to instantiate a “struct” in Rust via an associated function in an implementation block, how to bring a “struct” into scope in the binary crate, and how to use the “unwrap_or_else” method on a “Result” enum and define a “closure”. Find more information about this podcast and the practical code examples here: https://joshroot.github.io/learning-rust-for-busy-people-podcast [https://joshroot.github.io/learning-rust-for-busy-people-podcast] Manual for the “sed” utility: https://www.gnu.org/software/sed/manual/sed.html [https://www.gnu.org/software/sed/manual/sed.html] 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 [https://learningrustforbusypeople.substack.com?utm_medium=podcast&utm_campaign=CTA_1]

11 apr 202621 min
aflevering #5 – Extracting text from a Markdown file, part 3 artwork

#5 – Extracting text from a Markdown file, part 3

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) or "recoverable" errors (by returning a "Result" enum), how to propagate errors using the question mark operator, and how to specify return types and return values for functions. Find more information about this podcast and the practical code examples here: https://joshroot.github.io/learning-rust-for-busy-people-podcast [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 [https://learningrustforbusypeople.substack.com?utm_medium=podcast&utm_campaign=CTA_1]

13 mrt 202627 min
aflevering #4 – Extracting text from a Markdown file, part 2 artwork

#4 – Extracting text from a Markdown file, part 2

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 arguments to a program, using a vector, using the "dbg!" macro, the system of "ownership" in Rust, and what it means for a Rust program to "panic". 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 [https://learningrustforbusypeople.substack.com?utm_medium=podcast&utm_campaign=CTA_1]

17 feb 202622 min