How CodeScene Differs From Traditional Code Analysis Tools

The main difference between CodeScene’s behavioral code analysis and traditional code scanning techniques is that static analysis works on a snapshot of the codebase while CodeScene considers the temporal dimension and evolution of the whole system. This makes it possible for CodeScene to prioritize technical debt and code quality issues based on how the organization actually works with the code. Hence, we can limit the results to information that is relevant, actionable, and translates directly into business value.

CodeScene also goes beyond code as we consider the organization and people side of the system. This gives you valuable information that is invisible in the source code itself, such as measures of team autonomy and off-boarding risks. Let’s explore how this is possible.

A Behavioral Code Analysis Prioritizes Technical Debt

A traditional static code analysis tool focuses on a snapshot of the code as it looks right now. Such tooling is valuable in that it might find code that is overly complex, has heavy dependencies on other parts, or contain error prone constructs. It’s genuinely useful and I use static code analysis myself – it’s a valuable practice.

However, a static analysis will never be able to tell you if that excess code complexity actually matters – just because a piece of code is complex doesn’t mean its a problem. This is where CodeScene’s behavioral code analysis fills an important gap.

CodeScene identifies and prioritizes technical debt based on how the organization works with the code. That is, we look at patterns in how the developers interact with the codebase, and we detect in which direction each piece of code evolves – does it get better or worse? The reason we’re able to do that is because we mine and analyze behavioral data as recorded in version-control systems and project management tools:

CodeScene's code analysis combine multiple data sources to prioritize technical debt and deliver predictive analytics.

CodeScene analyses multiple data sources to provide its analytics.

The analysis is completely automated, and CodeScene is able to prioritize a small part of your codebase – typically 2-4% – that identifies the most likely return on any code quality investments. As such, CodeScene differs as its goal isn’t to give you detailed information on the whole codebase. Instead, a behavioral code analysis prioritizes any technical debt or code quality issues, and makes the resulting information actionable:

The code biomarkers analysis shows the status of your technical debt hotspots and their trends.

The Code Biomarkers shows the status of your hotspots at a glance.

Read more about code biomarkers.

Measure Team Work and Organizational Factors

The code itself is only one component of a software system. As soon as an organization grows beyond a handful of people, social aspects like coordination, communication, and motivation issues increase in importance. Unfortunately these, well, softer aspects of software development are invisible in our code; if you pick up a piece of code from your system there’s no way of telling if it’s been written by a single developer or if that code is a coordination bottleneck for five development teams. That is, we miss an important piece of information: the people side of code.

A behavioral code analysis tool like CodeScene helps you fill in the blanks. Since behavioral code analysis builds on social data – CodeScene knows exactly which programmer that wrote each piece of code – it’s possible to build up knowledge maps of a codebase and to measure the coordination needs by detecting inter-team dependencies. This is useful to detect sub-systems that become coordination bottlenecks or lack a clear ownership, as shown in the next figure.

Identify team coordination bottlenecks in your codebase based on code contributions.

Find team coordination bottlenecks based on code contributions.

CodeScene takes the social concept further to support project planning with on- and off-boarding. For example, CodeScene’s simulation module lets you explore the effects of a planned off-boarding while the developers are still aboard. This gives you the opportunity to identify off-boarding risks and areas of the code in need of a new main developer. Note that none of that information is available in the code itself.

Read more about social code analyses.

Explore More and try CodeScene

CodeScene is available as an on-premise version and as a hosted CodeScene Cloud.

Our FAQ describes the different offerings – on-prem, Enterprise, Cloud – and explains how the license works. To get a quick overview of CodeScene, check out the 1 minute video.

comments powered by Disqus