Click here to Skip to main content
15,890,947 members

The Insider News

   

The Insider News is for breaking IT and Software development news. Post your news, your alerts and your inside scoops. This is an IT news-only forum - all off-topic, non-news posts will be removed. If you wish to ask a programming question please post it here.

Get The Daily Insider direct to your mailbox every day. Subscribe now!

 
NewsThe Big Data Disaster Pin
Terrence Dorsey22-Nov-12 10:37
sitebuilderTerrence Dorsey22-Nov-12 10:37 
NewsGenerating Music Pin
Terrence Dorsey22-Nov-12 10:36
sitebuilderTerrence Dorsey22-Nov-12 10:36 
NewsThe Computer That Stores and Processes Information At the Same Time Pin
Terrence Dorsey21-Nov-12 12:31
sitebuilderTerrence Dorsey21-Nov-12 12:31 
NewsStrangling the life out of Software Testing Pin
Terrence Dorsey21-Nov-12 12:31
sitebuilderTerrence Dorsey21-Nov-12 12:31 
NewsJed – a JavaScript internationalization toolkit Pin
Terrence Dorsey21-Nov-12 12:31
sitebuilderTerrence Dorsey21-Nov-12 12:31 
NewsWhy I Have Given Up on Coding Standards PinPopular
Terrence Dorsey21-Nov-12 12:30
sitebuilderTerrence Dorsey21-Nov-12 12:30 
GeneralRe: Why I Have Given Up on Coding Standards Pin
Andrew Torrance21-Nov-12 13:36
Andrew Torrance21-Nov-12 13:36 
GeneralRe: Why I Have Given Up on Coding Standards PinPopular
Chris Maunder21-Nov-12 16:45
cofounderChris Maunder21-Nov-12 16:45 
Totally disagree.

There are different levels of coding standards.

1. How files and projects are organised and named
2. How namespaces, classes and all objects and variables are named
3. How code is organised within files (eg Adhering to StyleCop, how different sections are laid out)
4. How you code within a method (eg do you always ensure input params are checked? Output is checked?
5. How you format code. Braces on new or the same line? Wrap at 100 chars? Braces around all code blocks even if they are 1 line?
6. How you comment code.
7. How you handle error conditions. Do you throw exceptions or rely on passing around state?
8. How you handle return values - do you allow nulls, or do you always return an object, for example?

and on it can go.

These aren't nice to haves. These standards massively reduce the effort needed to scan large projects. Once someone understands the conventions in place in one part, they can move to any other part and understand how things are laid out and what to expect.

Standards such as how errors are handled ensure consistency in the code, and standards such as commenting ensure sufficient comments are placed where they are needed, and no more.

Coding Standards are like building or wiring standards. They reduce mistakes.
cheers,
Chris Maunder

The Code Project | Co-founder
Microsoft C++ MVP

GeneralRe: Why I Have Given Up on Coding Standards Pin
PIEBALDconsult21-Nov-12 16:59
mvePIEBALDconsult21-Nov-12 16:59 
GeneralRe: Why I Have Given Up on Coding Standards Pin
Andrew Torrance22-Nov-12 0:01
Andrew Torrance22-Nov-12 0:01 
GeneralRe: Why I Have Given Up on Coding Standards Pin
Chris Maunder22-Nov-12 4:25
cofounderChris Maunder22-Nov-12 4:25 
GeneralRe: Why I Have Given Up on Coding Standards Pin
Pete O'Hanlon21-Nov-12 20:44
mvePete O'Hanlon21-Nov-12 20:44 
GeneralRe: Why I Have Given Up on Coding Standards Pin
kornakar21-Nov-12 20:39
kornakar21-Nov-12 20:39 
GeneralRe: Why I Have Given Up on Coding Standards Pin
Jan Steyn21-Nov-12 22:29
Jan Steyn21-Nov-12 22:29 
GeneralRe: Why I Have Given Up on Coding Standards Pin
kornakar22-Nov-12 20:23
kornakar22-Nov-12 20:23 
NewsExtremist Programming Pin
Terrence Dorsey21-Nov-12 12:30
sitebuilderTerrence Dorsey21-Nov-12 12:30 
GeneralRe: Extremist Programming Pin
PIEBALDconsult21-Nov-12 17:09
mvePIEBALDconsult21-Nov-12 17:09 
GeneralRe: Extremist Programming Pin
Terrence Dorsey21-Nov-12 17:31
sitebuilderTerrence Dorsey21-Nov-12 17:31 
GeneralRe: Extremist Programming Pin
PIEBALDconsult21-Nov-12 17:43
mvePIEBALDconsult21-Nov-12 17:43 
NewsMore options for programming on iOS Pin
Terrence Dorsey21-Nov-12 11:02
sitebuilderTerrence Dorsey21-Nov-12 11:02 
GeneralRe: More options for programming on iOS Pin
Sperneder Patrick21-Nov-12 19:21
professionalSperneder Patrick21-Nov-12 19:21 
NewsMobile maps showdown Pin
Terrence Dorsey21-Nov-12 11:02
sitebuilderTerrence Dorsey21-Nov-12 11:02 
NewsSecurity Hole Allows Pirates to Get a Legitimate Windows 8 Activation for Free PinPopular
Terrence Dorsey21-Nov-12 11:01
sitebuilderTerrence Dorsey21-Nov-12 11:01 
GeneralRe: Security Hole Allows Pirates to Get a Legitimate Windows 8 Activation for Free Pin
David Goebet21-Nov-12 19:34
professionalDavid Goebet21-Nov-12 19:34 
NewsJensen Harris Tells the Story of the Design of Windows 8 Pin
Terrence Dorsey21-Nov-12 11:01
sitebuilderTerrence Dorsey21-Nov-12 11:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.