PHP Mullet Programming
#220 Henry, Sunday, 22 March 2015 4:41 PM (Category: Programming)
(Tags: php mullet)

I run a lot of little web sites, mostly for my own private purposes. They are all in PHP, and the style is definitely old school. Each URL results in a single PHP page, and the page is organised like this:

# Start

  # Process the data from the form


# Display the form

# End

Today I learnt that this style of PHP programming is called Mullet Programming - "business in the front, party in the back". I laughed at this, because that's exactly what it is. I've looked at frameworks, and I've looked at MVC, and I don't use any of them. They end up being confusing to read and debug, and they are slow.

I read the description in this article - PHP MVC Maintenance very costly. I liked it because it confirmed my prejudices. No doubt there are good articles about why I shouldn't be doing what I am doing, but I will turn a blind eye to them.