Design patterns are the ultimate toolkit for programmers. Furthermore, we use them to create maintainable software. This post goes through the design patterns and provides sample Java codes. The Need For Design Patterns Design patterns are known solutions to common
How to use Command Design Pattern in Rust
This Design Pattern uses commands to wrap and invoke capabilities. A car can run faster and slower. We can have commands AccelerateCommand and DecelerateCommand for increasing and decreasing speed, respectively. We can also have AccelerateAndDecelerateCommand to run both capabilities in a certain order.