Skip to main content
The 2024 Developer Survey results are live! See the results

Explore our questions

1 vote
1 answer
227 views

Abstract base classes and mix-ins in python

1 vote
3 answers
162 views

In "Liskov Substitution Principle", is "invariants can't be weakened in a subtype" a kind of "postconditions can't be weakened in a subtype"?

7 votes
8 answers
4k views

Is "avoid extra null pointer risk" a reason to avoid "introduce parameter objects"?

1 vote
1 answer
264 views

Mapping complex objects to other similar complex objects

3 votes
3 answers
2k views

optional data in the constructor, bad practice?

7 votes
6 answers
516 views

Should a Car object be responsible for checking if it is able to run on certain Road objects?

5 votes
4 answers
2k views

If class B extends A, can we say that B depends on A?

0 votes
1 answer
195 views

Using the objects retrieved at the time of request validation

16 votes
7 answers
43k views

What is the better way to escape from too many if/else-if from the following code snippet?

1 vote
1 answer
826 views

Can a class factory also save the object to a database?

4 votes
1 answer
5k views

Where should variables be declared

62 votes
8 answers
28k views

LSP vs OCP / Liskov Substitution VS Open Close

10 votes
2 answers
12k views

Static factory method in base class

7 votes
2 answers
397 views

Difficulty making this class open-closed

Browse more Questions