Jump to content

 

abolshakov

Member Since 20 Aug 2014
Offline Last Active Sep 12 2017 01:14 PM
*****

Topics I've Started

Writing Your Add-Ons In An Object-Oriented Way

25 April 2016 - 07:34 PM

It's not a secret that the current architecture of CS-Cart is a bit outdated against the background of modern PHP frameworks like Laravel, Symfony and so on.

 

Talking about core internals - caring of the backward compatibility ties our hands when we think of refactoring.

 

However, it's possible to implement the ability to develop add-ons in an object-oriented way without tons of spaghetti code. The object-oriented way provides much more intuitive and clean way of code structuring. Also, it would be a lot of easier to cover your code with unit tests.

 

I've attached the poll, please feel free to share your opinion by voting or by writing your detailed thoughts on this topic.