Naming Convention in c#
What is the universally accepted naming convention for c#? (functions, classes, parameters, local variables, namespaces, etc) ...
What is the universally accepted naming convention for c#? (functions, classes, parameters, local variables, namespaces, etc) ...
First of all, this is not really a programming question. It's more a question of "how do I satisfy McConnels naming conventions?" I have this Delphi-application that manipulates word-documents. One of the things I need to do is run through all the bookmarks in the document and delete some of them based upon a simple rule: If I currently...
Hi There is too much discussion about the class fields naming, but the major difference is this: private int foo; private int _foo; Can anyone tell us, what's the latest decision about this convention? Thank you! ...
For larger JMS deployments what are your best practice suggestions for naming conventions? Currently we're following the suggestions in the Sun Developer Network Blueprints. For example: jms/<resource-name>[Queue|Topic] I am concerned about scaling this as we get more and more queues and topics in the system. I'm particularly interes...
For the phone number: 234-567-8901, I would name variables like: areaCode = "234"; exchange = "567"; What would an appropriate variable name be for "8901"? ...
Hello, I have a third party SDK in C# which has class names like this: com.companyname.productclass.enterprise.productname.sdkname.namespace com.companyname.productclass.enterprise.productname.sdkname.namespace.objects com.companyname.productclass.enterprise.productname.sdkname.namespace.objects.fields com.companyname.productclass.ente...
Are there are any established naming or coding conventions for defining namespace or type aliases in C#? For those who are unaware, the C# language has a feature where aliases can be defined local to a file for namespaces and types. This can be useful when there are naming conflicts with third party libraries as well as for shortening t...
I'm trying to find out what is the best practice for naming and casing css classes and ids, especially multiple word names. So for instance, say I have a <div> that I want to name "character skills". It seems like there are 3 choices: "characterskills", "character_skills", or "character-skills". Which one of these is the industry stand...
In an application I am building I am storing an XML file in my database using the acts_as_tree association. I would like to name the class XMLElement but this throws rails off since the capitalization is non-standard. It is looking for XMLElement from the file name xml_element.rb. I tried changing the filename to x_m_l_element.rb to t...
Whats is the ideal class name for my static class which has some static methods to handle General/Common functionalities iike taking backup,saving recent items etxc.. (Infact Misc items ) in C#. I would like to have Manager as suffix of the class name (ex: SaleManager(to handle sales related functionalities),ContatManager(to handle conta...
We normally follow coding / naming standard for all C# syntax. For Example, if we declare string inside the method, we use Scope-datatype-FieldName format. (lstrPersonName) List<Person> icolPerson; private LoadPersonName() { string lstrPersonaName; } i am kind of thinking how do we follow the naming standard in Lambda Expression. E...
As both hyphen (-) and underscore (_) are valid characters in CSS and HTML identifiers, what are the advantages and disadvantages using one or the other? I prefer writing CSS class names with hyphens (e.g. field-text) and underscores for IDs (e.g. featured_content). Is there a best practice or it's only the matter of taste? ...
This question is about variable naming style in objective c and cocoa. I just want to stress that I'm not looking for a "right" answer, just good ideas. I've read through Apple and Google's objective c style guides and I'm not really happy with either of them. Apple's guide doesn't have any real style recommendations regarding instanc...
<div id="example-value"> or <div id="example_value">? This site and Twitter use the first style. Facebook and Vimeo - the second. Which one do you use and why? ...
I am making a Ruby script for converting video files. The class responsible for the conversion has a 'status' method which returns a value indicating whether the conversion has not yet started, is running, has finished or an error has occurred. I have come up with the following status names: idle running finished error My question: ...
If I have user id variable, what is correct java naming convention for it? userId or userID ...
We use a fairly straightforward naming standard for indexes that I can validate programmatically, but I am struggling with naming indexes with INCLUDE columns. If I do it based on a simple formula, it's too easy to build names that are too long. Then my programmatic validation fails, and I end up with truncated names. For those of you u...
Hi, What are the naming conventions commonly use in C? I know there are at least two: GNU / linux / K&R with lower_case_functions ? name ? with UpperCaseFoo functions I am talking about C only here. Most of our projects are small embedded systems in which we use C. Here is the one I am planning on using for my next project: C Na...
Given this scenario where you have "transfer objects" (POJO's with just getters/setters) which are passed by a client library to your API, what is the best way to name the transfer objects? package com.x.core; public class Car { private String make; private String model; public Car(com.x.clientapi.Car car) { ...
I wonder if the naming convention used in C/C++ standard libraries has a name, or at least a cheat-sheet where I can lookup the rules. E.g. push_back -- underscore used setstate -- but not used here! string::npos -- when to use abbreviations? fprintf ... Does the naming convention used in the C/C++ standard libraries have a sp...