Workshops¶
Welcome to the mp-units workshops — hands-on exercises to practice advanced patterns and techniques with type-safe physical quantities and units in C++.
What are Workshops?¶
These workshops combine elements of learning-oriented tutorials with practical exercises to help you master advanced mp-units patterns through hands-on practice.
Each workshop:
- ✅ Teaches through doing with exercise-driven TODO markers
- ✅ Provides real-world scenarios and practical code
- ✅ Leverages strong types and modern C++ features
- ✅ Includes interactive code snippets via Compiler Explorer
- ✅ Progresses from basic refactoring to advanced topics
Prerequisites: Complete the Tutorials first for step-by-step learning. Review the User's Guide as needed for deeper understanding of concepts.
Learning Path¶
Foundation Workshops¶
Build essential skills through refactoring and practical patterns:
- Refactor to Strong Types
- Refactor to Generic, Type-Safe Interfaces
- Extracting Numeric Values
- Working with Temperatures
- Affine Spaces and Reference Origins
- Interop with
std::chrono
Extensions Workshops¶
Create domain-specific quantity systems:
- Custom Units for Dimensionless Counters
- Typed Quantities of the Same Kind
- Custom Quantity Specifications
- Custom Base Dimensions
- Preventing Confusion with Distinct Kinds
Advanced Workshops¶
Master sophisticated patterns:
When to Use Workshops?¶
Use Workshops when you:
- Want hands-on practice with advanced patterns
- Need to master specific library features through exercises
- Prefer learning by doing with guided TODO markers
- Are ready to move beyond basic tutorials
- Want to apply mp-units in real-world scenarios
Other Resources¶
- Tutorials - Learning-oriented lessons for getting started
- User's Guide - Explanation-oriented understanding of concepts
- How-to Guides - Task-oriented solutions to specific problems
- Examples - Complete, runnable applications
- Reference - Information-oriented technical descriptions