Course Hive
Search

Welcome

Sign in or create your account

Continue with Google
or
Rust #3.1 - Generics and Configurable Types
Play lesson

Build a Blockchain from Scratch with Rust - Rust #3.1 - Generics and Configurable Types

5.0 (5)
40 learners

What you'll learn

This course includes

  • 3.3 hours of video
  • Certificate of completion
  • Access on mobile and TV

Summary

Full Transcript

In this lesson, we enhance the readability and flexibility of our Rust blockchain code by abstracting hardcoded types into custom, expressive types. Instead of using hard coded types like string and u32 throughout our code, we create specific types like AccountID, Balance, and BlockNumber. This approach makes our code more understandable and easier to maintain. You'll learn how to define these custom types and integrate them into both the system and balances pallets. By the end of this video, your code will be cleaner, more expressive, and prepared for future modifications without confusion. This video is part of a learning journey created by WEB3DEV. To watch all videos and learn more, sign-up at https://build.w3d.community/

Course Hive

Continue this lesson in the app

Install CourseHive on Android or iOS to keep learning while you move.

Related Courses

FAQs

Course Hive
Download CourseHive
Keep learning anywhere