Curation by apogorzelska 7 hours ago for query liskov substitution principle
Original results
-
http://lwn.net/Articles/549110/ — found via Mwmbl
Liskov Substitution Principle [LWN.net]
Liskov Substitution Principle Liskov Substitution Principle Its nice to have theories and principles, and something like LSP makes a lot of sense in that…
-
http://stackoverflow.com/tags/lsp/info — found via Mwmbl
'liskov-substitution-principle' tag wiki - Stack Overflow
For questions about the Liskov Substitution Principle (LSP) in object-oriented design, developed by Barbara Liskov and collected by Robert C. Martin as on…
-
https://stackoverflow.com/a/56027765 — found via Mwmbl
liskov substitution principle - Why are LSP violations in PHP so…
I follow the mechanics, but I don't understand the rationale. Zeev added the restriction in 5.0.0-rc2 according to the Changelog, but it's not clear to m…
-
https://stackoverflow.com/q/33801214 — found via Mwmbl
Liskov Substitution Principle example - Stack Overflow
1 Answer 1 In this particular example, the solution is to not let Square derive from Rectangle, because although we usually say inheritance is an 'is a' …
-
https://stackoverflow.com/a/70356938 — found via Mwmbl
oop - What is an example of the Liskov Substitution Principle? -…
LISKOV SUBSTITUTION PRINCIPLE (From Mark Seemann book) states that we should be able to replace one implementation of an interface with another without br…
-
https://stackoverflow.com/q/4428725 — found via Mwmbl
.net - Can you explain Liskov Substitution Principle with a good…
Here's a simplified way of thinking about it in a nutshell: If I follow LSP, I can replace any object in my code with a Mock object, and the nothing in t…
-
https://stackoverflow.com/a/54792213 — found via Mwmbl
Liskov Substitute Principle (LSP) with Code example - Stack Over…
History constraint (the "history rule"). Objects are regarded as being modifiable only through their methods (encapsulation). Since subtypes may introduc…
-
http://programmers.stackexchange.com/a/210624 — found via Mwmbl
java - Liskov substitution principle when implementing two unrel…
The Liskov Substitution Principle is about being able to substitute a descendant with its ancestor, ie not negating/disabling the ancestor's behavior in …
-
http://programmers.stackexchange.com/a/376081 — found via Mwmbl
Liskov Substitution Principle in Clean Architecture - Software E…
Sorry for the unspecific title but I can't find a concise way to state my issue. I am reading the book Clean Architecture, by Robert C. Martin. It has a …
-
http://programmers.stackexchange.com/a/453183 — found via Mwmbl
c# - Invariant rule in Liskov Substitution Principle - Software …
From Liskov Substitution Principle, I am still not very clear about the invariant rule. I read through many posts but I still have doubts. My example is …
-
http://programmers.stackexchange.com/a/364194 — found via Mwmbl
design - Liskov Substitution principle - strengthening precondit…
It's important to note that in your linked answer, that the LSP violation is incurred as there are NO actual contracts in the base Task Close method, wher…
-
https://programmers.stackexchange.com/a/243226 — found via Mwmbl
object oriented design - Liskov substitution principle with abst…
Does Liskov substitution principle apply to inheritance hierarchies where the parent is an abstract class the same way if the parent is a concrete class?…
-
https://programmers.stackexchange.com/a/370380 — found via Mwmbl
solid - Liskov's substitution principle : If subtype has some ex…
In my quest to write better, cleaner code, I am learning about SOLID principles. In this, LSP is proving to be little difficult to grasp properly. My doub…
-
http://programmers.stackexchange.com/a/158735 — found via Mwmbl
object oriented - Is Liskov Substitution Principle incompatible …
Do I understand correctly that Liskov Substitution Principle cannot be observed in languages where objects can inspect themselves, like what is usual in …
-
https://programmers.stackexchange.com/a/454283 — found via Mwmbl
object oriented - In "Liskov Substitution Principle", is "invari…
According to Invariant rule in Liskov Substitution Principle , I know one of the form of violation of "Liskov Substitution Principle" is violating "invari…
-
http://programmers.stackexchange.com/a/255665 — found via Mwmbl
java - Liskov Substitution and SRP Principle violation - how bes…
While learning SRP and LSP, I'm trying to improve the design of my code to comply best with both of these principles. I have an employee class that has a…
-
http://programmers.stackexchange.com/q/431246 — found via Mwmbl
object oriented - Liskov Substitution Principle Inconsistency? H…
When we call the method setAge using a Person instance, we can use any age above 0. However, if we substitute an instance of Person by an instance of Empl…
-
http://programmers.stackexchange.com/a/336774 — found via Mwmbl
solid - Real World - Liskov Substitution Principle - Software En…
Background: I am developing a messaging framework. This framework will allow: sending of messages over a service bus subscribing to queues on the message…
-
http://programmers.stackexchange.com/a/370660 — found via Mwmbl
design - Violation of Liskov Substitution Principle? - Software …
As you could see, $origin and the return type could be any type of data (I use PHP), however, the class who implements it actually cannot support all kin…
-
https://programmers.stackexchange.com/q/431549 — found via Mwmbl
object oriented - The Liskov Substitution Principle, and Python …
I've taught myself Python over the past year-and-a-bit, and would consider myself an intermediate Python user at this point, but never studied computing …
-
http://programmers.stackexchange.com/posts/364194/revisions — found via Mwmbl
Revisions to Liskov Substitution principle - strengthening preco…
Liskov Substitution Principle is all about contracts . It consists of preconditions (conditions that must hold true so the corresponding behavior could ru…
-
http://programmers.stackexchange.com/q/379019 — found via Mwmbl
object oriented design - Liskov Substitution Principle - Softwar…
2 Answers 2 Open/Close principle Defining a subclass does not break the open/close principle, since it means "open for extension / closed for modificatio…
-
http://programmers.stackexchange.com/posts/359350/revisions — found via Mwmbl
Revisions to Is the Liskov Substitution Principle concerned with…
Understanding Is the Liskov substitution principleSubstitution Principle concerned with protecting state invariants? Substitutability is a principle in o…
-
https://programmers.stackexchange.com/a/291626 — found via Mwmbl
object oriented design - Liskov substitution and abstract classe…
Generally constructors are not considered to be part of the Liskov substitution Principle (LSP). The LSP with objects, not classes: What is wanted here is…
-
http://programmers.stackexchange.com/a/358760 — found via Mwmbl
liskov substitution - How to loosen input contracts by inheritan…
Substitutability is a principle in object-oriented programming stating that, in a computer program, if S is a subtype of T, then objects of type T may be…
-
http://programmers.stackexchange.com/a/350375 — found via Mwmbl
liskov substitution - How to manage context objects in a multi t…
I have created an implementation HttpClientContextFactory that creates objects using the claims from the current HttpRequest that is injected into the fa…
-
http://programmers.stackexchange.com/q/345405 — found via Mwmbl
liskov substitution - Confusion about strengthening/weakening pr…
I've recently become incredibly confused about the notion of "strengthening/weakening a precondition/postcondition". I think my confusion lies in my inte…
-
http://programmers.stackexchange.com/a/413245 — found via Mwmbl
liskov substitution - How to avoid breaking LSP when specialisin…
This has really nothing to do with MVC but I came across the issue and also found a related question in that context. Unfortunately the related question f…
-
https://programmers.stackexchange.com/a/355741 — found via Mwmbl
design - Preventing Liskov Substitution violation - Software Eng…
I am reimplementing some component and noticed that the original version has a Liskov Substitution violation. It's not all that critical, though I'd like…
-
http://programmers.stackexchange.com/a/364337 — found via Mwmbl
object oriented design - Liskov substitution for voids and weake…
The Cyborg class weakened the precondition, which is allowed. For valid arguments, substitution works well. Whenever I have a Human object, a Cyborg obje…
-
https://programmers.stackexchange.com/a/178528 — found via Mwmbl
object oriented - LSP vs OCP / Liskov Substitution VS Open Close…
I am trying to understand the SOLID principles of OOP and I've come to the conclusion that LSP and OCP have some similarities (if not to say more). the o…
-
http://programmers.stackexchange.com/q/302476 — found via Mwmbl
java - Liskov principle with different constructor parameters - …
As you may have already guessed, the constructor of your implementing class does not participate in the API of the interface. In fact, you wouldn't want t…
-
http://www.hillelwayne.com/post/lsp/ — found via Mwmbl
A better explanation of the Liskov Substitution Principle
Functions that use pointers or references to base classes must be able to use objects of derived classes without knowing it. If you had fly_to(Bird, loca…
-
https://medium.com/hackernoon/liskov-substitution-principle-a982551d584a? — found via Mwmbl
Liskov Substitution Principle. Or How to Create Beautiful… | by …
Liskov Substitution Principle Or How to Create Beautiful Abbreviations This is a third post on SOLID principles — check out the Open closed principle if …
-
https://doi.org/10.1145/3484272.3484965 — found via Mwmbl
Reframing the Liskov substitution principle through the lens of …
Abstract In this essay, we explore a new pedagogical framing ofway of pedagogically and teaching the Liskov Substitution Principle (LSP). In addition to,…
-
https://www.informit.com/articles/article.aspx?p=2301788&seqNum=3 — found via Mwmbl
Liskov Substitution Principle | Programming with SOLID Principle…
Like this article? We recommend Liskov Substitution Principle The Liskov Substitution Principle (LS) [NES1] deals with interfaces. The premise is that an…
-
https://wp.me/p4Plh-7K — found via Mwmbl
Liskov Substitution Principle is Contravariance | Apocalisp
The end of programming as you know it Menu Liskov Substitution Principle is Contravariance The Liskov Substitution Principle is a much cited result by th…
-
http://lobste.rs/s/znv120/liskov_substitution_principle_is — found via Mwmbl
Liskov Substitution Principle is Contravariance (2010) | Lobsters
“Read it as: If the property Q holds for all values of type T, then if every object of type S maps to exactly one object of type T, the property Q holds f…
-
http://arxiv.org/abs/1404.6633 — found via Mwmbl
[1404.6633] Substitution principle for CLT of linear spectral st…
View a PDF of the paper titled Substitution principle for CLT of linear spectral statistics of high-dimensional sample covariance matrices with applicati…
-
https://arxiv.org/abs/1404.6633v1 — found via Mwmbl
[1404.6633v1] Substitution principle for CLT of linear spectral …
View a PDF of the paper titled Substitution principle for CLT of linear spectral statistics of high-dimensional sample covariance matrices with applicati…
New results
-
https://architectural-patterns.net/liskov-substitution-principle — found via User
Liskov Substitution Principle | Architectural Patterns
Liskov Substitution Principle Any subtype S of T must be designed in a way that it can be used predictably in any function that expects T. Liskov Substitu…
-
http://lwn.net/Articles/549110/ — found via Mwmbl
Liskov Substitution Principle [LWN.net]
Liskov Substitution Principle Liskov Substitution Principle Its nice to have theories and principles, and something like LSP makes a lot of sense in that…
-
http://stackoverflow.com/tags/lsp/info — found via Mwmbl
'liskov-substitution-principle' tag wiki - Stack Overflow
For questions about the Liskov Substitution Principle (LSP) in object-oriented design, developed by Barbara Liskov and collected by Robert C. Martin as on…
-
https://stackoverflow.com/a/56027765 — found via Mwmbl
liskov substitution principle - Why are LSP violations in PHP so…
I follow the mechanics, but I don't understand the rationale. Zeev added the restriction in 5.0.0-rc2 according to the Changelog, but it's not clear to m…
-
https://stackoverflow.com/q/33801214 — found via Mwmbl
Liskov Substitution Principle example - Stack Overflow
1 Answer 1 In this particular example, the solution is to not let Square derive from Rectangle, because although we usually say inheritance is an 'is a' …
-
https://stackoverflow.com/a/70356938 — found via Mwmbl
oop - What is an example of the Liskov Substitution Principle? -…
LISKOV SUBSTITUTION PRINCIPLE (From Mark Seemann book) states that we should be able to replace one implementation of an interface with another without br…
-
https://stackoverflow.com/q/4428725 — found via Mwmbl
.net - Can you explain Liskov Substitution Principle with a good…
Here's a simplified way of thinking about it in a nutshell: If I follow LSP, I can replace any object in my code with a Mock object, and the nothing in t…
-
https://stackoverflow.com/a/54792213 — found via Mwmbl
Liskov Substitute Principle (LSP) with Code example - Stack Over…
History constraint (the "history rule"). Objects are regarded as being modifiable only through their methods (encapsulation). Since subtypes may introduc…
-
http://programmers.stackexchange.com/a/210624 — found via Mwmbl
java - Liskov substitution principle when implementing two unrel…
The Liskov Substitution Principle is about being able to substitute a descendant with its ancestor, ie not negating/disabling the ancestor's behavior in …
-
http://programmers.stackexchange.com/a/376081 — found via Mwmbl
Liskov Substitution Principle in Clean Architecture - Software E…
Sorry for the unspecific title but I can't find a concise way to state my issue. I am reading the book Clean Architecture, by Robert C. Martin. It has a …
-
http://programmers.stackexchange.com/a/453183 — found via Mwmbl
c# - Invariant rule in Liskov Substitution Principle - Software …
From Liskov Substitution Principle, I am still not very clear about the invariant rule. I read through many posts but I still have doubts. My example is …
-
http://programmers.stackexchange.com/a/364194 — found via Mwmbl
design - Liskov Substitution principle - strengthening precondit…
It's important to note that in your linked answer, that the LSP violation is incurred as there are NO actual contracts in the base Task Close method, wher…
-
https://programmers.stackexchange.com/a/243226 — found via Mwmbl
object oriented design - Liskov substitution principle with abst…
Does Liskov substitution principle apply to inheritance hierarchies where the parent is an abstract class the same way if the parent is a concrete class?…
-
https://programmers.stackexchange.com/a/370380 — found via Mwmbl
solid - Liskov's substitution principle : If subtype has some ex…
In my quest to write better, cleaner code, I am learning about SOLID principles. In this, LSP is proving to be little difficult to grasp properly. My doub…
-
http://programmers.stackexchange.com/a/158735 — found via Mwmbl
object oriented - Is Liskov Substitution Principle incompatible …
Do I understand correctly that Liskov Substitution Principle cannot be observed in languages where objects can inspect themselves, like what is usual in …
-
https://programmers.stackexchange.com/a/454283 — found via Mwmbl
object oriented - In "Liskov Substitution Principle", is "invari…
According to Invariant rule in Liskov Substitution Principle , I know one of the form of violation of "Liskov Substitution Principle" is violating "invari…
-
http://programmers.stackexchange.com/a/255665 — found via Mwmbl
java - Liskov Substitution and SRP Principle violation - how bes…
While learning SRP and LSP, I'm trying to improve the design of my code to comply best with both of these principles. I have an employee class that has a…
-
http://programmers.stackexchange.com/q/431246 — found via Mwmbl
object oriented - Liskov Substitution Principle Inconsistency? H…
When we call the method setAge using a Person instance, we can use any age above 0. However, if we substitute an instance of Person by an instance of Empl…
-
http://programmers.stackexchange.com/a/336774 — found via Mwmbl
solid - Real World - Liskov Substitution Principle - Software En…
Background: I am developing a messaging framework. This framework will allow: sending of messages over a service bus subscribing to queues on the message…
-
http://programmers.stackexchange.com/a/370660 — found via Mwmbl
design - Violation of Liskov Substitution Principle? - Software …
As you could see, $origin and the return type could be any type of data (I use PHP), however, the class who implements it actually cannot support all kin…
-
https://programmers.stackexchange.com/q/431549 — found via Mwmbl
object oriented - The Liskov Substitution Principle, and Python …
I've taught myself Python over the past year-and-a-bit, and would consider myself an intermediate Python user at this point, but never studied computing …
-
http://programmers.stackexchange.com/posts/364194/revisions — found via Mwmbl
Revisions to Liskov Substitution principle - strengthening preco…
Liskov Substitution Principle is all about contracts . It consists of preconditions (conditions that must hold true so the corresponding behavior could ru…
-
http://programmers.stackexchange.com/q/379019 — found via Mwmbl
object oriented design - Liskov Substitution Principle - Softwar…
2 Answers 2 Open/Close principle Defining a subclass does not break the open/close principle, since it means "open for extension / closed for modificatio…
-
http://programmers.stackexchange.com/posts/359350/revisions — found via Mwmbl
Revisions to Is the Liskov Substitution Principle concerned with…
Understanding Is the Liskov substitution principleSubstitution Principle concerned with protecting state invariants? Substitutability is a principle in o…
-
https://programmers.stackexchange.com/a/291626 — found via Mwmbl
object oriented design - Liskov substitution and abstract classe…
Generally constructors are not considered to be part of the Liskov substitution Principle (LSP). The LSP with objects, not classes: What is wanted here is…
-
http://programmers.stackexchange.com/a/358760 — found via Mwmbl
liskov substitution - How to loosen input contracts by inheritan…
Substitutability is a principle in object-oriented programming stating that, in a computer program, if S is a subtype of T, then objects of type T may be…
-
http://programmers.stackexchange.com/a/350375 — found via Mwmbl
liskov substitution - How to manage context objects in a multi t…
I have created an implementation HttpClientContextFactory that creates objects using the claims from the current HttpRequest that is injected into the fa…
-
http://programmers.stackexchange.com/q/345405 — found via Mwmbl
liskov substitution - Confusion about strengthening/weakening pr…
I've recently become incredibly confused about the notion of "strengthening/weakening a precondition/postcondition". I think my confusion lies in my inte…
-
http://programmers.stackexchange.com/a/413245 — found via Mwmbl
liskov substitution - How to avoid breaking LSP when specialisin…
This has really nothing to do with MVC but I came across the issue and also found a related question in that context. Unfortunately the related question f…
-
https://programmers.stackexchange.com/a/355741 — found via Mwmbl
design - Preventing Liskov Substitution violation - Software Eng…
I am reimplementing some component and noticed that the original version has a Liskov Substitution violation. It's not all that critical, though I'd like…
-
http://programmers.stackexchange.com/a/364337 — found via Mwmbl
object oriented design - Liskov substitution for voids and weake…
The Cyborg class weakened the precondition, which is allowed. For valid arguments, substitution works well. Whenever I have a Human object, a Cyborg obje…
-
https://programmers.stackexchange.com/a/178528 — found via Mwmbl
object oriented - LSP vs OCP / Liskov Substitution VS Open Close…
I am trying to understand the SOLID principles of OOP and I've come to the conclusion that LSP and OCP have some similarities (if not to say more). the o…
-
http://programmers.stackexchange.com/q/302476 — found via Mwmbl
java - Liskov principle with different constructor parameters - …
As you may have already guessed, the constructor of your implementing class does not participate in the API of the interface. In fact, you wouldn't want t…
-
http://www.hillelwayne.com/post/lsp/ — found via Mwmbl
A better explanation of the Liskov Substitution Principle
Functions that use pointers or references to base classes must be able to use objects of derived classes without knowing it. If you had fly_to(Bird, loca…
-
https://medium.com/hackernoon/liskov-substitution-principle-a982551d584a? — found via Mwmbl
Liskov Substitution Principle. Or How to Create Beautiful… | by …
Liskov Substitution Principle Or How to Create Beautiful Abbreviations This is a third post on SOLID principles — check out the Open closed principle if …
-
https://doi.org/10.1145/3484272.3484965 — found via Mwmbl
Reframing the Liskov substitution principle through the lens of …
Abstract In this essay, we explore a new pedagogical framing ofway of pedagogically and teaching the Liskov Substitution Principle (LSP). In addition to,…
-
https://www.informit.com/articles/article.aspx?p=2301788&seqNum=3 — found via Mwmbl
Liskov Substitution Principle | Programming with SOLID Principle…
Like this article? We recommend Liskov Substitution Principle The Liskov Substitution Principle (LS) [NES1] deals with interfaces. The premise is that an…
-
https://wp.me/p4Plh-7K — found via Mwmbl
Liskov Substitution Principle is Contravariance | Apocalisp
The end of programming as you know it Menu Liskov Substitution Principle is Contravariance The Liskov Substitution Principle is a much cited result by th…
-
http://lobste.rs/s/znv120/liskov_substitution_principle_is — found via Mwmbl
Liskov Substitution Principle is Contravariance (2010) | Lobsters
“Read it as: If the property Q holds for all values of type T, then if every object of type S maps to exactly one object of type T, the property Q holds f…
-
http://arxiv.org/abs/1404.6633 — found via Mwmbl
[1404.6633] Substitution principle for CLT of linear spectral st…
View a PDF of the paper titled Substitution principle for CLT of linear spectral statistics of high-dimensional sample covariance matrices with applicati…
-
https://arxiv.org/abs/1404.6633v1 — found via Mwmbl
[1404.6633v1] Substitution principle for CLT of linear spectral …
View a PDF of the paper titled Substitution principle for CLT of linear spectral statistics of high-dimensional sample covariance matrices with applicati…