Skip to content

stereobooster/TwoStep

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TwoStep Build Status

TwoStep implementation based on gist by creationix.

After seeing all the feedback and pondering this problem, I've come to the conclusion that step is doomed to either be too specific in goal to help most situations or become so flexible and complex and it's a system unto itself.

If people want, I can push a step update using the code above. It's simple and better than what's currently in step. I don't want to expand the scope and compete with the async lib. I would never use it myself (as it is I don't really ever use step).

My new experiment is at https://github.com/creationix/safereturn. The general idea is to not impose structure on the programmer, but rather help them write good callback based functions.

— creationix

Never the less I believe this is example of one of the most elegant JavaScript code.

It shows how simple and obvious JavaScript APIs can be.

more examples of good JavaScript APIs

  • beautiful DSL: describe, it
  • It detects if test is synchronous or asynchronous based on number of arguments
  • Chainable DSL
  • beautiful DSL: desc, task, fail

TODO

  • make all tests pass
  • remove NodeJs specific code in tests to be able to run tests in the browser
  • add timeouts as in mocha runnable

ideas

Releases

No releases published

Packages

No packages published