Skip to content

Instantly share code, notes, and snippets.

@soawesomeman
Forked from jbarnette/think.markdown
Created December 18, 2008 23:11
Show Gist options
  • Save soawesomeman/37710 to your computer and use it in GitHub Desktop.
Save soawesomeman/37710 to your computer and use it in GitHub Desktop.

Test It

Write tests. They'll save your ass.

Automate It

If it's happened more than twice, don't ever do it by hand again.

Queue It

If it can possibly be done outside the request/response cycle, defer it. Mailers, uploads, audit trails.

Be Stateful

If there's a lifecycle, model it as a real state machine. Beware ad hoc flags.

Be Simple

You'll write it once, but you'll read it a lot. Code accordingly. Sometimes simplicity takes a bit longer, but it'll pay off rapidly.

Be Consistent

Inconsistent file names, task names, or code hurts productivity.

Be Timely (but not too timely)

Keep frameworks, plugins, libraries, and tools up-to-date, but think twice before using a production app to play with the bleeding edge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment