Learning Rust For Busy People

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

22 min · 17. feb. 2026
episode #4 – Extracting text from a Markdown file, part 2 cover

Beskrivelse

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]

Kommentarer

0

Vær den første til å kommentere

Registrer deg nå og bli medlem av Learning Rust For Busy People sitt community!

Kom i gang

2 Måneder for 19 kr

Deretter 99 kr / Måned · Avslutt når som helst.

  • Eksklusive podkaster
  • 20 timer lydbøker i måneden
  • Gratis podkaster

Alle episoder

7 Episoder

episode #7 – minised, part 2 cover

#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. mai 202626 min
episode #6 – minised, part 1 cover

#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. april 202621 min
episode #5 – Extracting text from a Markdown file, part 3 cover

#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. mars 202627 min
episode #4 – Extracting text from a Markdown file, part 2 cover

#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