ktaranov / naming-convention Goto Github PK
View Code? Open in Web Editor NEWTemplates for naming convention - TSQL, JavaScript, C#, R, Python, Powershell
License: MIT License
Templates for naming convention - TSQL, JavaScript, C#, R, Python, Powershell
License: MIT License
Is there a naming convention for images in C#?
Point 9, "Do use predefined type names instead of system type names like Int16, Single, UInt64, etc.".
I usually use the C# aliases (predefined types) for locals, parameters and members declarations, but the Framework names when accessing the type's static members like Int32.TryParse
or String.Join
. Suggestion: You could add this as an exception.
Point 8, "Do not use Underscores in identifiers." says: "Exception: you can prefix private static variables with an underscore", but example shows instance variable
// Exception (Class field)
private DateTime _registrationDate;
I think it would be okay to prefix fields (instance variables) with an underscore.
In point 4 Do not use Screaming Caps for constants or readonly variables: your example uses
// Correct
public static const string ShippingType = "DropShip";
which is invalid. const
implies static
and is therefore neither needed, nor allowed.
Hi,
I don't see you have standards for these above. Do you have a recommended standard for these or could I commit a standard that I work with?
Best,
Abhay Gupta
I've got a question regarding calling methods in C#. Is there a convention, too?
I.e. this function
public void DoSomething(string foo, int bar)
{
...
}
In VS I can call this function:
DoSomething("someString", 1);
or
DoSomething(foo: "someString", bar: 1);
Is there any convention for this?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.