Always use double quoted strings and interpolation. No ugly +
symbols anywhere. Single quotes only used when the string contains double quotes.
string = "Interpolation is awesome. 1+1 = #{1+1}"
Avoid parentheses whenever possible, but use parentheses when making chained calls in a single line
pyramid = constructTriangle(4,4,4).grow3D(4)
store.fetch "PATCH", {table: true}, (err, response) ->
if err
return
else
table.update response
Always use the existential operator
if response?.rows[0]?.success
table.update response.rows[0]