Udemy

Building Reusable Code with Rust

Enroll Now
  • 632 Students
  • Updated 4/2019
4.4
(66 Ratings)
CTgoodjobs selects quality courses to enhance professionals' competitiveness. By purchasing courses through links on our site, we may receive an affiliate commission.

Course Information

Registration period
Year-round Recruitment
Course Level
Study Mode
Duration
1 Hour(s) 59 Minute(s)
Language
English
Taught by
Packt Publishing
Rating
4.4
(66 Ratings)

Course Overview

Building Reusable Code with Rust

Use generics, traits, and macros to write clean and reusable Rust libraries that are easy to understand and maintain

Rust is the ideal language for writing safe, correct code in a way that won't make you pull your hair out. This course will teach you how to build reusable Rust code so that you can stop copying and pasting code. Write code that can adapt to many different usages.

You will reuse code by using advanced features such as traits, generics and macros. You will work with different forms of code reuse, loops, map, filter and fold to save time and resources. Achieve higher-level reuse without sacrificing runtime performance. Organize your code into modules and crates to publish them to crates. io.

By the end of the course you will be able to avoid code duplication and write clean reusable code.

About the Author

Shing Lyu is a software engineer and open-source promoter. Shing contributed to Mozilla's Servo and Gecko (Firefox) browser engines using Rust, and is active in Rust study groups, training, and conference talks. Shing is passionate about coding, automated testing, and promoting free and open-source software craftsmanship.

Course Content

  • 5 section(s)
  • 27 lecture(s)
  • Section 1 Basics of Code Reuse
  • Section 2 Using Generics in Rust
  • Section 3 Defining Interfaces with Traits
  • Section 4 Hacking the Language with Macros and Compiler Plugins
  • Section 5 Reusing the Code with Other People Using Modules and Crates

What You’ll Learn

  • Write clean and reusable Rust code for your applications
  • Use loop, map, filter and fold to avoid duplicated code
  • Understand generics and learn to use it to abstract algorithms for multiple data types
  • Define and enforce clear interface using traits
  • Work with macros and compiler plugins for metaprogramming
  • Explore how the standard library uses features such as generics, traits and macros
  • Structure your code with modules and crates and publish them online

Reviews

  • I
    Istamar Rozid Nugraha
    4.5

    easy to understand and get all the points

  • T
    Thornton Rose
    4.0

    Explanations and examples are good. Exercises for the student should be provided.

  • P
    Pratik Sharma
    4.0

    The Traits and Generic section are great. The Macros section doesn't give you much details about macros or how to build one yourself. Please try to extend the Declaractive and Procedural Macro section, add or build some macros that would be much more informational.

  • A
    Akita Tao
    5.0

    Very good

Start FollowingSee all

We use cookies to enhance your experience on our website. Please read and confirm your agreement to our Privacy Policy and Terms and Conditions before continue to browse our website.

Read and Agreed