Skip to main content
29 events
when toggle format what by license comment
Nov 28, 2016 at 19:04 comment added Dmytro If anyone knows how to reach into (function() {var foo = 9;})(); and get the foo out, let me know; it's driving me nuts. With OOP you can at least use reflection; this seems impossible without direct memory manipulation/opening up the runtime.
Aug 30, 2016 at 8:35 history tweeted twitter.com/StackProgrammer/status/770540334237581312
Aug 26, 2016 at 23:47 comment added Jörg W Mittag @GnP: OO is about Messaging. Encapsulation is merely a consequence of that: if you send someone a message and all you can observe is the reply, then you have no idea, and no way of finding out, what the receiver did to come up with that reply.
Aug 26, 2016 at 22:23 comment added GnP Robert Martin once said that OOP took encapsulation away and then patched it back in with horrible hacks. "We had perfect encapsulation before oo". Of course he was being hyperbolic, but now everytime I see someone say that OO is about encapsulation I remember Uncle Bob.
Aug 26, 2016 at 7:46 comment added CodesInChaos Rust certainly supports encapsulation, but depending on your definition of OOP, it isn't object oriented.
Aug 26, 2016 at 6:17 answer added Euphoric timeline score: 4
Aug 25, 2016 at 20:12 review Close votes
Aug 30, 2016 at 3:03
Aug 25, 2016 at 20:11 comment added Adrian Iftode Encapsulation appears in Abstract Data Types too, which was before OOP.
Aug 25, 2016 at 19:51 answer added Doc Brown timeline score: 10
Aug 25, 2016 at 18:36 comment added JeffO Has this been cleaned up? Based on the answers, it seems like a straight-forward question.
Aug 25, 2016 at 18:35 history reopened Karl Bielefeldt
candied_orange
Michael Brown
David Arno
JeffO
Aug 25, 2016 at 18:19 comment added David Arno "It makes me think, what about encapsulation and other OOP tenets? Are they wrong?" Well, many argue that inheritence is a very bad idea, but both encapsulation and polymorphism occur in many languages/paradigms, not just OO.
Aug 25, 2016 at 15:10 review Reopen votes
Aug 25, 2016 at 18:39
Aug 25, 2016 at 15:07 comment added Ben Aaronson This question needs a bit of fixing up to be clearer and to the point. Hopefully that will happen and it'll be reopened.
Aug 25, 2016 at 14:18 history closed gnat
Euphoric
Tulains Córdova
Doc Brown
17 of 26
Needs details or clarity
Aug 25, 2016 at 14:10 comment added Jörg W Mittag I'm having trouble figuring out what this question is asking. Is it asking whether encapsulation can exist outside of OO (subject line)? Is it asking whether encapsulation is wrong (second paragraph)? Is it asking whether OO is applied wrong (third paragraph)? And what does the OP want to say with that Joe Armstrong quote? How does the OP define "encapsulation"? How does the OP define "OO"? What are those "other tenets"?
Aug 25, 2016 at 13:53 answer added Robert Harvey timeline score: 5
Aug 25, 2016 at 13:46 comment added gnat @Euphoric I see what you mean, thanks for pointing that out. Need to chew it a bit, your explanation made me doubt if the duplicate vote is right here
Aug 25, 2016 at 13:42 answer added user22815 timeline score: 14
Aug 25, 2016 at 13:35 comment added Euphoric @gnat Well. Half of the top answer is about encapsulation in Python and one answer is about "example problem" show in OP not existing in Haskell. Either the question is different from it's title or the answers are wrong.
Aug 25, 2016 at 13:32 comment added user22815 I think this question is answerable in the abstract sense that the OP is looking for.
Aug 25, 2016 at 13:30 comment added gnat @Euphoric none of the answers in that question looks Python specific, did I miss something? And frankly the question itself doesn't look really language specific, that snippet of Python code in it seems to be provided mostly as a concrete demonstration of a general concept
Aug 25, 2016 at 13:27 comment added Euphoric I would say the question first needs to clarify what is meant by Encapsulation and what it means for language to support it.
Aug 25, 2016 at 13:26 comment added Euphoric @gnat I don't think there is any good answer under that question. And it seem to be too Python-specific. But I guess anything broader would be either Too Broad or Opinion Based.
Aug 25, 2016 at 13:18 history edited Kilian Foth CC BY-SA 3.0
fix spelling
Aug 25, 2016 at 13:05 review Close votes
Aug 25, 2016 at 14:22
Aug 25, 2016 at 12:51 comment added gnat see also: Is functional programming a superset of object oriented? and Equivalent of SOLID principles for functional programming
Aug 25, 2016 at 12:50 comment added gnat Possible duplicate of Can "higher order function" feature allow/maintain abstraction and encapsulation?
Aug 25, 2016 at 12:47 history asked JeffV CC BY-SA 3.0