preloder

Development Design Patterns in Magento 2

Prev Next

At Magento Live UK 2016 conference I’ve presented the technical topic “Key Insights into Development Design Patterns in Magento 2”. It contains various Design Patterns used across Magento 2 framework and modules. There is a lot of functionality which require complex logic and Design Patterns help to achieve and implement functionality in a quite straightforward way.

Design Patterns

What is Design Pattern? Design Pattern describes a problem which occurs over and over again, and then describes the core of the solution to that problem, without ever doing it the same way twice. Christopher Alexandr and his students defined Design Pattern back in 1977.

Aspect Oriented Programming

Aspect Oriented Programming is a programming paradigm that aims to increase modularity by allowing the separation of cross-cutting concerns. The goal is to achieve loose coupling.

There are various cross-cutting concerns in Magento 2 which have to go through all modules. Few examples of cross-cutting concerns are security, monitoring, and logging.

Presentation

In the “Key Insights into Development Design Patterns in Magento 2” presentation the following Design Patterns covered:

  1. Composite Pattern
  2. Strategy Pattern
  3. Factory Method Pattern
  4. Observer Pattern
  5. Object Manager (which consist of 11+ Design Patterns)
  6. Decorator Pattern
  7. Proxy Pattern

Almost all examples are based on Payment module implementation and its usage. Remaining Design Patterns examples are based on Magento 2 Framework.

Feel free to share your feedback and suggestions in the comments below.

Max with his team of Magento enthusiasts won the Best Magento 1 to Magento 2 Migration Award at the Magento Imagine 2017. As CEO at Pronko Consulting, he is actively working with Magento 2, delivering superior customer experience. As one of the most famous developers on a market and in the Magento Community, he launched Magento 2 blog, Magento DevChannel – YouTube channel in 2017 where he shares his knowledge, experience and the best practices in the Magento field.

Posted on Aug 6, 2016

The Devletter

Subscribe to my Magento 2 tips and tutorials content.
Every week I send an interesting email directly to your inbox

Related Posts

Show
Hide
Pre-order the Magento 2 payment integration course TODAY PRE-ORDER
Hello. Add your message here.