You are not logged in. Your edit will be placed in a queue until it is peer reviewed.
We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.
Required fields*
- Funny you mention C#, as I was implementing in C# when I thought of the question. And I've also found the only 2 common conventions of C# to be I for interfaces and Exception extension on built in Exception.alamoot– alamoot2021-03-04 05:43:43 +00:00Commented Mar 4, 2021 at 5:43
- The I prefix is a C# thing not a Java thing. Java is perfectly happy to respect client codes right to not know if it's talking to an interface or a concrete type. Now if only Java respected that in its binaries so you wouldn't have to recompile the client when you switch from concrete to interface. We probably wouldn't have so many premature interfaces.candied_orange– candied_orange2021-03-04 07:42:32 +00:00Commented Mar 4, 2021 at 7:42
- 1Thank you. I've only ever seen the I prefix in Java when C# programmers are working in Java and haven't had their first code review in Java.candied_orange– candied_orange2021-03-04 08:09:19 +00:00Commented Mar 4, 2021 at 8:09
- 1One more for C# is Attribute classes always end with Attribute.Blake– Blake2021-03-04 13:47:50 +00:00Commented Mar 4, 2021 at 13:47
- 1@quaabaam sadly, yes. The fundamental problem is trying to encode structural info (like that this is a base class) in the semantics (the name). I want domain info in my names. Stop avoiding thinking of good names by sticking a warts on a bad one.candied_orange– candied_orange2025-08-16 19:01:13 +00:00Commented Aug 16 at 19:01
| Show 2 more comments
How to Edit
- Correct minor typos or mistakes
- Clarify meaning without changing it
- Add related resources or links
- Always respect the author’s intent
- Don’t use edits to reply to the author
How to Format
- create code fences with backticks ` or tildes ~ ```
like so
``` - add language identifier to highlight code ```python
def function(foo):
print(foo)
``` - put returns between paragraphs
- for linebreak add 2 spaces at end
- _italic_ or **bold**
- indent code by 4 spaces
- backtick escapes
`like _so_` - quote by placing > at start of line
- to make links (use https whenever possible) <https://example.com>[example](https://example.com)<a href="https://example.com">example</a>
How to Tag
A tag is a keyword or label that categorizes your question with other, similar questions. Choose one or more (up to 5) tags that will help answerers to find and interpret your question.
- complete the sentence: my question is about...
- use tags that describe things or concepts that are essential, not incidental to your question
- favor using existing popular tags
- read the descriptions that appear below the tag
If your question is primarily about a topic for which you can't find a tag:
- combine multiple words into single-words with hyphens (e.g. design-patterns), up to a maximum of 35 characters
- creating new tags is a privilege; if you can't yet create a tag you need, then post this question without it, then ask the community to create it for you