As the guys around the office are well aware, I tend to obsess over minor details in our code. Whether it be fixing code formatting to be tabbed properly or renaming variables to better fit naming conventions of a project, the developers hate when I meddle in the codebase. Is it my fault that sometimes I miss a few when I go through and rename variables, functions, methods, etc? Clearly, no. The joys of being the boss.

But what I really want to discuss is something I don’t consider so minor, complying with web standards. Most times when I am doing web development I prefer to go with the HTML 4.01 strict doctype. We try to observe strict standards wherever we can, and they have helped us to avoid patterns of behavior that are more prone to errors. We make sure that notices and E_STRICT are enabled on the PHP side. While developing, our templating system is set to validate our markup against its doctype in a very angry way that we both love and hate. The added benefits of sticking so closely to the standards is that you can pick up errors through malformed output that browsers obfuscate, and you can achieve a greatest amount of compatibility between browsers. As any good website designer knows, creating web pages that render the same in every browser can be a royal pain (thanks Microsoft).

Read More »

Posted in: Design, Rants