Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
@Sumafu this has a lot of common (2005)
as IDE were poor people has started to add prefixes to know what is a particular import.
Right now IDE's are powerful enough to tell you that you something is an interface. -
The only one I do is the "I" prefix in c#. And only because it looks weird if you don't.
Interesting story behind why .net is like that though. It comes from C++ where interfaces are a convention rather than a language construct. C++ has multiple inheritance but it's considered bad practice to actually use it without constraints. Only one parent should have actual implementations. Everything else should be an abstract class with only definitions i.e. an interface. So broadcasting at a glance that a particular abstract class is an interface is important, hence "I".
I still hate doing it but I feel a bit better given that I understand why it's like that
Related Rants
-
cdrice105"You gave us bad code! We ran it and now production is DOWN! Join this bridgeline now and help us fix this!" ...
-
MoboTheHobo36My Friend: Dude our Linux Server is not working anymore! Me: What? What did you do? My friend: Nothing I swe...
-
tommy15Right now someone at Google is coding something useless for us to laugh at on April Fools.
We are in fucking 2020 and I'm still forced to put prefixes like in 2005
'I' before interface name
'Abstract' before the abstract class name
rant
fml