The Artima Developer Community
Sponsored Link

Agile Buzz Forum
Bug rates in a Smalltalk project

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
James Robertson

Posts: 29924
Nickname: jarober61
Registered: Jun, 2003

David Buck, Smalltalker at large
Bug rates in a Smalltalk project Posted: Sep 9, 2004 1:53 PM
Reply to this message Reply

This post originated from an RSS feed registered with Agile Buzz by James Robertson.
Original Post: Bug rates in a Smalltalk project
Feed Title: David Buck - Blog
Feed URL: http://www.cincomsmalltalk.com/rssBlog/buck-rss.xml
Feed Description: Smalltalk can do that
Latest Agile Buzz Posts
Latest Agile Buzz Posts by James Robertson
Latest Posts From David Buck - Blog

Advertisement

There has recently been considerable discussion on comp.lang.smalltalk and comp.object on the merits of static versus dynamic type checking. The static type advocates claim that static type checking eliminates an entire category of errors while the dynamic typing advocates claim that those errors rarely occur.

I'm working on a VisualAge/Smalltalk and GemStone/S project that has been in production for several years. In that time, the system has captured all the unhandled exceptions along with tracebacks for us to analyze and find bugs. These logs have been captured for over three years.

I cannot release the results of the analysis of these logs (for reasons of security), but I categorized 95% of them and found only one single report could have been detected by static typing. It was a "mustBeBoolean" exception because a method returned the receiver instead of a boolean. The problem was fixed immediately after the log was recorded and it never recurred.

Interestingly, some of the errors would have been masked by static typing because they involved performing arithmetic on uninitialized variables. In most static typing languages, integer variables are initialized to 0 which isn't always the right default. For us, they initialized to nil and raised an exception when we tried to use them in a calculation instead of quietly giving us the wrong answer.

Read: Bug rates in a Smalltalk project

Topic: How To Create A Custom Widget - Get Ready To Display Previous Topic   Next Topic Topic: That looks... complex

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use