You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And that is all great but your list is now very long, and you have long names in it too, which makes it a problem to align, because you will have to change "all" the lines in module.exports = {} just because a longer name comes along.
Coffeescript have a nice way to create object hashes when the key names are equal to the variable names:
In docopt.coffee you use
And that is all great but your list is now very long, and you have long names in it too, which makes it a problem to align, because you will have to change "all" the lines in
module.exports = {}
just because a longer name comes along.Coffeescript have a nice way to create object hashes when the key names are equal to the variable names:
This way you don't need anything to align, and it is easy to add new key/value pairs with out change any other lines in the object hash.
The text was updated successfully, but these errors were encountered: