- good architecture = allow changes w/ flexibility + delay decision
- Entities: pure; small sets of critical business rules. Should be most independent & reusable. Can be an object with methods or data structures & functions
- Use case: not as pure; is an object. contains data elements & operations.
- Entities are lower level than (don’t depend on) use cases since use cases are closer to inputs/outputs.
- Entities & use cases are 2 layers
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
// CASE 1: The object is mutable and the variable can be reassigned. | |
let o1 = { foo: 'bar' }; | |
// Mutate the object | |
o1.foo = 'something different'; | |
// Reassign the variable | |
o1 = { message: "I'm a completely new object" }; |
Last modified
- Jan 18, 2016. WebStorm 11.0.3
References
cd to project directory
npm install --save-dev babel-cli
npm install --save-dev babel-preset-es2015