InfoQ

InfoQ

News

My Bookmarks

Login or Register to enable bookmarks for unlimited time.

The content has been bookmarked!

There was an error bookmarking this content! Please retry.

Code quality for teams

Posted by Niclas Nilsson on Jun 29, 2009

Sections
Process & Practices,
Architecture & Design,
Development
Topics
Delivering Quality ,
Artifacts & Tools ,
Architecture ,
Code Analysis
Tags
Quality

Jaibeer Malik has posted an introduction of how to address and introduce code quality within a team. His series of posts may suite you if you are in a situation where you have to either learn more yourself or introduce these ideas to others. The series provides a brief overview of the topic and gives pointers in different directions of where to go to study more.

Jaibeer asks:

How many times it has happened to you that when you join a new project and start looking at the code first time or when some new member joins the project then people usually say that what the crap is this code and we need to improve this and that. As time passes you seldom get the chance to correct it and the same thing passes over and over.

He starts off the first post by asking questions like:

  • What to learn to write good code?
  • How can I figure out the code in front of me is of good or bad quality?
  • What are the good or bad code quality factors or criteria?
  • How to approach the code to solve the quality problem?
  • How to transform the bad code into good code?

The series then is organized into three distinctive parts:

Learning OOP, Design Patterns, Clean Code and Refactoring

One of the first things to do to improve the quality of the code a team produces is to help team members learn about the important basics. This part of the series gives guidelines on important things to learn and useful links to good learning material (books, blogs and games).

Measurement Tools

In the Measurement Tools part, Jaibeer explains the reasons to use static code analysis tools.

Static code analysis can help you to figure out the possible coding errors in your software. You can gain real quality improvements in your software by integrating these SCA tools in your development process. What is better than finding these problems during development phase rather than once the software is live.

He lists nine tools that produce different metrics and perspectives on your source code and gives a brief description of each tool. The tools he lists works for Java source code, but even if Java is not the language you use, the overview of tools can still give you insight of what tools can do for you and thereby give you ideas of what to look for on your own platform. There are also recommendations of how to integrate the tools in your build process.

Organizing awareness with in the team

The last part of the series covers how to share the knowledge and awareness within the team. Again, it's a brief but useful starting point for things to think about when you're figuring out how to make the new awareness really stick. Jaibeer gives thoughts on:

  • Pair Programming
  • Wiki
  • Coding Standards Document
  • Mailing List
  • Fixing the issue and letting people know

Use the series as an overview and a starting point, to find out how to dive deeper into the complex topic of code quality for teams.

Related Sponsor

In today’s hyper-competitive world, later may be too late to adopt Agile development and this Roadmap for Success will help you get started. Download "Agile Development: A Manager's Roadmap for Success" now!

No comments

Watch Thread Reply

Educational Content

Collaboration: At the Extremities of Extreme

Jason Ayers share the observations he made watching a team of developers collaborating in real time on the same code base, pushing XP, pair programming and continuous integration to their extremes.

Yesod Web Framework

Michael Snoyman presents Yesod, a web framework written in Haskell and containing a web server, templating, ORM, libraries (templating, gravatar, etc.).

Transactions without Transactions

Richard Kreuter and Kyle Banker on how to avoid classical RDBMS transactional systems by using compensation mechanisms, transactional messaging or transactional procedures.

Attila Szegedi on JVM and GC Performance Tuning at Twitter

Attila Szegedi talks about performance tuning Java and Scala programs at Twitter: how to approach GC problems, the importance of asynchronous I/O, when to use MySQL/Cassandra/Redis, and much more.

10 tips on how to prevent business value risk

One category of risk that project teams need to ensure they address is business value failure – delivering a product that fails to provide value for the business investor.

Interview: Software Systems Architecture: Working With Stakeholders Using Viewpoints and Perspectives

InfoQ spoke to the authors of Software Systems Architecture on a couple of new topics, the System Context viewpoint and Agile, which have been added to the second edition.

Beauty Is in the Eye of the Beholder

Alex Papadimoulis discusses ugly code, where it comes from, how to avoid it, and how to get rid of it.

Architecting Visa for Massive Scale and Continuous Innovation

John Davies examines Visa’s architecture and shows how enterprises have architected complex integrations incorporating Hadoop, memcached, Ruby on Rails, and others to deliver innovative solutions.