Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # November Katas
- ## Algorithms
- #### Binary Search
- #### Quick Sort
- #### Breadth-first Search
- #### Depth-first Search ```Maybe```
- ## Domain Driven Design
- Below is an example of some ```JSON``` that represents a Customer. The problem with this model is that it doesn't enforce any invariants. For example, a `string` is used to represent a `phoneNumber`. However, a `string` has an infinite amount of possible values. A `phoneNumber` has a certain format (`###-###-####` in this case), so it has significantly fewer possible values. There are also "flags" that being used to tell, for example, if an email address has been verified or not.
Add Comment
Please, Sign In to add comment