We all have our coding conventions. Few of us follow every best practice known to the computer-science world, but instead follow practices that are convenient…
JavaScript – Passing a single parameter object
It's Saturday and I have things to do on the house, but I wanted to write a short post about function parameters before I put…
Avoiding arithmetic pitfalls
Do division last Division has that unique power to turn two perfect integers into floating point numbers. If possible, put divisions at the end of…
Constructing complex SQL queries
As a web programmer, not a day goes by without needing to touch SQL in some form. Some days you're lucky enough to be modeling…
Reasons to avoid inline CSS & JavaScript
Every HTML page consists of three major components: The skin/template (including meta data) HTML tags used to wrap the content and provide information about the…
Where have all the binaries gone?
When I say "binaries", I'm not referring to a binary file, but rather a programmer who is familiar with, and uses base 2 in practice.…
Expires header and dependent content-types
I generally set expire headers for CSS, JS and images according to Google's page speed recommendations, which at time of writing is one month. This…