Interfaces vs Implementations

Discussions center on distinguishing programming interfaces from concrete implementations, their benefits, tradeoffs, and usage in languages like Java, Go, Julia, and Python.

➡️ Stable 0.6x Programming Languages
3,304
Comments
19
Years Active
5
Top Authors
#7144
Topic ID

Activity Over Time

2008
12
2009
24
2010
85
2011
63
2012
121
2013
146
2014
184
2015
164
2016
200
2017
221
2018
217
2019
257
2020
252
2021
276
2022
274
2023
246
2024
268
2025
285
2026
9

Keywords

PEP UnsupportedOperationException ISP LSP OOP SRP IDE URL i.e FooImpl interfaces interface java implementation type compile time lsp method compile objects

Sample Comments

regularfry Jun 16, 2016 View on HN

You're confusing interface with implementation.

kristoff_it Nov 10, 2024 View on HN

There are a few different ways of implementing interfaces, each with different tradeoffs, so it's not boilerplate :^)

ithkuil Jul 3, 2020 View on HN

Can you make an example of how it would be confused with interfaces in weird ways?

skj Jul 6, 2014 View on HN

The stuff you mix in has code. Interfaces do not.

tpoacher Jan 12, 2025 View on HN

you don't like java interfaces?

k__ Feb 1, 2020 View on HN

It's like saying interfaces are classes without implementation.

ThePhysicist May 2, 2023 View on HN

See above, interfaces won't solve that problem unfortunately.

dionian May 26, 2022 View on HN

wrong. if your implementation is simple enough you dont need the interface.

phil_kahrl Jun 20, 2022 View on HN

Programming to interfaces not implentation is at least encouraged if not outright enforced.

dyarosla Mar 17, 2018 View on HN

You’ve described interfaces, not so much inheritance.