Close
  • Latest News
  • Artificial Intelligence
  • Video
  • Big Data and Analytics
  • Cloud
  • Networking
  • Cybersecurity
  • Applications
  • IT Management
  • Storage
  • Sponsored
  • Mobile
  • Small Business
  • Development
  • Database
  • Servers
  • Android
  • Apple
  • Innovation
  • Blogs
  • PC Hardware
  • Reviews
  • Search Engines
  • Virtualization
Read Down
Sign in
Close
Welcome!Log into your account
Forgot your password?
Read Down
Password recovery
Recover your password
Close
Search
Logo
Subscribe
Logo
  • Latest News
  • Artificial Intelligence
  • Video
  • Big Data and Analytics
  • Cloud
  • Networking
  • Cybersecurity
  • Applications
  • IT Management
  • Storage
  • Sponsored
  • Mobile
  • Small Business
  • Development
  • Database
  • Servers
  • Android
  • Apple
  • Innovation
  • Blogs
  • PC Hardware
  • Reviews
  • Search Engines
  • Virtualization
More
    Subscribe
    Home Latest News

      Rotten Code Is a Weapon of Mass Destruction

      Written by

      Peter Coffee
      Published December 9, 2002
      Share
      Facebook
      Twitter
      Linkedin

        eWEEK content and product recommendations are editorially independent. We may make money when you click on links to our partners. Learn More.

        When the latest Disney film, “Treasure Planet,” yielded disappointing revenues for its Thanksgiving weekend opening, the company was quick to let the industry know that it had a recovery plan. As reported by the New York Times, “Disney executives … point out that Treasure Planet is the last of the films to be made using more costly, complex and labor-intensive animation processes. Future films will … use newer techniques to cut costs, like simplifying much of the animation and using computers to do more of the work.”

        In short words, when the customers dont like the product, Disneys solution is to find a way to give them something that may be even worse–but is cheaper to produce. Computers are great at doing that, but its no way to do business.

        In general, we dont need managers who follow the path of least resistance to the worst product that can be sold, at the lowest cost that can be achieved. What we need is intelligent application of ITs productivity gains to produce superior results that offer the buyer compelling value. But it seems that the business of building enterprise applications is busily following Disneys path.

        More than half of all software projects are more than 50 percent over budget, according to Pricewaterhouse Coopers, whose figures also suggest that four out of five projects both cost more and take longer than planned. The reason may well be that “the quality of the code out there is shockingly bad,” as grimly observed by CEO Scott Trappe at the software inspection firm of Reasoning Inc. in Mountain View, Calif. “The average is getting worse,” Trappe added when we spoke last week about the companys Illuma source code inspection service.

        Even relatively error-proof languages, such as Java–well, compared with C++, anyway–are failing to arrest the slide, said Trappe. “Were finding that Java code has a similar defect density to C/C++ code: About 70 percent of reported errors in C/C++ are null pointer dereferences, while null object dereferences in Java are comparable,” he told me. New problems arise from Javas more advanced facilities, such as its ease of writing the multithreaded code thats needed for responsive behavior despite slow network interactions: Potential deadlocks between interdependent threads are hard to find, Trappe said, without overwhelming numbers of the false-positive error reports that destroy the credibility of any quality assurance process.

        One bright spot in the industry, said Trappe, is open-source development, with its emphasis on people reading each others code. The potential embarrassment of public ridicule is probably a powerful motivation to get things right–or even better, to write code thats impressively craftsmanlike, rather than merely good enough. “There arent enough data points yet to be statistically significant, but what weve seen so far suggests that open source code may have much lower defect density than commercial software–about 1 defect per 10,000 lines, about three times better than we typically see,” Trappe estimated.

        Apart from the obvious costs of projects that are late and over budget, Trappe warned that many IT managers may not see the largest but least visible component of rotten codes costs. “Their most senior guys spend a third of their time fixing bugs introduced by junior guys who have no idea what theyve done wrong. The answers arent deep, this is not obscure stuff–a lot of the stuff that we find is very basic,” he told me.

        Unless the audience for your applications is as tolerant as a movie theater full of preschool children, your strategy had better be to fix the problem–not to cut the cost of continuing to do things wrong.

        Tell me whats wrong with the code you see.

        Peter Coffee
        Peter Coffee
        Peter Coffee is Director of Platform Research at salesforce.com, where he serves as a liaison with the developer community to define the opportunity and clarify developers' technical requirements on the company's evolving Apex Platform. Peter previously spent 18 years with eWEEK (formerly PC Week), the national news magazine of enterprise technology practice, where he reviewed software development tools and methods and wrote regular columns on emerging technologies and professional community issues.Before he began writing full-time in 1989, Peter spent eleven years in technical and management positions at Exxon and The Aerospace Corporation, including management of the latter company's first desktop computing planning team and applied research in applications of artificial intelligence techniques. He holds an engineering degree from MIT and an MBA from Pepperdine University, he has held teaching appointments in computer science, business analytics and information systems management at Pepperdine, UCLA, and Chapman College.

        Get the Free Newsletter!

        Subscribe to Daily Tech Insider for top news, trends & analysis

        Get the Free Newsletter!

        Subscribe to Daily Tech Insider for top news, trends & analysis

        MOST POPULAR ARTICLES

        Artificial Intelligence

        9 Best AI 3D Generators You Need...

        Sam Rinko - June 25, 2024 0
        AI 3D Generators are powerful tools for many different industries. Discover the best AI 3D Generators, and learn which is best for your specific use case.
        Read more
        Cloud

        RingCentral Expands Its Collaboration Platform

        Zeus Kerravala - November 22, 2023 0
        RingCentral adds AI-enabled contact center and hybrid event products to its suite of collaboration services.
        Read more
        Artificial Intelligence

        8 Best AI Data Analytics Software &...

        Aminu Abdullahi - January 18, 2024 0
        Learn the top AI data analytics software to use. Compare AI data analytics solutions & features to make the best choice for your business.
        Read more
        Latest News

        Zeus Kerravala on Networking: Multicloud, 5G, and...

        James Maguire - December 16, 2022 0
        I spoke with Zeus Kerravala, industry analyst at ZK Research, about the rapid changes in enterprise networking, as tech advances and digital transformation prompt...
        Read more
        Video

        Datadog President Amit Agarwal on Trends in...

        James Maguire - November 11, 2022 0
        I spoke with Amit Agarwal, President of Datadog, about infrastructure observability, from current trends to key challenges to the future of this rapidly growing...
        Read more
        Logo

        eWeek has the latest technology news and analysis, buying guides, and product reviews for IT professionals and technology buyers. The site’s focus is on innovative solutions and covering in-depth technical content. eWeek stays on the cutting edge of technology news and IT trends through interviews and expert analysis. Gain insight from top innovators and thought leaders in the fields of IT, business, enterprise software, startups, and more.

        Facebook
        Linkedin
        RSS
        Twitter
        Youtube

        Advertisers

        Advertise with TechnologyAdvice on eWeek and our other IT-focused platforms.

        Advertise with Us

        Menu

        • About eWeek
        • Subscribe to our Newsletter
        • Latest News

        Our Brands

        • Privacy Policy
        • Terms
        • About
        • Contact
        • Advertise
        • Sitemap
        • California – Do Not Sell My Information

        Property of TechnologyAdvice.
        © 2024 TechnologyAdvice. All Rights Reserved

        Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.