Just to be consistent I would use CamelCase for arguments as well.
In 14:
console.log('%s %s', req.method, req.url)
What's up with this? Why not:
console.log "#{req.method} #{req.url}"
In 15:
module.exports.generate
You're fine using here:
exports.generate
---------------------------------
Normally I consider it a dickmove to correct people in public, but in this case it's the right thing to do because a lot of folks inexperienced with CoffeeScript will read your examples.
5 comments
[ 2.8 ms ] story [ 28.0 ms ] threadIt is a Node.js Free screencast tutorials tool
in 2:
I prefer to write --- Why not: Applies to all calls.---
This is better written as: In 5: Better (or more idiomatic): In 7: Perhaps more idiomatic: In 9: I think this is cleaner, but it is mostly a preference: Especially because in 10 you do: Where it WOULD make sense to use curly braces, for the sake of clarity: In 13: Just to be consistent I would use CamelCase for arguments as well.In 14:
What's up with this? Why not: In 15: You're fine using here: ---------------------------------Normally I consider it a dickmove to correct people in public, but in this case it's the right thing to do because a lot of folks inexperienced with CoffeeScript will read your examples.