Created
November 17, 2013 23:20
-
-
Save holyjak/7519669 to your computer and use it in GitHub Desktop.
[Surfacing Hidden Design: A Better Alternative To Interrelated Mutable Fields](http://wp.me/p3ui6n-1q) - 1) Design hidden in primitive mutable fields and methods
This file contains 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
class Person (val id: Int) { | |
var infected = false | |
var sick = false | |
var immune = false | |
var dead = false | |
// to complete with simulation logic | |
// [infection progression] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment