PDA

View Full Version : Not All Bugs Are Random


sl4shd0t
12-30-2013, 03:28 AM
CowboyRobot writes "Andrew Koenig at Dr. Dobb's argues that by looking at a program's structure — as opposed to only looking at output — we can sometimes predict circumstances in which it is particularly likely to fail. 'For example, any time a program decides to use one or two (or more) algorithms depending on an aspect of its input such as size, we should verify that it works properly as close as possible to the decision boundary on both sides. I've seen quite a few programs that impose arbitrary length limits on, say, the size of an input line or the length of a name. I've also seen far too many such programs that fail when they are presented with input that fits the limit exactly, or is one greater (or less) than the limit. If you know by inspecting the code what those limits are, it is much easier to test for cases near the limits.'" http://a.fsdn.com/sd/twitter_icon_large.png (http://twitter.com/home?status=Not+All+Bugs+Are+Random%3A+http%3A%2F% 2Fbit.ly%2F19UQ0hO) http://a.fsdn.com/sd/facebook_icon_large.png (http://www.facebook.com/sharer.php?u=http%3A%2F%2Fdevelopers.slashdot.org% 2Fstory%2F13%2F12%2F29%2F2213243%2Fnot-all-bugs-are-random%3Futm_source%3Dslashdot%26utm_medium%3Dface book) http://www.gstatic.com/images/icons/gplus-16.png (http://plus.google.com/share?url=http://developers.slashdot.org/story/13/12/29/2213243/not-all-bugs-are-random?utm_source=slashdot&utm_medium=googleplus)

Read more of this story (http://developers.slashdot.org/story/13/12/29/2213243/not-all-bugs-are-random?utm_source=rss1.0moreanon&utm_medium=feed) at Slashdot.
http://slashdot.feedsportal.com/c/35028/f/647376/s/355068ee/sc/4/mf.gif


http://da.feedsportal.com/r/184842444098/u/49/f/647376/c/35028/s/355068ee/sc/4/rc/1/rc.img (http://da.feedsportal.com/r/184842444098/u/49/f/647376/c/35028/s/355068ee/sc/4/rc/1/rc.htm)
http://da.feedsportal.com/r/184842444098/u/49/f/647376/c/35028/s/355068ee/sc/4/rc/2/rc.img (http://da.feedsportal.com/r/184842444098/u/49/f/647376/c/35028/s/355068ee/sc/4/rc/2/rc.htm)
http://da.feedsportal.com/r/184842444098/u/49/f/647376/c/35028/s/355068ee/sc/4/rc/3/rc.img (http://da.feedsportal.com/r/184842444098/u/49/f/647376/c/35028/s/355068ee/sc/4/rc/3/rc.htm)

http://da.feedsportal.com/r/184842444098/u/49/f/647376/c/35028/s/355068ee/a2.img (http://da.feedsportal.com/r/184842444098/u/49/f/647376/c/35028/s/355068ee/a2.htm)http://pi.feedsportal.com/r/184842444098/u/49/f/647376/c/35028/s/355068ee/a2t.imghttp://feeds.feedburner.com/~r/Slashdot/slashdotDevelopers/~4/BmN9uE0wwgU

More... (http://rss.slashdot.org/~r/Slashdot/slashdotDevelopers/~3/BmN9uE0wwgU/story01.htm)