Good code never dies

 

Connecting state and local government leaders

Good source code on a robust, open-source platform is why software will continue to "eat the world."

While developing a Java configuration Web service for our technical cloud broker software, Axon Cloud Channel, I needed some code to execute an external process from within my Java code, and remembered that I had already developed similar code for an article I wrote way back in December of 2000 (yes, 13 years ago) entitled, “When Runtime.exec() won’t.”

The article proved to be popular, as the Java pitfall it uncovered had tripped up many programmers using the built-in Java class for the first time. Additionally, in that article I introduced and provided the source code for a class called “StreamGobbler” that “gobbled,” or continuously read, an input, output or error stream from the external process.

Besides the catchy name, that simple Java class cleanly solved one problem when using the Java Runtime.exec() method. Furthermore, the class was meant only to demonstrate the solution and left several advanced features for others to implement. When Googling for that code from the article, I was shocked to see 15,800 hits for it and delighted to discover that the code had proliferated, been extended, reused and refined in hundreds of projects. My humble baby “StreamGobbler” had grown up and taken on a life of its own! 

Well-known open source repositories like Apache, GitHub and Google Code had StreamGobbler variants as part of their reusable libraries. Well-known question-and-answer sites like Stack Overflow, Yahoo Groups and the Java Ranch answered multiple questions on it. And finally, well-known institutions and companies such as Stanford University, Software AG and Hewlett-Packard had included the code, or a derivative, in their projects. All of this begs the question – why would this code proliferate?  And furthermore, what are the ramifications of that?

This small case study on the proliferation of 13-year-old source code is one proof point for “Why Software is Eating the World” as posited by Marc Andreessen, co-founder of Netscape. While his article was for laypersons in the business community, I would like to focus on the question from the developer’s perspective and offer three reasons why software will continue to “eat the world:”

  • Good source code has longevity. Good source code on a robust, well-supported platform (or platforms) has a long shelf life – decades or more. For example, the Java Platform was released by Sun Microsystems in 1995 and is still growing strong and evolving today.
  • The power of open-source software. Open source software, where the source code is available to the public for reuse, including modification, has been a global boon for innovation and improving the overall state of technological progress. Organizations like the Apache Software Foundation are heroes in my book. I have been an avid fan, supporter and contributor to open source for my entire career, and all source code from my technical books is available on my website.
  • Source code maturity should be the gold standard. The key mark of good software is that it fulfills its function, over time, robustly and reliably. To achieve that end, good source code is mature source code. My measures for source code maturity are the following:
    • It is  being used in a production environment.
    • It has aged in that environment and therefore has been executed by end-users.
    • It has been tested in terms of coverage and corner cases.
    • It has been tested via automated regression tests.

The most mature code will have fulfilled all of the above and run flawlessly under those constraints for the longest time. How mature is your code?

Fortunately, the next wave of cloud-based applications will leverage and increase these positive trends of source code longevity, openness and maturity.

And speaking of cloud computing, I am nearing the completion of my next book, which is on cloud computing. If you are an IT manager or developer interested in formally reviewing the book, please contact me via email or from this website.

X
This website uses cookies to enhance user experience and to analyze performance and traffic on our website. We also share information about your use of our site with our social media, advertising and analytics partners. Learn More / Do Not Sell My Personal Information
Accept Cookies
X
Cookie Preferences Cookie List

Do Not Sell My Personal Information

When you visit our website, we store cookies on your browser to collect information. The information collected might relate to you, your preferences or your device, and is mostly used to make the site work as you expect it to and to provide a more personalized web experience. However, you can choose not to allow certain types of cookies, which may impact your experience of the site and the services we are able to offer. Click on the different category headings to find out more and change our default settings according to your preference. You cannot opt-out of our First Party Strictly Necessary Cookies as they are deployed in order to ensure the proper functioning of our website (such as prompting the cookie banner and remembering your settings, to log into your account, to redirect you when you log out, etc.). For more information about the First and Third Party Cookies used please follow this link.

Allow All Cookies

Manage Consent Preferences

Strictly Necessary Cookies - Always Active

We do not allow you to opt-out of our certain cookies, as they are necessary to ensure the proper functioning of our website (such as prompting our cookie banner and remembering your privacy choices) and/or to monitor site performance. These cookies are not used in a way that constitutes a “sale” of your data under the CCPA. You can set your browser to block or alert you about these cookies, but some parts of the site will not work as intended if you do so. You can usually find these settings in the Options or Preferences menu of your browser. Visit www.allaboutcookies.org to learn more.

Sale of Personal Data, Targeting & Social Media Cookies

Under the California Consumer Privacy Act, you have the right to opt-out of the sale of your personal information to third parties. These cookies collect information for analytics and to personalize your experience with targeted ads. You may exercise your right to opt out of the sale of personal information by using this toggle switch. If you opt out we will not be able to offer you personalised ads and will not hand over your personal information to any third parties. Additionally, you may contact our legal department for further clarification about your rights as a California consumer by using this Exercise My Rights link

If you have enabled privacy controls on your browser (such as a plugin), we have to take that as a valid request to opt-out. Therefore we would not be able to track your activity through the web. This may affect our ability to personalize ads according to your preferences.

Targeting cookies may be set through our site by our advertising partners. They may be used by those companies to build a profile of your interests and show you relevant adverts on other sites. They do not store directly personal information, but are based on uniquely identifying your browser and internet device. If you do not allow these cookies, you will experience less targeted advertising.

Social media cookies are set by a range of social media services that we have added to the site to enable you to share our content with your friends and networks. They are capable of tracking your browser across other sites and building up a profile of your interests. This may impact the content and messages you see on other websites you visit. If you do not allow these cookies you may not be able to use or see these sharing tools.

If you want to opt out of all of our lead reports and lists, please submit a privacy request at our Do Not Sell page.

Save Settings
Cookie Preferences Cookie List

Cookie List

A cookie is a small piece of data (text file) that a website – when visited by a user – asks your browser to store on your device in order to remember information about you, such as your language preference or login information. Those cookies are set by us and called first-party cookies. We also use third-party cookies – which are cookies from a domain different than the domain of the website you are visiting – for our advertising and marketing efforts. More specifically, we use cookies and other tracking technologies for the following purposes:

Strictly Necessary Cookies

We do not allow you to opt-out of our certain cookies, as they are necessary to ensure the proper functioning of our website (such as prompting our cookie banner and remembering your privacy choices) and/or to monitor site performance. These cookies are not used in a way that constitutes a “sale” of your data under the CCPA. You can set your browser to block or alert you about these cookies, but some parts of the site will not work as intended if you do so. You can usually find these settings in the Options or Preferences menu of your browser. Visit www.allaboutcookies.org to learn more.

Functional Cookies

We do not allow you to opt-out of our certain cookies, as they are necessary to ensure the proper functioning of our website (such as prompting our cookie banner and remembering your privacy choices) and/or to monitor site performance. These cookies are not used in a way that constitutes a “sale” of your data under the CCPA. You can set your browser to block or alert you about these cookies, but some parts of the site will not work as intended if you do so. You can usually find these settings in the Options or Preferences menu of your browser. Visit www.allaboutcookies.org to learn more.

Performance Cookies

We do not allow you to opt-out of our certain cookies, as they are necessary to ensure the proper functioning of our website (such as prompting our cookie banner and remembering your privacy choices) and/or to monitor site performance. These cookies are not used in a way that constitutes a “sale” of your data under the CCPA. You can set your browser to block or alert you about these cookies, but some parts of the site will not work as intended if you do so. You can usually find these settings in the Options or Preferences menu of your browser. Visit www.allaboutcookies.org to learn more.

Sale of Personal Data

We also use cookies to personalize your experience on our websites, including by determining the most relevant content and advertisements to show you, and to monitor site traffic and performance, so that we may improve our websites and your experience. You may opt out of our use of such cookies (and the associated “sale” of your Personal Information) by using this toggle switch. You will still see some advertising, regardless of your selection. Because we do not track you across different devices, browsers and GEMG properties, your selection will take effect only on this browser, this device and this website.

Social Media Cookies

We also use cookies to personalize your experience on our websites, including by determining the most relevant content and advertisements to show you, and to monitor site traffic and performance, so that we may improve our websites and your experience. You may opt out of our use of such cookies (and the associated “sale” of your Personal Information) by using this toggle switch. You will still see some advertising, regardless of your selection. Because we do not track you across different devices, browsers and GEMG properties, your selection will take effect only on this browser, this device and this website.

Targeting Cookies

We also use cookies to personalize your experience on our websites, including by determining the most relevant content and advertisements to show you, and to monitor site traffic and performance, so that we may improve our websites and your experience. You may opt out of our use of such cookies (and the associated “sale” of your Personal Information) by using this toggle switch. You will still see some advertising, regardless of your selection. Because we do not track you across different devices, browsers and GEMG properties, your selection will take effect only on this browser, this device and this website.