- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
Which makes me wonder: excluding bugs covered by already reported bugs, is there an upper limit to the number of bugs?
Admin
Admin
I heard a story from a guy who worked at a sub-contractor for Hitachi years ago. He said that Hitachi had this policy that any code which is developed, tested and found to be fulfilling the requirement, and checked in, then doesn't go anywhere - not even to QA - until the author himself finds a minimum of 3 bugs in his own code. And, according to my acquaintance who told me this story, everybody always found 3 bugs in their own code - AFTER they developed it and it "worked."
In my experience, I find bugs in my own code all the time, whether I can find 3 in every "module", however it's defined, is difficult to say, mostly because I don't have the resources of Hitachi to continuously re-check everything. Having said that, I find that story to be very believable.
Therefore, to answer your question, you can say that any system out there has at least N * 3 bugs, where N is the number of feature changes.
Admin
@Hanzito ref
Like most measures of complexity, I'd say we can only give a rough upper bound.
But my vote is that the maximum number of possible bugs is O(number of characters contained in all source code and similar quasi-executable artifacts)
Admin
old code? yeah, at least 3 weeks
Admin
Yes there is, because the amount of code is finite.
Now of course, we could imagine that a whimsical manager changes his minds every day about what the program behaviour should be, and opens new bug tickets. But even that artificial source of bug is finite, because the manager's lifespan is finite.
Now of course, we could imagine that the company keeps recruiting such whimsical managers. But even that source of managers is finite, because the world's population is finite (and can't grow forever, because the Earth's resources are finite).
Additionally, the resources needed to track the bug tickets are finite (whether it is Jira or "Manual Jira" https://thedailywtf.com/articles/Manual-JIRA- ).
Admin
Sound like a case of playable metric.
The idea sounds nice, but it is most easily handled by including 3 intentional bugs. Just a little off-by-one here and there,BAM, three cheal bugs caught.
Admin
Yes I thought about that too, and most likely in a corporation like that, there was a good amount of what you are describing going on. Having said that, I'm sure with managerial oversight doing outrageously obvious bugs is difficult.
Admin
"If you have an infinite number of monkeys typing code..."
Admin
Who knows why this code was written. A normal process involving code reviews should have flagged this. But maybe the important thing was to get the code into production before the deadline; with the assumption that later on someone will come back and fix it. Of course we know that never happens; so the poor code hangs around forever (and ends up here).
It's broken code, for sure, but maybe it allowed the developer to reach the actual goal of having something running in prod by the promised date.
Admin
"Yes there is, because the amount of code is finite." I remember reading a long time ago (possibly in "The Psychology of Computer Programming", but don't quote me!) that when IBM would release an update to the OS for the 360 they would fix N (where N on the order of a few thousand) bugs - each and every time they did a release...
Admin
"until the author himself finds a minimum of 3 bugs in his own code. " So if I force 3 bugs into the code I'm home free.
Admin
Re-categorize the tickets to "request" or "story". A bug must be something the application does that violates its specification. If you have an application without any specification at all, then you have a bug free application - what it does it what it does and it does it flawlessly.
Admin
"Works as coded"
Admin
Yes, I know it's not the best situation.
However, you really have two choices:
or
Admin
What do you mean, code review? Pay people to look at code when they could be writing code instead? Bah humbug!
(I would hope there's an antfile somewhere – anybody remember ant, the thing that was in between make and maven? – that generates that code.)
Admin
Pro tip: If you burn a citronella candle next to your computer, it helps keep bugs away. Try it!