Home > Software management > Software Code Review Study and Best Practices

Software Code Review Study and Best Practices

December 10th, 2010 Leave a comment Go to comments

Software Code ReviewMany companies perform software development without code reviews – the systematic examination of source code intended to find and fix mistakes overlooked by the original developer – or at least without formal reviews.

I’ve recently come across The Value and Importance of Code Review white paper from Klocwork who commissioned an independent company to survey IT professional.

This paper shows code review practices have not changed much over the years even though software development have dramatically evolved.

Here are the key findings of the study:

  • Code reviews are valuable, but approaches tend not to be formal.
  • Modern development is increasingly complex,  and code reviews are not keeping pace. (i.e. Code reviews are low priority tasks)
  • Code reviews don’t always include the right people. (e.g. Architecture and QA Team are left out, only only software engineer are part of the review)
  • Tools don’t play a significant role in reviews. (e.g. code coverage and code analysis tools)
  • Process and time limits inhibit code reviews.
  • Social media plays an increasingly important role in technology research, e.g. for technical support, but not for code reviews.

However, all IT professional that were interviewed said code reviews added value, mainly in the three following ways:

  1. Bugs are uncovered earlier in the life cycle
  2. Best practices are shared among engineers
  3. Re-factoring and code simplification are encouraged and more opportunities for code reuse are provided.

When asked about the challenges for implementing formal code reviews,  IT professionals’ answers were (most difficult to easiest):

  • Finding the time in the schedule for code reviews
  • Keeping the team motivated to review code
  • Knowledge of the application / operating system
  • Getting access to the right people
  • Getting access to adequate tools
  • Getting everybody in the same location

Finally, the white paper provides best practices for code reviews summarized as follows:

  • Make code reviews part of the technical development (including part of the schedule) to keep people interested and motivated
  • Use tools to automate understanding and increase information. This also save time.
  • Increase participation with social medias such as wikis, microblogs and discussion forums.

You can read the white paper about code reviews if you want to know the details.

Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter

Categories: Software management Tags: code, klocwork, review
  1. No comments yet.
  1. No trackbacks yet.