www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - [nomenclature] What is a bug?

reply Justin Johansson <no spam.com> writes:
Perhaps this topic could be posted as
"[challenge] Define just exactly what a bug is".

I trust this topic will yield some interesting conversation.

Cheers
Justin Johansson
Oct 12 2010
next sibling parent reply "Simen kjaeraas" <simen.kjaras gmail.com> writes:
Justin Johansson <no spam.com> wrote:

 Perhaps this topic could be posted as
 "[challenge] Define just exactly what a bug is".

 I trust this topic will yield some interesting conversation.

Unwanted behavior? I guess that might be a tad simplistic. -- Simen
Oct 12 2010
next sibling parent Justin Johansson <no spam.com> writes:
On 13/10/2010 12:19 AM, Simen kjaeraas wrote:
 Justin Johansson <no spam.com> wrote:

 Perhaps this topic could be posted as
 "[challenge] Define just exactly what a bug is".

 I trust this topic will yield some interesting conversation.

Unwanted behavior? I guess that might be a tad simplistic.

Thanks, at least a trying response gratefully received.:-) What is "unwanted behavior" then to exact a formal definition of the same? - JJ
Oct 12 2010
prev sibling parent JMRyan <nospam nospam.com> writes:
"Simen kjaeraas" <simen.kjaras gmail.com> wrote in 
news:op.vkgsmjr4vxi10f biotronic-pc.lan:

 Justin Johansson <no spam.com> wrote:
 
 Perhaps this topic could be posted as
 "[challenge] Define just exactly what a bug is".

 I trust this topic will yield some interesting conversation.

Unwanted behavior? I guess that might be a tad simplistic.

I suppose this means that my children are full of bugs. :-)
Oct 12 2010
prev sibling next sibling parent "Simen kjaeraas" <simen.kjaras gmail.com> writes:
Justin Johansson <no spam.com> wrote:

 What is "unwanted behavior" then to exact a formal definition of the  
 same?

Unintended behavior with negative consequences. I'm not sure the last part should be left in, as one could certainly argue that any unintended behavior is a bug, or at the very least a sign you don't know what the code does, so it should be considered buggy until otherwise proven. -- Simen
Oct 12 2010
prev sibling next sibling parent reply Lutger <lutger.blijdestijn gmail.com> writes:
Justin Johansson wrote:

 Perhaps this topic could be posted as
 "[challenge] Define just exactly what a bug is".
 
 I trust this topic will yield some interesting conversation.
 
 Cheers
 Justin Johansson

Behavior that is not according to spec. The problem with that is that the spec may be unclear or not even exist. If in that case, some behavior is unwanted, I would call it a bug in the spec or requirements. Note that bugs may actually be wanted behavior. One such case is uniform function call syntax on arrays, which started life as a compiler bug. Afterwards, the spec was changed and thus the bug was solved.
Oct 12 2010
next sibling parent reply "Nick Sabalausky" <a a.a> writes:
"Lutger" <lutger.blijdestijn gmail.com> wrote in message 
news:i92j0v$cov$1 digitalmars.com...
 Note that bugs may actually be wanted behavior. One such case is uniform
 function call syntax on arrays, which started life as a compiler bug.
 Afterwards, the spec was changed and thus the bug was solved.

Wanted behavior that you didn't know you wanted :) Funny how bugs will occasionally inspire features. Legend has it that combos in fighting games started out as a bug in the original Street Fighter 2 (it would let you perform a new move while you were already in the middle of certain other moves.) The "coin boxes with multiple coins" in the original Super Mario Bros were added because an early bug did that and it turned out to be fun. Happened to me once to: a game-like demo I made for a hobbyist embedded system (Hydra) has a faked 3D effect which I only thought to put in because an early bug in my rendering code resulted in a similar (but less polished) 3D-like effect.
Oct 13 2010
parent Iain Buclaw <ibuclaw ubuntu.com> writes:
== Quote from Nick Sabalausky (a a.a)'s article
 "Lutger" <lutger.blijdestijn gmail.com> wrote in message
 news:i92j0v$cov$1 digitalmars.com...
 Note that bugs may actually be wanted behavior. One such case is uniform
 function call syntax on arrays, which started life as a compiler bug.
 Afterwards, the spec was changed and thus the bug was solved.

occasionally inspire features. Legend has it that combos in fighting games started out as a bug in the original Street Fighter 2 (it would let you perform a new move while you were already in the middle of certain other moves.) The "coin boxes with multiple coins" in the original Super Mario Bros were added because an early bug did that and it turned out to be fun. Happened to me once to: a game-like demo I made for a hobbyist embedded system (Hydra) has a faked 3D effect which I only thought to put in because an early bug in my rendering code resulted in a similar (but less polished) 3D-like effect.

In case somebody hasn't already realised the distinction. http://faux-rebonds.net/wp-content/uploads/2008/10/bug_vs_feature.gif
Oct 13 2010
prev sibling parent Emil Madsen <sovende gmail.com> writes:
--0015174bde5c2894270492e25083
Content-Type: text/plain; charset=ISO-8859-1

This is a bug:
http://www.ent.iastate.edu/images/hemiptera/stinkbug/brown_stink_bug_adult.jpg
Atleast for people who gets outside. - or well.. thats what I'm told :)

On 13 October 2010 15:51, Iain Buclaw <ibuclaw ubuntu.com> wrote:

 == Quote from Nick Sabalausky (a a.a)'s article
 "Lutger" <lutger.blijdestijn gmail.com> wrote in message
 news:i92j0v$cov$1 digitalmars.com...
 Note that bugs may actually be wanted behavior. One such case is


 function call syntax on arrays, which started life as a compiler bug.
 Afterwards, the spec was changed and thus the bug was solved.

occasionally inspire features. Legend has it that combos in fighting games started out as a bug in the original Street Fighter 2 (it would let you perform a new move while you were already in the middle of certain other moves.) The "coin boxes with multiple coins" in the original Super Mario Bros were added because an

 bug did that and it turned out to be fun. Happened to me once to: a
 game-like demo I made for a hobbyist embedded system (Hydra) has a faked

 effect which I only thought to put in because an early bug in my

 code resulted in a similar (but less polished) 3D-like effect.

In case somebody hasn't already realised the distinction. http://faux-rebonds.net/wp-content/uploads/2008/10/bug_vs_feature.gif

-- // Yours sincerely // Emil 'Skeen' Madsen --0015174bde5c2894270492e25083 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable <div>This is a bug: <a href=3D"http://www.ent.iastate.edu/images/hemiptera/= stinkbug/brown_stink_bug_adult.jpg">http://www.ent.iastate.edu/images/hemip= tera/stinkbug/brown_stink_bug_adult.jpg</a><br></div><div>Atleast for peopl= e who gets outside. - or well.. thats what I&#39;m told :)</div> <br><div class=3D"gmail_quote">On 13 October 2010 15:51, Iain Buclaw <span = dir=3D"ltr">&lt;<a href=3D"mailto:ibuclaw ubuntu.com">ibuclaw ubuntu.com</a=
&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 =

=3D=3D Quote from Nick Sabalausky (a a.a)&#39;s article<br> <div><div class=3D"h5">&gt; &quot;Lutger&quot; &lt;<a href=3D"mailto:lutger= .blijdestijn gmail.com">lutger.blijdestijn gmail.com</a>&gt; wrote in messa= ge<br> &gt; news:i92j0v$cov$1 digitalmars.com...<br> &gt; &gt;<br> &gt; &gt; Note that bugs may actually be wanted behavior. One such case is = uniform<br> &gt; &gt; function call syntax on arrays, which started life as a compiler = bug.<br> &gt; &gt; Afterwards, the spec was changed and thus the bug was solved.<br> &gt; &gt;<br> &gt; Wanted behavior that you didn&#39;t know you wanted :) Funny how bugs = will<br> &gt; occasionally inspire features.<br> &gt; Legend has it that combos in fighting games started out as a bug in th= e<br> &gt; original Street Fighter 2 (it would let you perform a new move while y= ou<br> &gt; were already in the middle of certain other moves.) The &quot;coin box= es with<br> &gt; multiple coins&quot; in the original Super Mario Bros were added becau= se an early<br> &gt; bug did that and it turned out to be fun. Happened to me once to: a<br=

ed 3D<br> &gt; effect which I only thought to put in because an early bug in my rende= ring<br> &gt; code resulted in a similar (but less polished) 3D-like effect.<br> <br> </div></div>In case somebody hasn&#39;t already realised the distinction.<b= r> <a href=3D"http://faux-rebonds.net/wp-content/uploads/2008/10/bug_vs_featur= e.gif" target=3D"_blank">http://faux-rebonds.net/wp-content/uploads/2008/10= /bug_vs_feature.gif</a><br> <br> <br> </blockquote></div><br><br clear=3D"all"><br>-- <br>// Yours sincerely<br>/= / Emil &#39;Skeen&#39; Madsen<br> --0015174bde5c2894270492e25083--
Oct 18 2010
prev sibling next sibling parent Jonathan M Davis <jmdavisProg gmx.com> writes:
On Tuesday, October 12, 2010 06:14:24 Justin Johansson wrote:
 Perhaps this topic could be posted as
 "[challenge] Define just exactly what a bug is".
 
 I trust this topic will yield some interesting conversation.
 
 Cheers
 Justin Johansson

Something to squish underfoot. ;) - Jonathan M Davis
Oct 12 2010
prev sibling parent Bruno Medeiros <brunodomedeiros+spam com.gmail> writes:
On 12/10/2010 14:14, Justin Johansson wrote:
 Perhaps this topic could be posted as
 "[challenge] Define just exactly what a bug is".

 I trust this topic will yield some interesting conversation.

 Cheers
 Justin Johansson

A developer(s) designs a program/system/spec/whatever to exhibit certain behavior. A bug is a behavior exhibited by that creation but which was not intended or expected according to the underlying design. (Design in this context includes the whole source of the program, not just architecture, "overall design" or something like that.) "Unwanted" behavior is not a good definition. A behavior can be intended/expected even if is unwanted or undesired. (enhancements, behaviors beyond the control of the program, etc.) -- Bruno Medeiros - Software Engineer
Oct 29 2010