Skip to content

Instantly share code, notes, and snippets.

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 FagnerMartinsBrack/36f1cc7d07abb93d82031ad336a79b74 to your computer and use it in GitHub Desktop.
Save FagnerMartinsBrack/36f1cc7d07abb93d82031ad336a79b74 to your computer and use it in GitHub Desktop.
(Medium) The Role Of Affordance In Software Design
class Soldier {
// ...
getWeapon() {
return this.equipedWeapon;
}
// ...
}
new Soldier().getWeapon().open(Bottle.of(Beer));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment