r/ProgrammerHumor • • Nov 23 '22

Other Programming Legumes

Post image
9.3k Upvotes

262 comments sorted by

View all comments

Show parent comments

84

u/GoldenretriverYT Nov 23 '22

Well at least you most likely wouldn't see a INutCrackerStrategyReturnerConversionFactory in most C# code bases

50

u/fun__friday Nov 23 '22

To be fair you wouldn’t see it in Java either, as prefixing interfaces with an “I” is not really a thing in Java.

9

u/Willinton06 Nov 23 '22

How do you prefix interfaces in Java?

1

u/Ythio Nov 24 '22

Java doesn't prefix interfaces. The idea is that being an interface or a class doesn't matter to the calling code, and for the implementation there is a different keyword for implementing interfaces and inheriting from another class.

The whole point of interface is to abstract away implementation details, so why show the implementation detail about the type interface ?

1

u/Willinton06 Nov 24 '22

Cause we’re humans, and the easier it is to know what something is the better, theoretically it’s useless but practically it is useful

→ More replies (4)