Timeline for Should interface names begin with an "I" prefix?
Current License: CC BY-SA 3.0
27 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Apr 22 at 1:34 | history | unprotected | Mason Wheeler | ||
Apr 20 at 13:23 | answer | added | jmoreno | timeline score: 0 | |
Jan 11, 2022 at 8:54 | comment | added | MathKid | Duplicate of this question: stackoverflow.com/questions/5816951/prefixing-interfaces-with-i This one has also been reading the 'clean code' book. | |
Nov 17, 2021 at 23:33 | answer | added | MathKid | timeline score: 3 | |
May 13, 2019 at 11:03 | comment | added | Dan King | For what it's worth, I massively prefer the "I" prefix. I also use an "Abstract" prefix on abstract classes for the same reason. It doesn't make a difference to consumers of the class/interface, but can make a big difference to those who need to provide instances of it, and also makes it much simpler for other developers who are reading your code. It means they can see at a glance what they're dealing with, instead of having to consult the IDE on a case by case basis for more information. I've just started using Angular and am finding it really annoying that they don't follow this convention! | |
Apr 19, 2017 at 20:20 | history | protected | gnat | ||
Apr 19, 2017 at 20:08 | review | Close votes | |||
Apr 24, 2017 at 3:03 | |||||
Mar 1, 2016 at 6:13 | review | Close votes | |||
Mar 9, 2016 at 3:04 | |||||
Feb 29, 2016 at 10:03 | answer | added | Pete | timeline score: 8 | |
Apr 8, 2014 at 11:17 | comment | added | david.pfx |
Re to know whether they will be implementing an interface or extending a class : yes, but most users of your code will call it, not implement it or extend it, and they really couldn't care which it is.
|
|
Apr 8, 2014 at 9:55 | answer | added | CodeART | timeline score: 13 | |
Apr 8, 2014 at 9:49 | answer | added | Ela782 | timeline score: 11 | |
Nov 2, 2011 at 23:52 | comment | added | Aaronaught | Prior title edit was a terrible one. This question is not about Hungarian notation in general simply because it mentions a convention that might be associated with it. The relative merits of HN are wholly irrelevant here; the question was specifically about interfaces vs. classes and whether or not the semantic differences are important/interesting enough to justify a special-case naming convention. | |
Nov 2, 2011 at 23:48 | history | edited | Aaronaught | CC BY-SA 3.0 |
edited title
|
Nov 2, 2011 at 16:10 | vote | accept | Charles Sprayberry | ||
Nov 2, 2011 at 16:10 | vote | accept | Charles Sprayberry | ||
Nov 2, 2011 at 16:10 | |||||
Nov 2, 2011 at 14:13 | answer | added | Jim Nutt | timeline score: 27 | |
Nov 2, 2011 at 12:47 | comment | added | thiton | This question is essentially known as the question of "Hungarian notation", you should find plenty of arguments and the reason why most non-MS developers abandonded it under this keyword. Hungarian notation was mostly prevalent for variables, but it's essentially the same for types. | |
S Nov 2, 2011 at 12:38 | history | suggested | Mike Partridge | CC BY-SA 3.0 |
rewrote title as a question, punctuation
|
Nov 2, 2011 at 12:33 | review | Suggested edits | |||
S Nov 2, 2011 at 12:38 | |||||
Nov 2, 2011 at 11:42 | answer | added | Donal Fellows | timeline score: 1 | |
Nov 2, 2011 at 11:20 | history | tweeted | twitter.com/#!/StackProgrammer/status/131692078819311616 | ||
Nov 2, 2011 at 10:11 | comment | added | NoChance | I agree with your point. There is a point when too much information hiding is not very helpful. However, Even if you follow this guideline, you would still be able to tell the type using the IDE or an add-on. | |
Nov 2, 2011 at 1:20 | answer | added | Aaronaught | timeline score: 100 | |
Nov 2, 2011 at 0:54 | history | edited | Charles Sprayberry | CC BY-SA 3.0 |
clarified my question
|
Nov 1, 2011 at 21:58 | answer | added | deadalnix | timeline score: 14 | |
Nov 1, 2011 at 21:50 | history | asked | Charles Sprayberry | CC BY-SA 3.0 |