121
8
SepArAtIon of concernS
Separation of concerns is a programming discipline and another step one can take
when organizing code. e concept involves separating different sections of code from
each other so that those sections can be worked on separately without interference
from other sections. Within the same language, this would equate to modularization
of code. Here it is applied in order to keep the many different parts of a modern web
application separate. is is also known as loose coupling.
What Is Separation of Concerns?
Separation of concerns in web application development means isolating PHP from
HTML, HTML from CSS, and JavaScript from HTML. e nature of the PHP
parser makes it easy to code all these elements together. In fact it does ...