Conceptualized by Alistair Cockburn. Also known as "Ports and Adapters".
In a nutshell:
Application Driver -> Primary Adapter -> Primary Port -> Use Case -> Secondary Port -> Secondary Adapter -> External System/Side Effect
| #!/usr/bin/env bash | |
| set -u | |
| set -e | |
| export GIT_WORK_TREE="/var/www/example.com" | |
| export NODE_VERSION="0.10" | |
| echo "--> Checking out..." | |
| git checkout -f |
| Marionette.AppRouter.prototype.processAppRoutes = function(controller, appRoutes) { | |
| var routeNames = _.keys(appRoutes).reverse(); // Backbone requires reverted order of routes | |
| _.each(routeNames, function(route) { | |
| var methodName = appRoutes[route]; | |
| var params = methodName.split('#'); | |
| var ctrl = controller; | |
| var method; | |
| if (params.length > 1) { |