Tagged Questions
19
votes
11answers
4k views
Recommended .NET / C# coding standards?
What coding standards do you think are important for .NET / C# projects? This could be anything from dealing with curly braces and spacing and pedantry like that. Or it could be more fundamental ...
9
votes
1answer
254 views
Are there well-known PowerShell coding conventions?
Are there any well-defined conventions when programming in PowerShell?
For example, in scripts which are to be maintained long-term, do we need to:
Use the real cmdlet name or alias?
Specify the ...
8
votes
8answers
1k views
Why did Microsoft make parameters, local variables and private fields have the same name naming convention?
I asked this question quite some time ago: How do you name your private variables in C#?
In one of the answers, I was pointed to Microsoft's MSDN page that shows that private variables/fields should ...
6
votes
8answers
551 views
How should I introduce a coding standard to my team?
First a bit of background: My current development manager is taking another opportunity the end of this week, leaving our team with four fulltime developers, a part-time intern and a web designer ...
6
votes
1answer
144 views
Naming of related classes and interfaces
I have created an ObjectParser class which parses data into strongly typed objects using an IObjectParserDataSource as the data source (the data could be an Excel file, text file, array, query string, ...
5
votes
1answer
139 views
Should classes from the same namespace be kept in the same assembly?
For example, ISerializable and the Serializable Attribute are both in the System.Runtime.Serialization namespace, but not the assembly of the same name. On the other hand, DataContract attributes are ...
5
votes
5answers
321 views
What are the standard practices for database access in .net?
I have seen weird database access practices in .net. I have seen stored procedures for every database tasks. I have seen every database property name is preceded by it's table name. I have seen fully ...
4
votes
3answers
137 views
Where do I place my example implementations in my framework?
I've created a pretty simple templating framework and have default implementations for some of my interfaces used for passing around information. I store these in MyFramework.Default namespace
...
3
votes
1answer
392 views
Has anyone thoroughly compared C# common coding standards?
Most of the C# programmers I know embrace one of the common coding standards. However being aware of the standards is one thing, telling the differences is another.
Browsing the common coding ...
2
votes
3answers
358 views
Microsoft's coding standards for ASP.NET controls
I cannot find any naming standards/conventions in MSDN for naming ASP.NET controls.
One of the following standards tends to be used by programmers:
lblAddress
AddressLabel
Address
According to ...
1
vote
3answers
217 views
CSS vs codebehind, if I have to do part of the style in codebehind, should I do all of it there?
I'm working with ASP.Net and trying to style an ImageButton. I tried to do this via CSS only to discover that for some reason, .Net writes out an inline style setting the border width to 0 ...
1
vote
1answer
222 views
Capitalization convention for C# protected fields
What is the capitalization conventions for protected field names in C#?
Is it _myVar (like private field) or MyVar (like properties)?