This course is delivered in co-operation with Doulos' training partner Feabhas, who specialise in training courses for real-time embedded developers.
Everyone seems to be talking about design patterns these days. This course is designed to both show you what they are and how they can be applied to real-time C++ embedded systems.
It answers the following questions:
• What are design patterns and why should I be bothered by them, especially in embedded systems?
• Who are the “Gang of Four” and how is their work relevant?
• Which patterns are easy to work with and are most commonly found in embedded systems?
• Are there any specific patterns to embedded systems?
• What are anti-patterns?
• What is the difference between a pattern and an idiom?
• To understand what Design Patterns are and how the language of patterns can aid designers and developers to be more productive.
• To provide practical experience of working with Design Patterns.
• To understand the significant “Gang of Four” set of classical patterns and patterns associated specifically with multi-tasking embedded systems.
• To see how the patterns language can be used to document bad designs as, so called, “anti-patterns”.
• To give you the confidence to apply these new concepts to your next real-time project.
• To develop your understanding of Object Orientated principles through the lessons of others that are captured by design patterns.
Introduction
- History
- What is a design pattern?
- GoF design patterns
- Typical problems in embedded systems
- Design patterns in embedded systems
- Intention of this course
Creational Patterns
- Singleton
- Abstract Factory
- Builder
- Prototype
- Factory
Structural Patterns
- Bridge
- Smart Pointers
- Reference counting
- Adapter
- Decorator
- Façade
- Composite
- Proxy
- Flyweight
Behavioural Patterns
- Chain of Responsibility
- Strategy
- Template method
- Interpreter
- Iterator
- Mediator
Object Orientated Callbacks
- Observer
- C++ callbacks
- Command pattern
- Publish and Subscribe
Anti- Patterns
- God class
- Lava flow
- Poltergeists
- Stove Pipe
Real Time Patterns
- Threading
- Mutex
- Semaphores
- Thread Pools
- Barriers
- Futures
- Latches
- Exchangers
- Notifications
- Executors
- Transactions
Real Time Anti-patterns
- Thread Affinity
- Race conditions
- Deadlock
- Livelock
- Priority inversion
Design Patterns in C++ for Embedded Systems