Complex data structures and design patterns (PHP)
It starts with an introduction to complex data structures. Students will learn how to use and implement advanced data structures such as maps, sets, stacks, queues and graphs. These data structures offer advanced possibilities for efficient data management and manipulation that go beyond simple arrays and objects.
An essential part of the course is the use and implementation of design patterns. Participants will learn what design patterns are and how they can solve common problems in software development. The design patterns covered include
- Singleton Pattern: Ensures that a class has only one instance and provides a global access point to that instance.
- Observer Pattern: Defines a one-to-many dependency between objects so that when one object changes state, all dependent objects are notified and automatically updated.
- Factory Pattern: Provides an interface for creating objects where the specific classes do not need to be specified.
- Decorator Pattern: Enables the dynamic addition of behavior to objects by wrapping them in decorative classes.
It also emphasizes best practices for clean and maintainable code. Participants will learn techniques for structuring and organizing their code to make it more readable and easier to maintain. These include principles such as DRY (Don't Repeat Yourself), KISS (Keep It Simple, Stupid), and SOLID principles (Single Responsibility, Open/Closed, Liskov Substitution, Interface Segregation, Dependency Inversion).
Through practical exercises and examples, participants will be able to apply complex data structures and design patterns in their own projects and write high-quality code.