Closed HelloGrayson closed 12 years ago
For most data types, we can just implement getters/setters, grep/replace occurrences and call it a day.
sure - we'll also want to lock down visibility of properties and methods where possible, less things to test etc.
Erlang\DataType's do not respect Open Close principle..... they do now :)
Badass - getting nice and tight.
Models should be open for extension but closed for modification. Specifically, this means accessing properties on these data types through getters. This will aid in unit testing them as well because objects should have their public API tested; testing public properties is bad practice.
The above is ridiculously fragile and strange to test. Below is correct.