In this continuing story about the journey to source code awesomeness, we left off at the point where we identified priority defect types for your organization, kicked off pre-checkin static analysis on developer desktops and saw build-over-build improvements in our trending reports as a result. The next question we tackle here is: What is my cost of ownership? The answer, my friend, is not blowing in the wind, it’s in your Complexity Trend report: Why there? you might ask. Well, it’s because there’s a straight-line correlation between the complexity of a function and its cost per
Read More »Just came across this post about the 5 code metrics you need to watch. I thought it was worth mentioning as I just blogged about this below (including something similar a while back). These are interesting metrics and more high level, but certainly important. I like labeling duplicated code as something important. I think we often forget how much we reuse code and have the same mistakes in many places
Read More »Refactoring is a vital component for software developers, helping to prevent their projects from becoming unusable, and unmaintainable spaghetti code. Equally important to some developers, is the notion of refuctoring…check out this tongue in cheek look at Refactoring vs. Refuctoring. Be sure to check out the slide deck at the end. Refuctoring describes the process of making your code unmaintainable by anybody but yourself. I love some of the examples of Refuctoring such as “Pig Latin”, “Treasure Hunt” and my personal favorite “Stating the Bleeding Obvious”: For example: //initialize a to 1 int a=1; Not
Read More »Many of us have seen the # of lines of code (LOC) stats that get thrown around as a metric for illustrating how complex software development has become: The U.S. Army’s Future Combat System is estimated at 60 million lines of code (MLOC) The software that runs the Boeing 787 is almost 7 MLOC, triple that of the 777 GM says future cars will have >100 MLOC (that sounds high, but hey, <insert GM joke here>) So, yes there’s a lot of code out there, it’s growing, and it’s getting more complex. It’s tough to
Read More »