Posts Tagged ‘code’

Five Ways to Keep Your Code Clean

Tuesday, February 23rd, 2010

Because we have a team of developers here at eROI and a plethora of projects to build and maintain, it is more than likely that the code written by one individual will need to be edited by another developer at some point in time.  When an edit to a site comes in, the original author of the code will inevitably, at one point or another, be on vacation, be sick, or no longer work here (yes, it happens, sadly).  This is why it is so imperative for our team (and any development team) to follow certain guidelines to keep our code clean and legible, so that anyone can jump onto a project, easily see what the code is doing, and start making edits quickly.  Here are five ways to keep your code readable and maintainable:

  1. Indent Your Code
    This is number one on the list for a reason.  No other thing you can do can help or hinder the readability of your code than the indentation style (or lack thereof).  Nested child elements should be indented one level more than parent elements in order to show a visual hierarchy.  Opening and closing tags in HTML should be on the same indentation level in most cases; items inside the opening/closing tags need to be indented one additional level.

    (more…)

3 New (& Nerdy) Things to Know in ‘09

Wednesday, December 17th, 2008

It’s that time again when we all make promises to ourselves for the upcoming year – “I’m going to quit smoking” or “I will lose 20 pounds” or “I will write more Fresh posts”.    This year I’m mainly focusing on expanding my geek knowledge – nothing gets me more excited than adding some badass new skillz to my nerd repertoire.

So, here we go!

[1] Get Down with OOP (Hey you know me)

My first encounter with an Object-Oriented Programming language was in my Java class in college.  Since then I’ve been mostly wrapped up in HTML, CSS and scripting languages.  For a while I thought I’d never need to touch OOP again – after all, who uses Java anymore!?  But man was I wrong… OOP isn’t just for writing ‘boring’ Java applications.  More and more I’m encountering OOP in scripting languages – PHP, Javascript and (especially) Actionscript. (more…)