PHP is way better than it used to be. OOP is perfect, database connectors too, super modules for maintaining XML, JSON, CSV,...
PHP is not just one language. I use SQL, XPath and XSLT in it as well. This combination is very cool and speed is like on steroids.
OOP in PHP is not perfect. For instance, an interface can define the constructor's signature.
interface Foo { public function __construct(SomeDependency $someDependency); }
This isn't allowed in most languages(maybe any others) and is pretty against SOLID principles.
This is not against SOLID principles. Simply I don't use it.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
PHP is way better than it used to be. OOP is perfect, database connectors too, super modules for maintaining XML, JSON, CSV,...
PHP is not just one language. I use SQL, XPath and XSLT in it as well. This combination is very cool and speed is like on steroids.
OOP in PHP is not perfect. For instance, an interface can define the constructor's signature.
This isn't allowed in most languages(maybe any others) and is pretty against SOLID principles.
This is not against SOLID principles. Simply I don't use it.