Reputation
326
Top tag
Next privilege 500 Rep.
Access review queues
Badges
2 8
Newest
 Commentator
Impact
~19k people reached

  • 0 posts edited
  • 0 helpful flags
  • 24 votes cast
Oct
5
comment Why does(/did) Bertrand Meyer think subclassing is the only way to extend a “closed” module?
Let us continue this discussion in chat.
Oct
5
comment Why does(/did) Bertrand Meyer think subclassing is the only way to extend a “closed” module?
(I wouldn't take the first paragraph of the Wikipedia article too seriously, as it's a mishmash of Meyer's and Martin's ideas.)
Oct
5
awarded  Commentator
Oct
5
comment Why does(/did) Bertrand Meyer think subclassing is the only way to extend a “closed” module?
Clients can still rely on the stable description of version 1, even when using version 2. If that's not "closed", then a subclass whose clients can still rely on the stable description of the superclass isn't "closed" either, it seems to me.
Oct
5
comment Why is there no 'subclasses-only' access modifier in Java?
Apart from certain reserved system packages, can't I add a class to any package, even one of yours that you don't intend me to add classes to?
Oct
5
comment Why does(/did) Bertrand Meyer think subclassing is the only way to extend a “closed” module?
(Inheritance, to me, implies that version 1 is still around and called by version 2.)
Oct
5
comment Why does(/did) Bertrand Meyer think subclassing is the only way to extend a “closed” module?
Hmm. I don't see "version 2 of this library, which replaces version 1 and is backwards compatible with it, adds the following functions…" as "inheritance" except in the broadest possible conceptual way.
Oct
5
comment Why does(/did) Bertrand Meyer think subclassing is the only way to extend a “closed” module?
Interesting, and I'll definitely have to try to get ahold of the second edition, but it's still not clear to me why even a non-OO "classical" library couldn't add (at least certain kinds of) features without disturbing its clients.
Oct
3
awarded  Nice Question
Oct
2
comment Why does(/did) Bertrand Meyer think subclassing is the only way to extend a “closed” module?
@JörgWMittag Excellent links, thank you.
Oct
2
awarded  Student
Oct
2
asked Why does(/did) Bertrand Meyer think subclassing is the only way to extend a “closed” module?
Sep
29
revised SOLID Principles and code structure
Update link to point to active version of blog
Jul
17
comment How are mixins or traits better than plain multiple inheritance?
"constructs which specifically limit a type's capabilities so that there is no ambiguity": what sort of limits? Interfaces don't have variables, so that's one limit, but Scala traits and Ruby modules do. Are they limited in other ways?
May
1
awarded  Critic
Jan
28
comment Leaving intentional bugs in code for testers to find
@DocBrown You should have read my comment more carefully. I didn't make any claims as to what you wrote.
Jan
28
comment Leaving intentional bugs in code for testers to find
@DocBrown Just because a test suite finds bugs doesn't mean it's trustworthy or complete. And just because a test suite finds bugs intentionally introduced by developers doesn't mean it's going to find the unintentional ones.
Jan
28
comment Leaving intentional bugs in code for testers to find
"It's a terrible idea and the project manager in question is a jerk/idiot who understands nothing about people and motivation." +100 for this.
May
17
awarded  Yearling
Mar
10
awarded  Necromancer