tagged [naming-conventions]
C# Variable Name "_" (underscore) only
C# Variable Name "_" (underscore) only I was just hit with a minor issue in C#, it was just a copy-paste mistake but don't know how C# accept it. This code gets compiled successfully...HOW Is there an...
- Modified
- 25 Feb at 09:0
Why are exclamation marks used in Ruby methods?
Why are exclamation marks used in Ruby methods? In Ruby some methods have a question mark (`?`) that ask a question like `include?` that ask if the object in question is included, this then returns a ...
- Modified
- 12 Nov at 18:44
Should I use Singular or Plural name convention for REST resources?
Should I use Singular or Plural name convention for REST resources? Some RESTful services use different resource URIs for update/get/delete and Create. Such as - - - I'm little bit confused about this...
- Modified
- 28 Dec at 23:52
What are the type parameter naming guidelines?
What are the type parameter naming guidelines? I noticed, as well as saw in the [Essential C# 3.0](https://rads.stackoverflow.com/amzn/click/com/0321533925) book, that paramters are usually defined as...
- Modified
- 21 Apr at 03:15
Private Static Readonly Field Capitalization
Private Static Readonly Field Capitalization Pascal or camel case? I name private fields and private static fields using camel case. I name consts (as suggested by MS naming conventions) with pascal c...
- Modified
- 2 Jan at 06:2
Node.js project naming conventions for files & folders
Node.js project naming conventions for files & folders What are the naming conventions for files and folders in a large Node.js project? Should I capitalize, camelCase, or under-score? Ie. is this con...
- Modified
- 27 Oct at 08:18
What is the convention for word separator in Java package names?
What is the convention for word separator in Java package names? How should one separate words in package names? Which of the following are correct? 1. com.stackoverflow.my_package (Snake Case using u...
- Modified
- 30 Dec at 13:7
C# .NET instance variable naming convention?
C# .NET instance variable naming convention? I'm doing a small internship at a business and in their code I find classes that are named like this: Is the `_instance` a naming convention of any sort in...
- Modified
- 4 Nov at 10:6
Microsoft VB.NET naming convention
Microsoft VB.NET naming convention Is there any standard naming convention for VB.NET ? Based your programming experiences, would like to share your naming convention for VB.NET ? Are there any guides...
- Modified
- 6 Apr at 16:33
Value to assign to 'paramName' parameter for ArgumentException in C# property setter?
Value to assign to 'paramName' parameter for ArgumentException in C# property setter? If an invalid value is passed to a property setter and an `ArgumentException` (or possibility a class derived from...
- Modified
- 2 Feb at 13:32
Does a method name starting with "Does" look good?
Does a method name starting with "Does" look good? Is it a good practice to start a method name with "Does" (in C#)? It looks a little bit weird to me, so I would like to get your opinion. I am writin...
- Modified
- 23 May at 16:38
In an OO language, what do you name your class that contains the Main method?
In an OO language, what do you name your class that contains the Main method? For instance in C# or Java, you always have a main() method used to get your program running. What do you name the class t...
- Modified
- 20 Jan at 16:43
Does the use of the "Async" suffix in a method name depend on whether the 'async' modifier is used?
Does the use of the "Async" suffix in a method name depend on whether the 'async' modifier is used? What is the convention for suffixing method names with "Async"? Should the "Async" suffix be appende...
- Modified
- 26 May at 17:38
Why prefix C# interface names with an “I”
Why prefix C# interface names with an “I” What is the rationale behind this naming convention? I don't see any benefit. The extra prefix just pollutes the API. My thinking is inline with Konrad's [res...
- Modified
- 23 May at 11:54
Design Pattern Nomenclature & Clarification: Provider, Service, Broker
Design Pattern Nomenclature & Clarification: Provider, Service, Broker Can someone define for me the conceptual difference is between a Provider, Service and Broker? I regularly write MVC apps and off...
- Modified
- 11 Jan at 10:21
ReSharper C# naming style for private methods and properties
ReSharper C# naming style for private methods and properties I like to make the first letter of private methods, properties and events lowercase and the first letter of public methods, properties and ...
- Modified
- 9 Dec at 19:38
Variable naming for arrays/lists/collections - C#
Variable naming for arrays/lists/collections - C# What should I call a variable instantiated with some type of array? Is it okay to simply use a pluralised form of the type being held? `IList people =...
- Modified
- 24 May at 15:45
What is the accepted pattern for naming methods that return Tasks?
What is the accepted pattern for naming methods that return Tasks? APM uses BeginXXX/EndXX pairs and the Event-based Asynchronous Pattern ([EAP](http://msdn.microsoft.com/en-us/library/wewwczdw.aspx))...
- Modified
- 2 Jun at 22:10
Naming convention for a C# Dictionary
Naming convention for a C# Dictionary How do we name a dictionary variable? Say in my method I have `Dictionary> dictionary;`, where the keys of the `dictionary` are country names and the values are l...
- Modified
- 18 Jul at 08:27
Code style for private methods in C#
Code style for private methods in C# I just found out, that it seems a common pattern to use `UpperFirstLetterPascalCase()` for private methods. I for myself, find this completely inconsistent with na...
- Modified
- 14 Feb at 21:32
How do I name an interface when the base word starts with an I?
How do I name an interface when the base word starts with an I? I want to create an interface for "Items". Typicaly I would name an interface by adding and "I" prefix to a base word. But in this case ...
- Modified
- 26 Aug at 05:39
C# Project folder naming conventions
C# Project folder naming conventions I have a project called Data which is a data layer. In this project, all files are just lying in the top folder. I have enumerations, POCOs, repositories, partial ...
- Modified
- 9 Jun at 14:3
Good examples of .NET (C#) open source projects ported to Java? ( C# -> Java )
Good examples of .NET (C#) open source projects ported to Java? ( C# -> Java ) I notice several well-known projects in java that were ported to C# .NET. Some examples: - - - - - - - I was curious abou...
- Modified
- 12 Sep at 06:28
C# Class naming convention: Is it BaseClass or ClassBase or AbstractClass
C# Class naming convention: Is it BaseClass or ClassBase or AbstractClass What is the recommended approach to naming base classes? Is it prefixing the type name with "" or "" or would we just suffix i...
- Modified
- 16 Jul at 21:0
What is a name that can represent both a file or directory?
What is a name that can represent both a file or directory? I am naming some variables in my code and I am trying to avoid naming things such as `nameOfFileOrFolder` or `pathOfFileOrFolder`. What is a...
- Modified
- 24 Apr at 17:14