×

Welcome to the Slashdot Beta site -- learn more here. Use the link in the footer or click here to return to the Classic version of Slashdot.

Thank you!

Before you choose to head back to the Classic look of the site, we'd appreciate it if you share your thoughts on the Beta; your feedback is what drives our ongoing development.

Beta is different and we value you taking the time to try it out. Please take a look at the changes we've made in Beta and  learn more about it. Thanks for reading, and for making the site better!

Ask Slashdot: Do coding standards make a difference?

Anonymous Coward writes | about a year ago

2

An anonymous reader writes "Every shop I've ever worked in has had a "Coding Style" document that dictates things like camelCase vs underscored_names, placement of curly braces, tabs vs spaces, etc... As a result, I've lost hundreds of hours in code reviews because some pedant was more interested in picking nits over whitespace than actually reviewing my algorithms. Are there any documents or studies that show a net productivity gain for having these sorts of standards? If not, why do we have them? We live in the future, why don't our tools enforce these standards automagically?"

2 comments

Not sure if troll but... (0)

Anonymous Coward | about a year ago | (#42353623)

It's a lot easier to work with code written by a large development team if you don't have to remember which modules use what name standards, and many people find code with varying formatting rules more difficult to read than its consistently formatted counterpart. Although what standard the group follows is arbitrary, consistency is useful. I see no fault with your coworker reviewing to the code standard before reviewing the algorithm itself.
Check for New Comments
Slashdot Account

Need an Account?

Forgot your password?

Don't worry, we never post anything without your permission.

Submission Text Formatting Tips

We support a small subset of HTML, namely these tags:

  • b
  • i
  • p
  • br
  • a
  • ol
  • ul
  • li
  • dl
  • dt
  • dd
  • em
  • strong
  • tt
  • blockquote
  • div
  • quote
  • ecode

"ecode" can be used for code snippets, for example:

<ecode>    while(1) { do_something(); } </ecode>
Sign up for Slashdot Newsletters
Create a Slashdot Account

Loading...