TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Limits of programming by interface

3 pointsby nfrankelover 6 years ago

1 comment

karmakazeover 6 years ago
Article misses the obvious solution name the interface for its contract. e.g. SortedMap can have the exact same methods as Map but has an additional bahavoural contract. TreeMap may be a concrete implementation but using the interface is preferable.