Skip to main content

Stack Exchange Network

Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
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 ...
Doc Brown's user avatar
  • 220k
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(),...
JacquesB's user avatar
  • 62.3k
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, ...
Arseni Mourzenko's user avatar
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 "...
Doc Brown's user avatar
  • 220k
1 vote

java hashtable extending to support duplicates

There are plenty of MultiMap implementation. For example you can use guava Multimap.
talex's user avatar
  • 129
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 ...
talex's user avatar
  • 129

Only top scored, non community-wiki answers of a minimum length are eligible

Morty Proxy This is a proxified and sanitized view of the page, visit original site.