Silverstripe CMS: Difference between revisions

Added note about "decorators" also being referred to as "extensions".
Line 30: Line 30:
* Static Coupling. Littered with public static properties, extensions are statically coupled.
* Static Coupling. Littered with public static properties, extensions are statically coupled.


In addition, at least two confused [[Design Pattern]] implementation have been identified: the singleton() method, which is not an an implementation of the [[Singleton pattern]] (but more like a global [http://www.martinfowler.com/eaaCatalog/registry.html Registry]), and Object "decorators". These are not, as the SilverStripe documentation [http://doc.silverstripe.org/doku.php?id=dataobjectdecorator claims], an implementation of the [[Decorator pattern]].
In addition, at least two confused [[Design Pattern]] implementation have been identified: the singleton() method, which is not an an implementation of the [[Singleton pattern]] (but more like a global [http://www.martinfowler.com/eaaCatalog/registry.html Registry]), and Object "decorators" (in code comments and methods also referred to as "extensions"). These are not, as the SilverStripe documentation [http://doc.silverstripe.org/doku.php?id=dataobjectdecorator claims], an implementation of the [[Decorator pattern]].


== Stability and Code Quality ==
== Stability and Code Quality ==