New answers tagged java
2
votes
Approach for querying an arbitrary set of user submitted fields and values in Spring application? Like a shopping site sidebar search?
If your filters are simple (like equality per field) then check out query by example in Spring Data JPA.
If you need complex filters (like comparisons between fields, checking for existence, range ...
1
vote
Accepted
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(),...
-6
votes
What SOLID principles does the Java List interface challenge?
SRP is a bogus principle, as responsibility and count and scope thereof are free subjective parameters of design, chosen and assigned at will. Any program can be argued to have a single responsibilty,...
-3
votes
What SOLID principles does the Java List interface challenge?
Interface Segregation Principle (ISP) is challenged because List was designed by people who had no idea what exactly your program needs (it's from a library) and so they threw together everything that ...
0
votes
Convenience inheritance
I don't quite understand your problem but going by the one example you provide you may think of it differently and the following may apply in more cases.
Circle does not have an "is a" ...
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 ...
Top 50 recent answers are included
Related Tags
java × 5020design-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