What is “Good” Code?
Of course there are any number of ways to answer these questions, but for now I’m just going to focus on the first one in the simplest way possible. Pretty pictures!
At the moment, we’re in the midst of a redesign for an existing client. Here is the code that currently renders just the navigation of the homepage:
Notice how, well… messy it is?
Now here is the code for the redesigned homepage navigation:
- Be far easier to maintain
- Be more search engine friendly
- Be accessible via screen readers for disabled users
Perhaps the best part is that the page weight and download time is cut in less than half. Not counting images/graphics, the current page weighs in at a whopping 16k while the redesigned page is only a miserly 4k. Even on a modest sized website these file sizes can add up to significant download times. Lastly, the less a server has to work to serve up code, and the less the client (receiving) machine must work to download code, the less energy is used in both directions, so proper coding also has the benefit of being “green” and sustainable!
So, good coding is better for SEO, and therefore better for your business. It saves you money and it’s good for the environment to boot. It’s just plain crazy not to do it!
Hey! This wasn't written by a herd of yaks! It was written by Marty Ferinni, who does awesome work at Loud Dog, a digital branding firm in San Francisco that helps businesses express themselves authentically via identities, websites, and marketing collateral.
If you want us to do awesome work for you, if you have a question, or if you're just feeling lonely and want to chat, we want to hear from you!