Click here to Skip to main content
15,914,013 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Coding Standards Pin
_Maxxx_13-Feb-14 16:47
professional_Maxxx_13-Feb-14 16:47 
GeneralRe: Coding Standards Pin
Stefan_Lang14-Feb-14 0:03
Stefan_Lang14-Feb-14 0:03 
GeneralRe: Coding Standards Pin
Stefan_Lang13-Feb-14 23:58
Stefan_Lang13-Feb-14 23:58 
GeneralRe: Coding Standards Pin
User 754579914-Feb-14 3:54
User 754579914-Feb-14 3:54 
GeneralRe: Coding Standards Pin
agolddog14-Feb-14 4:11
agolddog14-Feb-14 4:11 
GeneralRe: Coding Standards Pin
Member 999720314-Feb-14 5:48
Member 999720314-Feb-14 5:48 
GeneralRe: Coding Standards Pin
Ralph Little14-Feb-14 6:10
Ralph Little14-Feb-14 6:10 
GeneralRe: Coding Standards Pin
Kirk 1038982114-Feb-14 8:12
Kirk 1038982114-Feb-14 8:12 
Wow, some of the comments here against coding standards surprised me.

I am a huge fan of coding standards, and code reviews. Especially when everyone works on the software. But I started with professional Basic Plus (on a PDP/11), which required no indentation, so people did not do it. LOL. A 16 way If then statement without ANY indentation. Worse, one of the programmers actually removed MY indentation. He said if you can't read the code, you are not a real programmer.

We immediately adopted coding standards, and reviews. But pragmatically. Comments are OPTIONAL and NEVER increase the accuracy of code. But, in a review, ANY reviewer can request a comment clarifying a complex block of code. Or forcing a comment on a variable declaration whose usage must be understood.

Over the next few months, we noticed the rates of defects in the code were dropping. We also found we were all getting better at predicting problems just by reading the code.

So, I am all for coding standards and code reviews. But let me add, that ONLY to the degree that the rules make sense. One of the reasons to use a standard is that it is EASIER to teach a person to read structured code of ONE STYLE than to have to constantly switch styles. Most editors do the heavy lifting of formatting these days.

My only issue with the coding style you have described is that it requires USELESS comments.
Declaring variables at the top is required in other languages (Pascal/Delphi, COBOL). In C, I always liked blocked local variables.

So, while i understand your frustration, have you read "Code Complete" or "Writing Solid Code". One way to attack the problem, is to get your boss to read some of the modern books (you should read them first). On my teams, ALL developers are REQUIRED to read a batch of 6 books on their own time. This helps us all speak the same language and communicate better. Just a thought.
GeneralRe: Coding Standards Pin
Daniel R. Przybylski14-Feb-14 8:21
Daniel R. Przybylski14-Feb-14 8:21 
GeneralRe: Coding Standards Pin
Matt U.14-Feb-14 10:08
Matt U.14-Feb-14 10:08 
GeneralRe: Coding Standards Pin
James Lonero17-Feb-14 5:19
James Lonero17-Feb-14 5:19 
GeneralIs anyone else... Pin
Fredrik Bornander13-Feb-14 2:53
professionalFredrik Bornander13-Feb-14 2:53 
GeneralRe: Is anyone else... Pin
Duncan Edwards Jones13-Feb-14 3:03
professionalDuncan Edwards Jones13-Feb-14 3:03 
GeneralRe: Is anyone else... Pin
Nicholas Marty13-Feb-14 3:39
professionalNicholas Marty13-Feb-14 3:39 
GeneralRe: Is anyone else... Pin
Duncan Edwards Jones13-Feb-14 4:13
professionalDuncan Edwards Jones13-Feb-14 4:13 
GeneralRe: Is anyone else... Pin
Nicholas Marty13-Feb-14 4:22
professionalNicholas Marty13-Feb-14 4:22 
GeneralRe: Is anyone else... Pin
Richard Deeming13-Feb-14 3:09
mveRichard Deeming13-Feb-14 3:09 
GeneralRe: Is anyone else... Pin
Dinesh.V.Kumar13-Feb-14 3:12
Dinesh.V.Kumar13-Feb-14 3:12 
GeneralRe: Is anyone else... Pin
HobbyProggy13-Feb-14 3:49
professionalHobbyProggy13-Feb-14 3:49 
GeneralRe: Is anyone else... Pin
Nagy Vilmos13-Feb-14 3:10
professionalNagy Vilmos13-Feb-14 3:10 
GeneralRe: Is anyone else... Pin
Kornfeld Eliyahu Peter13-Feb-14 3:31
professionalKornfeld Eliyahu Peter13-Feb-14 3:31 
GeneralRe: Is anyone else... Pin
Richard MacCutchan13-Feb-14 4:37
mveRichard MacCutchan13-Feb-14 4:37 
JokeGETTING OLDER Pin
Vivi Chellappa13-Feb-14 2:27
professionalVivi Chellappa13-Feb-14 2:27 
GeneralRe: GETTING OLDER Pin
BillW3313-Feb-14 7:33
professionalBillW3313-Feb-14 7:33 
GeneralTHats pretty deep actually Pin
Erudite_Eric13-Feb-14 1:36
Erudite_Eric13-Feb-14 1:36 

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.