When in doubt – KISS

KISS is an acronym for Keep it simple, stupid.

The KISS principle states that most systems work best if they are kept simple rather than complicated. Throughout your programming journey, it is vital that this principle in mind.

Deciding to write a program with some predefined design patterns is often a poor idea. Code should never be forced into patterns. While writing code for a design pattern may work for a Hello World demonstration pattern, it doesn't usually work well the other way around.

Design patterns exist to resolve common recurring problems in code. It is vital they are used to address problems and not implemented where no such problems actually exist. By keeping your code as simple as possible and reducing the complexity ...

Get Mastering PHP Design Patterns now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.