5
votes
Convenience inheritance
IMHO implementation inheritance is not an anti-pattern in general.
There are too many examples where this works well enough to ban this kind of inheritance dogmatically. You presented a few examples ...
4
votes
What SOLID principles does the Java List interface challenge?
It does not violate the Liskov Substitution Principle. The LSP states that a subtype should not violate guarantees given by a supertype. But the List interface explicitly states that the methods add(),...
4
votes
Accepted
What is the difference between Vertical Slice Architecture and Feature-Based Architecture
Both are, if not the same, at least very similar—I would bet that the different communities came with the same concept roughly at the same time, and ended up with two different names.
This being said, ...
4
votes
A class that implements two interfaces that extend the same interface
The "diamond" is not the problematic part of this design.
However, when I see such an inheritance tree, I am wondering if this isn't overengineered and maybe too static. Are you sure a "...
1
vote
java hashtable extending to support duplicates
There are plenty of MultiMap implementation. For example you can use guava Multimap.
1
vote
How to avoid DTO on a client/server application?
You can avoid entity to DTO mapping if you write you mapping old style in xml.
You can't reuse you DTO in JavaFX because you need observable fields.
There is a solution: code generation. If you have ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
java × 5019design-patterns × 509
design × 499
object-oriented × 488
object-oriented-design × 250
architecture × 207
c# × 175
spring × 162
interfaces × 155
c++ × 153
exceptions × 149
programming-practices × 135
android × 124
multithreading × 122
unit-testing × 117
rest × 113
algorithms × 108
coding-style × 106
inheritance × 99
performance × 91
java-ee × 91
api-design × 86
testing × 83
programming-languages × 82
database × 81