Skip to content

Instantly share code, notes, and snippets.

@cloudchen
Created October 27, 2014 04:01
Show Gist options
  • Save cloudchen/b0102a20a6390a107d04 to your computer and use it in GitHub Desktop.
Save cloudchen/b0102a20a6390a107d04 to your computer and use it in GitHub Desktop.
TroopJS - A brief review

#The good parts

  1. Declarative syntax for module instantiation works nice, especially for multiple modules that have no dependencies with each other
  2. AMD at framework level causes code more standard and stable for managing dependencies and exports
  3. Global message system (HUB) that ships with framework makes communication easier between different modules
  4. OO is supported well at framework level

#The bad parts

  1. Suggested HTML template engine sucks, it has to be replaced with better one and smoothly integrate with framework.
  2. Too much unnecessary async events or returned result (promise) which causes writing code more difficult and hard to predict expecting result.
  3. AMD at framework level stops developer who has no AMD experence to participate or try it. It seems that TroopJS is the fewer framework that based on AMD rather than pure JS plus module wrapper.
  4. Framework core doesn't released as single file, which is really important for developer to use, debug and understand what it is or how it works. Otherwise releasing separately increases learning curve a lot.
  5. .query() with special returning stuff increases learing cost
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment