Forks
- gist: 37710 by soaweso... created Thu Dec 18 15:11:03 -0800 2008
- gist: 37711 by alexvol... created Thu Dec 18 15:14:55 -0800 2008
- gist: 38113 by evanphx created Fri Dec 19 12:46:41 -0800 2008
- gist: 38122 by elliott... created Fri Dec 19 13:14:51 -0800 2008
- gist: 39082 by anildig... created Mon Dec 22 10:57:39 -0800 2008
- gist: 39087 by bkerley created Mon Dec 22 11:05:55 -0800 2008
- gist: 39121 by timocratic created Mon Dec 22 13:05:23 -0800 2008
- gist: 39798 by ncr created Wed Dec 24 14:20:37 -0800 2008
- gist: 41053 by aziz created Sun Dec 28 13:23:56 -0800 2008
- gist: 41784 by agile created Tue Dec 30 14:37:41 -0800 2008
- gist: 43015 by csexton created Sat Jan 03 22:06:19 -0800 2009
- gist: 116039 by robu created Fri May 22 02:50:45 -0700 2009
Revisions
-






580358
jbarnette
Tue Jan 06 16:44:24 -0800 2009
-






2168a9
jbarnette
Tue Jan 06 16:42:32 -0800 2009
-






43574c
jbarnette
Tue Jan 06 16:41:24 -0800 2009
-






a4ff44
jbarnette
Mon Dec 22 11:58:50 -0800 2008
-






ac9016
jbarnette
Fri Dec 19 13:15:19 -0800 2008
-






208d04
jbarnette
Fri Dec 19 13:12:02 -0800 2008
-






f116c6
jbarnette
Fri Dec 19 13:08:18 -0800 2008
-






b6b4e8
jbarnette
Fri Dec 19 12:39:40 -0800 2008
-






3cf11c
jbarnette
Fri Dec 19 12:27:50 -0800 2008
-






072cb7
jbarnette
Fri Dec 19 12:26:23 -0800 2008
Every gist with this icon (
Every repository with this icon (
Note to Self
Be Confident
Tests build confidence. Write 'em. They'll save your ass, and they'll let you take a chainsaw to your code without being afraid of unintended consequences.
Be Lazy
Write tools. If it's happened more than twice, don't ever do it by hand again.
Be Asynchronous
If it can be done outside the request/response cycle, consider queuing it. Mailers, uploads, audit trails, anything with an external system dependency or a lot of IO.
Be Stateful
If there's a lifecycle, model it as a real state machine. Beware ad hoc flags.
Be Clear
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.
Be Consistent
Inconsistent file names, task names, and coding styles hurt 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.
Be Certain
Don't speculate, get data. Act on what you know, not what you suspect. Is that code really faster? Do users really want that feature?
Be Persistent
Find the root cause. Keep asking why, even when you're tired and under the gun. The guesswork patch you write today will be a nightmare tomorrow.
Be Wrong
If it's not working, change it, no matter how long it took to write. Don't throw good money after bad. Admit mistakes early and often.


