Skip to content

Instantly share code, notes, and snippets.

@holyjak
Created November 17, 2013 23:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save holyjak/7519669 to your computer and use it in GitHub Desktop.
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
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