Static Factory Methods: Part 1 — Readability
Just published a new video explaining how “static factory methods” can improve the code readability in PHP.
Constructors don’t have meaningful names, so they are always restricted to the standard naming convention imposed by the language. Static factory methods can have meaningful names, hence explicitly conveying what they do.
Feel free to contact me on twitter: @enunomaduro.
If you found this video useful, please comment below and clap, if you like.