It’s a good practice to separate back end logic (PHP) from front end markup (HTML). That isn’t always possible or the best choice, especially if you are working on a small web application. Here’s some of the ways to cleanly integrate HTML into PHP.
Continue reading
Tag Archives: Code Organization
The Secret of Clear and Understandable PHP
Writing clear code isn’t just about writing code with good syntax – there’s another very important aspect of writing code.
Continue reading
Different Brace Styles in PHP
I’ve decided that I’ve been talking about coding styles for too long to not focus on any individual styles. So, let’s focus on a specific aspect of coding: brace styles.
Continue reading
Should You Develop Your Own Coding Styles?
In a recent post, I listed a few good places to learn different coding styles and which coding styles are most accepted. Now, let’s decide if it’s better to develop your own coding styles or to use the recommended styles of others.
Continue reading
5 Tips to Keep Your Code Clean
Often times someone will ask me to view some code that they are written and it turns out that it’s a total mess. Here’s a few tips to keep your code clean.
Continue reading