Click here to Skip to main content
16,007,443 members

Survey Results

Do you have code reviews?   [Edit]

Survey period: 21 Aug 2006 to 27 Aug 2006

Having a second set of eyes look over your code is incredibly valuable. But do you do it?

OptionVotes% 
Yes, we do regular formal code inspections and/or reviews12312.95
Yes, we do regular informal code reviews10110.63
Yes, we sometimes to code reviews10511.05
We sometimes review parts of our code11612.21
We very rarely do code reviews17518.42
No, we never do code reviews33034.74



 
AnswerA recent related thread Pin
Vikram A Punathambekar21-Aug-06 3:58
Vikram A Punathambekar21-Aug-06 3:58 
AnswerRe: Usefulness? Pin
Dale Thompson21-Aug-06 4:01
Dale Thompson21-Aug-06 4:01 
GeneralRe: Usefulness? Pin
Kevin McFarlane23-Aug-06 3:44
Kevin McFarlane23-Aug-06 3:44 
GeneralRe: Usefulness? Pin
Chris S Kaiser23-Aug-06 8:49
Chris S Kaiser23-Aug-06 8:49 
GeneralRe: Usefulness? Pin
Kevin McFarlane23-Aug-06 9:29
Kevin McFarlane23-Aug-06 9:29 
GeneralRe: Usefulness? Pin
Chris S Kaiser23-Aug-06 8:48
Chris S Kaiser23-Aug-06 8:48 
AnswerRe: Usefulness? Pin
Nemanja Trifunovic21-Aug-06 4:41
Nemanja Trifunovic21-Aug-06 4:41 
AnswerRe: Usefulness? Pin
Madhu Kampurath23-Aug-06 23:26
Madhu Kampurath23-Aug-06 23:26 
Reviewing something is always good whether it is code or design or something outside programming. It will certainly improve quality if done at proper stages of development.

But, too much reviewing is bad and too little is also. Attributes and methods of a component has to be reviewed atleast 3 times and any change in it also. Whether a private string variable names start with s or str is irrelevant as far as its name is correct and conveys proper meaning and purpose.

I prefer to do reviewing at design level rather than after all coding is over. Whether in OO environment or procedural environment, I prefer coders to decide all attributes, methods, indexers, events and as far private variables as possible in advance. Then they will be reviewed before their implementation starts. (It was difficult initially and lot of help was needed especially for freshers). Reducing the size of methods is of utmost importance while doing this.

When this level of checking is done, it is my experience that the maintainability increases very much. The general comments that if we do this type of planning, we will be wasting a lot of time and delivery date will not be met etc are rubbish. It is not the first delivery dates that matter. It is the final go-live date that matter for a serious client.

When a change is there, the class structure is reviewed and points of changes are first spot. Doing it then will help reduce turn around time again. This will also help reduce impacts after change.

Chances for a very hot fixes would have been over by above procedure. Ofcourse, there will be urgent fixes etc. But, jumping straight into code pages and doing somethings in a zig-zag way will not help fix problem and will take more time. A 15 minute meeting before such hot fixes will also make it into more stream-lined and no client, I believe, will loose anything over that 15 minutes.

Some persons/companies prepare rules that all string variables should have prefix "s" , a space has to be put before and after all binary operators, etc. I personally do not believe in them, (but follow) and reviewing to ensure such things is a waste of time.

But, there are other areas where reviewing after coding is beneficial. Whether coders have closed all DB connections after their use, whether they have applied transactions properly, exceptions are caught properly etc. has to be checked and these checkings will do a lot of good in future.
AnswerRe: Usefulness? Pin
Cliff Mayo25-Aug-06 8:07
Cliff Mayo25-Aug-06 8:07 
GeneralSolo developer Pin
eggsovereasy21-Aug-06 3:22
eggsovereasy21-Aug-06 3:22 
GeneralRe: Solo developer Pin
TClarke21-Aug-06 5:51
TClarke21-Aug-06 5:51 
GeneralRe: Solo developer Pin
danmorin21-Aug-06 15:53
danmorin21-Aug-06 15:53 
GeneralRe: Solo developer Pin
TClarke21-Aug-06 23:05
TClarke21-Aug-06 23:05 
GeneralRe: Solo developer Pin
Captain Willard22-Aug-06 0:19
Captain Willard22-Aug-06 0:19 
GeneralRe: Solo developer Pin
TClarke22-Aug-06 0:55
TClarke22-Aug-06 0:55 
GeneralRe: Solo developer Pin
danmorin22-Aug-06 1:12
danmorin22-Aug-06 1:12 
GeneralRe: Solo developer Pin
TClarke22-Aug-06 1:37
TClarke22-Aug-06 1:37 
GeneralRe: Solo developer Pin
danmorin22-Aug-06 1:47
danmorin22-Aug-06 1:47 
GeneralRe: Solo developer Pin
TClarke22-Aug-06 2:06
TClarke22-Aug-06 2:06 
GeneralRe: Solo developer Pin
Tim Kohler22-Aug-06 7:30
Tim Kohler22-Aug-06 7:30 
GeneralRe: Solo developer - UML Pin
danmorin22-Aug-06 18:29
danmorin22-Aug-06 18:29 
GeneralRe: Solo developer - UML Pin
TClarke23-Aug-06 1:22
TClarke23-Aug-06 1:22 
GeneralRe: Solo developer - UML Pin
NormDroid23-Aug-06 4:37
professionalNormDroid23-Aug-06 4:37 
GeneralRe: Solo developer Pin
John R. Shaw24-Aug-06 15:38
John R. Shaw24-Aug-06 15:38 
GeneralSPI Pin
Paul Watson20-Aug-06 23:34
sitebuilderPaul Watson20-Aug-06 23:34 

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.