Welcome!

Java IoT Authors: Liz McMillan, Elizabeth White, Yeshim Deniz, Pat Romanski, Chris Schwarz

Related Topics: Java IoT, Industrial IoT, Microservices Expo

Java IoT: Article

Software Quality Best Practices: Healthy Software

Great Software IS Great Marketing

Consider the following scenario-typical in many application development organizations. A major new release of an application has just gone into production. Although the development and QA teams endured many late nights of coding and testing, and consumed large quantities of delivered pizza, the project missed its ship date. Still, customers are happy with the product and are giving positive feedback. By many definitions, the team has produced a quality product.

Then, a new, large business opportunity requires the rapid implementation of a significant new feature in the product. The tired and over-worked development team struggles with how, or even if, it can meet the new requirement. They are concerned that the new feature will break the existing product and predict a lengthy development cycle.

Schedule overruns, tired staff, and difficulty in changing or adding functionality are sure indications that something is wrong with your software: your software is unhealthy. It is poorly specified, architected, and designed; it lacks comprehensive documentation, and automated unit and system tests. Changing even the smallest part of its code is fraught with risk as no one fully understands the implications.

The cost of unhealthy software
The impact of unhealthy software is significant and even has a quantifiable effect on the value of the business.  The total payroll for individuals in the US software workforce approaches US$120 Billion per year.  According to industry experts such as Capers Jones, nearly US$75 Billion of that can be attributed to software repair.  This amount is equivalent to one-fifth of the profits reported by the largest 500 corporations in the United States.  Stated another way, if corporations were able to convert this $120 Billion into profits, they would increase their market capitalization by an incredible USD$2 Trillion, based on current S&P500 multiples.   Other studies, such as the May 2002 NIST report estimated a smaller amount for the value of potentially recoverable costs--$21 Billion.

The costs associated with the consequences of defective software are even more severe.  The NIST report estimates that over $38 Billion of end-users' time is wasted.  And the Standish Group reported downstream business costs-"collateral damage" of nearly $300 billion.

The path to healthy software
Many solutions have been proposed to help remedy the problem, including requirements management, modeling tools, incremental development, component-based development, service orientation, and automated system tests. All of these solutions add value, but none have as much impact as Developer Testing.

It makes so much sense: developers create the code that embodies the design and also harbors the software's defects. Enabling developers to validate the correctness of their code at the time they write it creates cascading positive effects that have tremendous beneficial impact on software health:

  • Developers can fix simple coding errors at a very low cost, without negatively affecting other modules.
  • They are able to fix the design flaw that led to the error, not just remove the manifestation of the error. Testable code is better code.
  • They keep the tests with their code and run them often. Any changes that introduce errors at later stages of the development cycle are immediately observed and fixed.
  • The tests developers create serve as an executable specification. Other developers can understand what each developer's software module does from these tests, and write their own software such that it interacts correctly - further promoting proper design.
  • The final software product they deliver comes with a body of executable unit tests that cover all of its code, branches, and outcomes. Developers will be confident of the software's quality and make changes with speed and certainty.

Figure 1: Developer Testing results in healthier applications.

As the above graph indicates in red, in the absence of Developer Testing, developers work without significant feedback on software quality until the QA team begins testing, which is usually late in the development cycle.

By then, software health has deteriorated to the point where it is typically impossible to fully restore. At a minimum, it would be difficult and expensive to do so.

In contrast, the above chart shows in green that a team using Developer Testing keeps its software healthy throughout the development cycle. The project will be completed earlier, with more confidence, and less stress. And the resulting product will be highly reusable and extensible. The team has delivered healthy software.

Developer Testing defined
Developer Testing (also called unit testing, or programmer testing) has gained significant acceptance in the recent years, fueled by the adoption of agile development processes such as XP and Scrum. The popular Developer Testing framework JUnit has been downloaded more than 1 million times and is now included with most IDEs.

Here is how we define Developer Testing for software development teams:

  • For every software unit created, developers also create meaningful tests that can be automatically executed to verify that the software functions correctly.
  • Developers do not check in a unit of software before the tests for that unit pass.
  • Developers add the tests to a repository of unit tests that verify that all units of the integrated system function correctly.
  • This collection of unit tests is executed frequently, and the team commits to keep the tests passing at every stage of the development process.

Teams that practice Developer Testing usually use some form of build automation. By integrating new code into a fully built system on a regular basis, it is possible to detect and fix regressions early, particularly when the process includes running a comprehensive body of unit tests.
Broadening the adoption of Developer Testing

If Developer Testing provides so many benefits, why is it done so rarely? The answer, to a large degree, is that current approaches rely too much on extensive manual effort:

  • Writing tests is a combinatorial problem. Every branch in code requires multiple tests. To accomplish good coverage, developers must often write test code that is several times as long as the source code it is meant to test.
  • Maintaining tests becomes more of a burden as the number of tests grows and the associated code changes. As a result, tests often go out of date and, once they have, they lose their value and are no longer used.
  • Even if tests are up-to-date and are being run frequently, it can be hard to interpret their relevance. What part of the code has been tested, and what has not? Is the untested code likely to harbor defects? Without tools to interpret and direct the results, Developer Testing will only have marginal value.

Test execution frameworks like JUnit, build automation tools like Ant and Maven, and integration/automation tools like CruiseControl have had an enormously positive impact on the adoption of Developer Testing. What is still needed is a set of tools that help overcome the most significant barriers: the creation and maintenance of unit tests, and the management of Developer Testing efforts.

More Stories By Hollis Tibbetts

Hollis Tibbetts, or @SoftwareHollis as his 50,000+ followers know him on Twitter, is listed on various “top 100 expert lists” for a variety of topics – ranging from Cloud to Technology Marketing, Hollis is by day Evangelist & Software Technology Director at Dell Software. By night and weekends he is a commentator, speaker and all-round communicator about Software, Data and Cloud in their myriad aspects. You can also reach Hollis on LinkedIn – linkedin.com/in/SoftwareHollis. His latest online venture is OnlineBackupNews - a free reference site to help organizations protect their data, applications and systems from threats. Every year IT Downtime Costs $26.5 Billion In Lost Revenue. Even with such high costs, 56% of enterprises in North America and 30% in Europe don’t have a good disaster recovery plan. Online Backup News aims to make sure you all have the news and tips needed to keep your IT Costs down and your information safe by providing best practices, technology insights, strategies, real-world examples and various tips and techniques from a variety of industry experts.

Hollis is a regularly featured blogger at ebizQ, a venue focused on enterprise technologies, with over 100,000 subscribers. He is also an author on Social Media Today "The World's Best Thinkers on Social Media", and maintains a blog focused on protecting data: Online Backup News.
He tweets actively as @SoftwareHollis

Additional information is available at HollisTibbetts.com

All opinions expressed in the author's articles are his own personal opinions vs. those of his employer.

@ThingsExpo Stories
"We provide IoT solutions. We provide the most compatible solutions for many applications. Our solutions are industry agnostic and also protocol agnostic," explained Richard Han, Head of Sales and Marketing and Engineering at Systena America, in this SYS-CON.tv interview at @ThingsExpo, held June 6-8, 2017, at the Javits Center in New York City, NY.
DX World EXPO, LLC., a Lighthouse Point, Florida-based startup trade show producer and the creator of "DXWorldEXPO® - Digital Transformation Conference & Expo" has announced its executive management team. The team is headed by Levent Selamoglu, who has been named CEO. "Now is the time for a truly global DX event, to bring together the leading minds from the technology world in a conversation about Digital Transformation," he said in making the announcement.
"DX encompasses the continuing technology revolution, and is addressing society's most important issues throughout the entire $78 trillion 21st-century global economy," said Roger Strukhoff, Conference Chair. "DX World Expo has organized these issues along 10 tracks with more than 150 of the world's top speakers coming to Istanbul to help change the world."
"We are focused on SAP running in the clouds, to make this super easy because we believe in the tremendous value of those powerful worlds - SAP and the cloud," explained Frank Stienhans, CTO of Ocean9, Inc., in this SYS-CON.tv interview at 20th Cloud Expo, held June 6-8, 2017, at the Javits Center in New York City, NY.
"We've been engaging with a lot of customers including Panasonic, we've been involved with Cisco and now we're working with the U.S. government - the Department of Homeland Security," explained Peter Jung, Chief Product Officer at Pulzze Systems, in this SYS-CON.tv interview at @ThingsExpo, held June 6-8, 2017, at the Javits Center in New York City, NY.
In the enterprise today, connected IoT devices are everywhere – both inside and outside corporate environments. The need to identify, manage, control and secure a quickly growing web of connections and outside devices is making the already challenging task of security even more important, and onerous. In his session at @ThingsExpo, Rich Boyer, CISO and Chief Architect for Security at NTT i3, discussed new ways of thinking and the approaches needed to address the emerging challenges of security i...
What sort of WebRTC based applications can we expect to see over the next year and beyond? One way to predict development trends is to see what sorts of applications startups are building. In his session at @ThingsExpo, Arin Sime, founder of WebRTC.ventures, discussed the current and likely future trends in WebRTC application development based on real requests for custom applications from real customers, as well as other public sources of information.
The financial services market is one of the most data-driven industries in the world, yet it’s bogged down by legacy CPU technologies that simply can’t keep up with the task of querying and visualizing billions of records. In his session at 20th Cloud Expo, Karthik Lalithraj, a Principal Solutions Architect at Kinetica, discussed how the advent of advanced in-database analytics on the GPU makes it possible to run sophisticated data science workloads on the same database that is housing the rich...
SYS-CON Events announced today that Massive Networks will exhibit at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Massive Networks mission is simple. To help your business operate seamlessly with fast, reliable, and secure internet and network solutions. Improve your customer's experience with outstanding connections to your cloud.
Internet of @ThingsExpo, taking place October 31 - November 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA, is co-located with 21st Cloud Expo and will feature technical sessions from a rock star conference faculty and the leading industry players in the world. The Internet of Things (IoT) is the most profound change in personal and enterprise IT since the creation of the Worldwide Web more than 20 years ago. All major researchers estimate there will be tens of billions devic...
"The Striim platform is a full end-to-end streaming integration and analytics platform that is middleware that covers a lot of different use cases," explained Steve Wilkes, Founder and CTO at Striim, in this SYS-CON.tv interview at 20th Cloud Expo, held June 6-8, 2017, at the Javits Center in New York City, NY.
Everything run by electricity will eventually be connected to the Internet. Get ahead of the Internet of Things revolution and join Akvelon expert and IoT industry leader, Sergey Grebnov, in his session at @ThingsExpo, for an educational dive into the world of managing your home, workplace and all the devices they contain with the power of machine-based AI and intelligent Bot services for a completely streamlined experience.
With tough new regulations coming to Europe on data privacy in May 2018, Calligo will explain why in reality the effect is global and transforms how you consider critical data. EU GDPR fundamentally rewrites the rules for cloud, Big Data and IoT. In his session at 21st Cloud Expo, Adam Ryan, Vice President and General Manager EMEA at Calligo, will examine the regulations and provide insight on how it affects technology, challenges the established rules and will usher in new levels of diligence...
SYS-CON Events announced today that Calligo, an innovative cloud service provider offering mid-sized companies the highest levels of data privacy and security, has been named "Bronze Sponsor" of SYS-CON's 21st International Cloud Expo ®, which will take place on Oct 31 - Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Calligo offers unparalleled application performance guarantees, commercial flexibility and a personalised support service from its globally located cloud plat...
SYS-CON Events announced today that DXWorldExpo has been named “Global Sponsor” of SYS-CON's 21st International Cloud Expo, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Digital Transformation is the key issue driving the global enterprise IT business. Digital Transformation is most prominent among Global 2000 enterprises and government institutions.
SYS-CON Events announced today that Datera, that offers a radically new data management architecture, has been named "Exhibitor" of SYS-CON's 21st International Cloud Expo ®, which will take place on Oct 31 - Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Datera is transforming the traditional datacenter model through modern cloud simplicity. The technology industry is at another major inflection point. The rise of mobile, the Internet of Things, data storage and Big...
While the focus and objectives of IoT initiatives are many and diverse, they all share a few common attributes, and one of those is the network. Commonly, that network includes the Internet, over which there isn't any real control for performance and availability. Or is there? The current state of the art for Big Data analytics, as applied to network telemetry, offers new opportunities for improving and assuring operational integrity. In his session at @ThingsExpo, Jim Frey, Vice President of S...
"MobiDev is a Ukraine-based software development company. We do mobile development, and we're specialists in that. But we do full stack software development for entrepreneurs, for emerging companies, and for enterprise ventures," explained Alan Winters, U.S. Head of Business Development at MobiDev, in this SYS-CON.tv interview at 20th Cloud Expo, held June 6-8, 2017, at the Javits Center in New York City, NY.
SYS-CON Events announced today that DXWorldExpo has been named “Global Sponsor” of SYS-CON's 21st International Cloud Expo, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Digital Transformation is the key issue driving the global enterprise IT business. Digital Transformation is most prominent among Global 2000 enterprises and government institutions.
In his opening keynote at 20th Cloud Expo, Michael Maximilien, Research Scientist, Architect, and Engineer at IBM, discussed the full potential of the cloud and social data requires artificial intelligence. By mixing Cloud Foundry and the rich set of Watson services, IBM's Bluemix is the best cloud operating system for enterprises today, providing rapid development and deployment of applications that can take advantage of the rich catalog of Watson services to help drive insights from the vast t...