2 ms·
"All the HTML is in one place and contains as little code as possible. One place for code that interacts with data. One place for code that processes requests
by stdbrouw 15y ago
"All the HTML is in one place and contains as little code as possible.
One place for code that interacts with data.
One place for code that processes requests and responses.
One place for all the URL regexes.
And all these places are predictable."
- Otto42 15y agoSo, when you have a problem with the system, then to find the bug you have to look in three or four places instead of one.
- superchink 15y agoBy that reasoning, we should just code a whole site in a single PHP page that handles both the backend processing and the display layer and generation of HTML. It's not about decreasing the number of files (to look into to find bugs), it's about organizing the code into logical pieces that are more manageable.