3 ms·
PHP being stateless is a good thing, as well as real classes, real interfaces and type hinting. Sadly, PHP developers still use bad coding practices. For examp
by codedokode 8y ago
PHP being stateless is a good thing, as well as real classes, real interfaces and type hinting.
Sadly, PHP developers still use bad coding practices. For example, one of the popular PHP OOP frameworks, Symfony, makes things like HTTP Request or logged user a global variable by storing it in DI container. What about incapsulation and concern separation? The code breaks if you run it from CLI. PHP should not copy bad ideas like this from Ruby.