Interface for Value Object

Among the different reasons behind having an interface is decoupling – that is the Inversion of Control. According to Uncle Bob’s DIP, the dependency-inversion principle: a. High-level modules should not depend on low-level modules. Both…

Software Engineering or Computer Science

This is a very common question asked by expected freshmen of the undergraduate programs in Pakistan. Software Engineering or Computer Science? And usually, they get a very subjective answer. Inexperienced respondent are always there that…

ZF2 Validator StringLength Minimum Length

When you add filters and validators in zend framework 2, you may notice a validator being triggered that you have not actually added. In ZF2 validator, you might be trying to fix that with StringLength….