Skip to content
HomeVideosBooks
AllTopicsTrends
BlogsPodcasts
HistoryListsWatch laterLiked videosFollowing

The videos, books, blogs and podcasts Hacker News keeps recommending, all in one place.

VideosBooksBlogsPodcastsAboutPrivacySettings

Data from Hacker News, HackerTube, HackerBooks, HackerBlogs and Open Library. Credits · Not affiliated with Y Combinator.

HomeVideosBooksBlogsPodcasts
Ctrl K
    Cover of Programming Productivity

    Programming Productivity

    Capers Jones · 1981

    Programming
    Open LibraryAmazon
    Stats for nerds
    0recommend
    2mentions
    2people
    2012years
    100% neutral

    What Hacker News says

    1. AYBABTMEJul 2012
      You can't just say "This is bullshit 'cuz they're two students who don't know crap about the real world". Any John Doe can come and affirm whatever he wants on any matter, and as long as he has proper evidence to support his claims, you should not discard what he comse up with based only on the fact that he's a nobody, a student, the President or Donald Knuth. The only thing that matters is the evidence John Doe brings.

      But further than that, truth is they are not the first one to come up with those results. Following is a blatant selection of near verbatim quotes from Code Complete (the author makes a great job covering the subject).

      "Microsoft's applications division has found that it takes three hours to find and fix a defect by using code inspection, a one-step technique, and 12 hours to find and fix a defect by using testing, a two-step technique (Moore 1992)."

      "Collofello and Woodfield reported on a 700,000-line program built by over 400 developers (1989). They found that code reviews were several times as cost-effective as testin - a 1.38 return on investment vs. 0.17."

      "[...]the Software Engineering Laboratory found that code reading detected about 80 percent more faults per hour than testing (Basili and Selby 1987). "

      "A later study at IBM found that only 3.5 staff hours were needed to find each error when using code inspections, whereas 15-25 hours were needed to find each error through testing (Kaplan 1995)."

          Table 20-2. Defect-Detection Rates Removal Step
          				 Lowest Rate Modal Rate Highest Rate
       
          Informal design reviews			25%	35%	40%
          Formal design inspections    		45%	55%	65% 
          Informal code reviews			20%	25%	35% 
          Formal code inspections			45%	60%	70% 
          Modeling or prototyping			35%	65%	80% 
          Personal desk-checking of code		20%	40%	60% 
          Unit test		        		15%	30%	50% 
          New function (component) test		20%	30%	35% 
          Integration test			        25%	35%	40% 
          Regression test				15%	25%	30% 
          System test			        	25%	40%	55% 
          Low-volume beta test (<10 sites)    	25%	35%	40%
          High-volume beta test (>1,000 sites)	60%	75%	85%
           
          Source: Adapted from Programming Productivity (Jones 1986a), 
          "Software Defect-Removal Efficiency" (Jones 1996), and 
          "What We Have Learned About Fighting Defects" (Shull et al. 2002).
      
      Really, I'm not saying that TDD is bad, not at all. What I'm saying is that this sentence :

      "one study of "junior and senior computer science students" (described in an article I have to pay $19 to read) doesn't make somebody an expert on anything"

      ... is really wrong.

      [Edit] Formatting nightmare

      thread
    2. gruseomFeb 2012
      The OP argues that although programs written in dynamic languages are smaller, they have more bugs. But empirical studies find the opposite: bug counts grow superlinearly with program length irrespective of language. In fact, program length is the best predictor of error rate we know. So his argument contradicts the evidence.

      Chapter 27 of Code Complete (2nd ed.) discusses this. So does http://news.ycombinator.com/item?id=3037293 among other HN threads. Also, if anyone has access to Capers Jones' "The Impact of Program Size" from Programming Productivity (1986) and is feeling generous, please cite the relevant findings. I can't find it online.

      thread

    Related

    Cover of Code Complete
    2007–2026

    Code Complete

    Steve McConnell
    393 recommend · 894
    Cover of The Pragmatic Programmer
    2007–2026

    The Pragmatic Programmer

    Andy Hunt
    353 recommend · 700
    Cover of The art of computer programming
    2007–2026

    The art of computer programming

    Donald Knuth
    336 recommend · 1,799
    Cover of Programming Pearls
    2007–2026

    Programming Pearls

    Jon Bentley
    158 recommend · 315
    Cover of The Practice of Programming
    2007–2026

    The Practice of Programming

    Brian W. Kernighan
    90 recommend · 184
    Cover of Programming from the Ground Up
    2009–2026

    Programming from the Ground Up

    Jonathan Bartlett
    36 recommend · 56
    Cover of Writing efficient programs
    2010–2024

    Writing efficient programs

    Jon Louis Bentley
    9 recommend · 24
    Cover of Expert C programming!
    2008–2026

    Expert C programming!

    Peter Van der Linden
    88 recommend · 150