I was learning PHP back then, where I was taught to write codes that combine both front-end presentation and back-end logic together in the same code base. It was simple, sweet, quick to implement and no issues until I stumbled across a fairly complicated project, where the front-end is so complex that I have to separate…