disnet / contracts.js

Contract library for JavaScript
http://www.contractsjs.org
MIT License
149 stars 8 forks source link

More examples and dev vs prod patterns #20

Closed jasonkuhrt closed 10 years ago

jasonkuhrt commented 11 years ago

More patterns with node.js integration would be helpful.

Also, some patterns demonstrating the ability to work with contracts.js in development but have them become a noop in production would be great too.

Overall the docs are a little confusing on first glance. For instance after skimming it appears that functions which support variable number of arguments aren't supported?

# some foo function
#
# can be invoked as either:
#   foo(bar, led)
#   foo(bar, led, zed)

foo = (a, b, c)->

Thanks for the great work.

disnet commented 11 years ago

Thanks for the suggestions!

I'm not sure what you mean by node.js integration though. Could you clarify?

jasonkuhrt commented 11 years ago

Friendly install instructions:

npm install ...

noop for production isn't really node-specific so I guess you can disregard my comment regarding node-js integration

disnet commented 10 years ago

Much improved documentation is here.

jasonkuhrt commented 10 years ago

@disnet Amazing, can't wait to start using and evangelizing this at littleBits.