Learning Rust For Busy People

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

22 min · 17 de feb de 2026
portada del episodio #4 – Extracting text from a Markdown file, part 2

Descripción

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]

Comentarios

0

Sé la primera persona en comentar

¡Regístrate ahora y forma parte de la comunidad de Learning Rust For Busy People!

Prueba gratis

Empieza 7 días de prueba

$99 / mes después de la prueba. · Cancela cuando quieras.

  • Podcasts solo en Podimo
  • 20 horas de audiolibros al mes
  • Podcast gratuitos

Todos los episodios

7 episodios

episode #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 de may de 202626 min
episode #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 de abr de 202621 min
episode #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 de mar de 202627 min
episode #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 de feb de 202622 min