Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library

Comment by aprime7

1 day ago

Honestly curious question: why do you think an interface adds complexity?

An interface specifies a contract that its users can depend on. Having one saves me from reading implementations of dependencies when reading a class.

0 comments

aprime7

Reply

No comments yet

Contribute on Hacker News ↗

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities