Click here to Skip to main content
12,692,112 members (25,811 online)

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 11:37
staffTerrence Dorsey22-Nov-12 11:37 
NewsGenerating Music Pin
Terrence Dorsey22-Nov-12 11:36
staffTerrence Dorsey22-Nov-12 11:36 
NewsThe Computer That Stores and Processes Information At the Same Time Pin
Terrence Dorsey21-Nov-12 13:31
staffTerrence Dorsey21-Nov-12 13:31 
NewsStrangling the life out of Software Testing Pin
Terrence Dorsey21-Nov-12 13:31
staffTerrence Dorsey21-Nov-12 13:31 
NewsJed – a JavaScript internationalization toolkit Pin
Terrence Dorsey21-Nov-12 13:31
staffTerrence Dorsey21-Nov-12 13:31 
NewsWhy I Have Given Up on Coding Standards Pin
Terrence Dorsey21-Nov-12 13:30
staffTerrence Dorsey21-Nov-12 13:30 
GeneralRe: Why I Have Given Up on Coding Standards Pin
Andrew Torrance21-Nov-12 14:36
memberAndrew Torrance21-Nov-12 14:36 
GeneralRe: Why I Have Given Up on Coding Standards Pin
Chris Maunder21-Nov-12 17:45
adminChris Maunder21-Nov-12 17: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 17:59
memberPIEBALDconsult21-Nov-12 17:59 
GeneralRe: Why I Have Given Up on Coding Standards Pin
Andrew Torrance22-Nov-12 1:01
memberAndrew Torrance22-Nov-12 1:01 
GeneralRe: Why I Have Given Up on Coding Standards Pin
Chris Maunder22-Nov-12 5:25
adminChris Maunder22-Nov-12 5:25 
GeneralRe: Why I Have Given Up on Coding Standards Pin
Pete O'Hanlon21-Nov-12 21:44
protectorPete O'Hanlon21-Nov-12 21:44 
GeneralRe: Why I Have Given Up on Coding Standards Pin
kornakar21-Nov-12 21:39
memberkornakar21-Nov-12 21:39 
GeneralRe: Why I Have Given Up on Coding Standards Pin
Jan Steyn21-Nov-12 23:29
memberJan Steyn21-Nov-12 23:29 
GeneralRe: Why I Have Given Up on Coding Standards Pin
kornakar22-Nov-12 21:23
memberkornakar22-Nov-12 21:23 
NewsExtremist Programming Pin
Terrence Dorsey21-Nov-12 13:30
staffTerrence Dorsey21-Nov-12 13:30 
GeneralRe: Extremist Programming Pin
PIEBALDconsult21-Nov-12 18:09
memberPIEBALDconsult21-Nov-12 18:09 
GeneralRe: Extremist Programming Pin
Terrence Dorsey21-Nov-12 18:31
staffTerrence Dorsey21-Nov-12 18:31 
GeneralRe: Extremist Programming Pin
PIEBALDconsult21-Nov-12 18:43
memberPIEBALDconsult21-Nov-12 18:43 
NewsMore options for programming on iOS Pin
Terrence Dorsey21-Nov-12 12:02
staffTerrence Dorsey21-Nov-12 12:02 
GeneralRe: More options for programming on iOS Pin
Sperneder Patrick21-Nov-12 20:21
memberSperneder Patrick21-Nov-12 20:21 
NewsMobile maps showdown Pin
Terrence Dorsey21-Nov-12 12:02
staffTerrence Dorsey21-Nov-12 12:02 
NewsSecurity Hole Allows Pirates to Get a Legitimate Windows 8 Activation for Free Pin
Terrence Dorsey21-Nov-12 12:01
staffTerrence Dorsey21-Nov-12 12:01 
GeneralRe: Security Hole Allows Pirates to Get a Legitimate Windows 8 Activation for Free Pin
David Goebet21-Nov-12 20:34
memberDavid Goebet21-Nov-12 20:34 
NewsJensen Harris Tells the Story of the Design of Windows 8 Pin
Terrence Dorsey21-Nov-12 12:01
staffTerrence Dorsey21-Nov-12 12: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.


Advertise | Privacy | Mobile
Web02 | 2.8.170118.1 | Last Updated 18 Jan 2017
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid