Description
Use design patterns to step up your object-oriented ABAP game, starting with MVC! Want to create objects only when needed? Call objects only when required, minimizing runtime and memory costs? Reduce errors and effort by only coding an object once? Future-proof your code with a flexible design? Design patterns are the answer! With this guide, you'll get practical examples for every design pattern that will have you writing readable, flexible, and reusable code in no time! Creational Design Patterns: Create objects with the abstract factor, builder, factory, lazy initialization, multiton, prototype, and singleton design patterns. Structural Design Patterns: Allow objects to interact and work together without interdependency with the adapter, bridge, composite, data access object, decorator, facade, flyweight, property container, and proxy design patterns. Behavioral Design Patterns: Increase the flexibility of your object communication with the chain of responsibility, command, mediator, memento, observer, servant, state, strategy, template method, and visitor design patterns. Highlights:
- MVC (model, view, controller) pattern
- Singleton pattern
- Factory pattern
- Builder pattern
- Observer pattern
- Visitor pattern
- Lazy initialization pattern
- Template method
- Strategy pattern
- Decorator pattern
- ABAP-specific examples
- Anti-patterns