May 23, 2020
Improve your factories (PHP)
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, although a...
ReadMay 12, 2020
Private Methods in ECMAScript 6 (ECMAScript 2015)
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....
Read