Jump to content

Talk:Open–closed principle

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

This is a slightly modified version (to be consistent with other wikipedia articles) from foldoc.org[1]. Jgorman2 12:01, 3 June 2006 (UTC)[reply]

"modified by extension"? Should not that be, modified by derivation (ie: thru a derived class)

The phrase "virtual inheritance" is a problem; should it be replaced with "delegation"? Baadams 19:33, 15 May 2007 (UTC)[reply]

...or "interface inheritance"? Chrisahn 15:34, 17 October 2007 (UTC)[reply]

The open-closed principle by Meyer does not say what the article suggests. It gives a different meaning of "closed", namely "available for use by other modules". What is described in the article is Martin's open-closed principle, which is only remotely related to Meyer's principle (Martins claim that he is just paraphrasing Meyer notwithstanding). —Preceding unsigned comment added by 137.248.121.147 (talk) 13:00, 20 April 2010 (UTC)[reply]

I've rewritten the Meyer section to (I hope) better reflect Meyer's thinking, which may clarify the differences between Meyer's principle and Martin's. --Chronodm (talk) 22:50, 29 September 2015 (UTC)[reply]

I feel that this principle is more leaning toward composition and as a concern about opening possibilities to extension via separation of concerns and leaving responsabilities to client code rather than hardcoding decisions in implementation (such as exception management, or settings), although the article seems to be more about inheritance stuff. Am I wrong about my understanding of this concept? Gauthier.segay (talk) 17:32, 17 June 2010 (UTC) User:gauthier.segay[reply]

open/closed principle and functional programming un Java (8)[edit]

In his book Functional programming in Java (ch. 4, page 68), Venkar Subramaniam claimed to have used this principle using Java lambdas, not inheritance. Maybe a new field for this principle. Ptyxs (talk)

External links modified[edit]

Hello fellow Wikipedians,

I have just added archive links to 2 external links on Open/closed principle. Please take a moment to review my edit. If necessary, add {{cbignore}} after the link to keep me from modifying it. Alternatively, you can add {{nobots|deny=InternetArchiveBot}} to keep me off the page altogether. I made the following changes:

When you have finished reviewing my changes, please set the checked parameter below to true to let others know.

This message was posted before February 2018. After February 2018, "External links modified" talk page sections are no longer generated or monitored by InternetArchiveBot. No special action is required regarding these talk page notices, other than regular verification using the archive tool instructions below. Editors have permission to delete these "External links modified" talk page sections if they want to de-clutter talk pages, but see the RfC before doing mass systematic removals. This message is updated dynamically through the template {{source check}} (last update: 5 June 2024).

  • If you have discovered URLs which were erroneously considered dead by the bot, you can report them with this tool.
  • If you found an error with any archives or the URLs themselves, you can fix them with this tool.

Cheers.—cyberbot IITalk to my owner:Online 06:06, 16 January 2016 (UTC)[reply]

Requested move 3 June 2018[edit]

The following is a closed discussion of a requested move. Please do not modify it. Subsequent comments should be made in a new section on the talk page. Editors desiring to contest the closing decision should consider a move review. No further edits should be made to this section.

The result of the move request was: moved as requested per the discussion below. Dekimasuよ! 19:19, 9 June 2018 (UTC)[reply]


Open/closed principleOpen–closed principle – With the en dash, per MOS:DASH. There are many ways in the world to do this, and even the sources cited in the article so far show both these variants and just a space. The WP standard is the en dash. The nav template in this article would also need a conforming tweak.  — SMcCandlish ¢ 😼  00:20, 3 June 2018 (UTC)[reply]


The above discussion is preserved as an archive of a requested move. Please do not modify it. Subsequent comments should be made in a new section on this talk page or in a move review. No further edits should be made to this section.

The Typescript/JavaScript paragraph?[edit]

Why is that paragraph in the text at all? It poorly worded and formatted. If it is an example then it definitely lacks introductory "For example,". Looks like some plugged it in rather clumsily. — Preceding unsigned comment added by 82.4.210.6 (talk) 10:06, 8 October 2020 (UTC)[reply]