Joe Armstrong on OOP
think the lack of reusability comes in object-oriented mguages, not in functional languages. Because the problem with object-oriented languages is they've got all this implicit environment that they carry around with them. Vou i wanted a banana but what you got was a gorilla holding the banana and the entire jungle.
If you have referentially transparent code, if you have pure iinctions—ail the data comes in its input arguments and everything goes out and leaves no state behind—it's incredibly reusable. You can just reuse it here, there, and everywhere. When you want to use it in a different project, you just cut and paste this code into your new project.
Peter Seibel, Coders at Work: Reflections on the Craft of Programming (2009-09-16)
Notes
The problem with Object Oriented Programming is that it forces you to take a larger collection of properties when all you want is a smaller subset.
References
Schemas
Not in any schema.
Triples
Not related to other memes yet.
Watson’s reading
Tags generated by IBM Watson from the text. Percentages are its confidence.
Categories
People, places and things
- Joe Armstrong Person
- Object Oriented Field Terminology
- Vou Person
Concepts
Keywords
Object Oriented Programming, referentially transparent code, object-oriented mguages, OOP The problem, Joe Armstrong, larger collection, smaller subset., implicit environment, object-oriented languages, entire jungle, input arguments, functional languages
8 more keywords
state behind—it, different project, new project, banana, reusability, lack, gorilla, paste