May 23, 2020
Factory is a creational design pattern which is used to retrieve instances of objects,
based on some given parameter. Working on PHP projects, I find myself using the pattern very often,
May 12, 2020
In this short article I want to show you a cool trick about how to protect your methods in ES6 classes.
All properties in ES6 classes are public and can be examined or modified outside the class....