4 ms·
> Don't do public and private Don't use $this and use static classes Don't overload You should look into functional programming. > and dont use interfaces Uh
by smt88 10y ago
> Don't do public and private Don't use $this and use static classes Don't overload
You should look into functional programming.
> and dont use interfaces
Uhh... I guess? Interfaces are way of implementing a type system (e.g. discriminating unions) and also necessary for mocking up tests in many OOP projects.
> Don't use namespaces
This is just a terrible idea. Namespaces are used in almost every language to avoid collisions. Sometimes they are in the form of classes, but namespacing is hugely important.