Last active
August 3, 2017 08:15
-
-
Save FagnerMartinsBrack/36f1cc7d07abb93d82031ad336a79b74 to your computer and use it in GitHub Desktop.
(Medium) The Role Of Affordance In Software Design
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 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