-
Book Overview & Buying
-
Table Of Contents
Design Patterns and Best Practices in Rust
By :
In this chapter, we'll explore the second set of behavioral design patterns in Rust and see how they can enhance our calculator with better state management, data traversal, and optimization capabilities. These patterns help us manage the flow of information and control within our application, making it more robust, maintainable, and responsive to changes.
We'll continue developing our Correct Calculator project, building on the patterns established in previous chapters. By now, our calculator has a solid foundation built with creational patterns, a well-organized structure courtesy of structural patterns, and the ability to process operations thanks to the behavioral patterns from the previous chapter. The patterns in this chapter will complete our calculator, transforming it into a full-featured application that can handle complex scenarios elegantly.
These design patterns have their origins in traditional object-oriented...