Go Back  Xtreme Visual Basic Talk > General Discussion > Tech Discussions > Why do bugs happen?


Reply
 
Thread Tools Display Modes
  #1  
Old 08-08-2002, 09:29 AM
Merrion's Avatar
Merrion Merrion is offline
Ultimate Contributor

* Guru *
 
Join Date: Sep 2001
Location: Dublin, Ireland
Posts: 1,828
Default Why do bugs happen?


Has anybody read anything going into the underlying causes of bugs? Got an article to do on continuous improvement in software support and I seriously need some references.
Reply With Quote
  #2  
Old 08-08-2002, 10:41 AM
lebb's Avatar
lebb lebb is offline
Disillusioned Code Poet

Retired Moderator
* Guru *
 
Join Date: Apr 2002
Location: Tennessee, USA
Posts: 12,808
Default

I'm not sure if it's exactly what you're looking for, but you might take a look at Loquin's tutorials on programming standards & practices in Tutor's Corner. I believe he makes some relevant points.
__________________
Laura

Ita erat quando hic adveni.
Reply With Quote
  #3  
Old 08-08-2002, 10:51 AM
Squirm's Avatar
Squirm Squirm is offline
Political Coder

Retired Moderator
* Guru *
 
Join Date: Mar 2001
Location: London, England
Posts: 8,037
Default

http://www.tuxedo.org/~esr/jargon/ht...y/bit-rot.html

Probably not the answer you were looking for though.
__________________
Search the forums | Use [vb][/vb] tags | Still IRCing
Reply With Quote
  #4  
Old 08-08-2002, 01:45 PM
Derek Stone
Guest
 
Posts: n/a
Default

I believe they originated after the collapse of the Soviet Union. Historical reports conflict however.
Reply With Quote
  #5  
Old 08-08-2002, 02:49 PM
ChiefRedBull's Avatar
ChiefRedBull ChiefRedBull is offline
ISearchGoogle

Retired Moderator
* Expert *
 
Join Date: May 2001
Location: england
Posts: 6,321
Default

I always thought bugs appeared through bad coding...
__________________
Chuck Norris ordered a Big Mac at Burger King, and got one.
Reply With Quote
  #6  
Old 08-08-2002, 03:18 PM
reboot's Avatar
reboot reboot is offline
Keeper of foo

Retired Moderator
* Guru *
 
Join Date: Nov 2001
Location: Graceland
Posts: 15,612
Default

Not always. For instance, sometimes the code is fine, but the logic is flawed...
Reply With Quote
  #7  
Old 08-08-2002, 04:11 PM
ChiefRedBull's Avatar
ChiefRedBull ChiefRedBull is offline
ISearchGoogle

Retired Moderator
* Expert *
 
Join Date: May 2001
Location: england
Posts: 6,321
Default

If the logic is flawed, then the code has bugs. If code has bugs, then its bad...
__________________
Chuck Norris ordered a Big Mac at Burger King, and got one.
Reply With Quote
  #8  
Old 08-08-2002, 05:16 PM
lebb's Avatar
lebb lebb is offline
Disillusioned Code Poet

Retired Moderator
* Guru *
 
Join Date: Apr 2002
Location: Tennessee, USA
Posts: 12,808
Default

I believe Reboot is drawing the distinction between poor design and poor implementation.
__________________
Laura

Ita erat quando hic adveni.
Reply With Quote
  #9  
Old 08-08-2002, 05:52 PM
Robby's Avatar
Robby Robby is offline
Code Factory

Retired Moderator
* Expert *
 
Join Date: Jan 2001
Location: Montreal, Ca.
Posts: 5,565
Default

I see it the same as Chief, Bad code or bad logic, if there is anything wrong with the code, it's a bug.
__________________
Visit...Bassic Software
Reply With Quote
  #10  
Old 08-09-2002, 02:33 AM
Kitaiko Kitaiko is offline
Banned
 
Join Date: Jan 2002
Location: Australia, Sydney
Posts: 356
Default

Didnt the word originate from the mark1 or some old computer breaking down due to a large moth?
Reply With Quote
  #11  
Old 08-09-2002, 02:49 AM
Merrion's Avatar
Merrion Merrion is offline
Ultimate Contributor

* Guru *
 
Join Date: Sep 2001
Location: Dublin, Ireland
Posts: 1,828
Default

The word was coinded by Grace Hopper (I kid you not) when a moth got stuck in an early computer...yes.

What I'm kind of thinking of is - you know when a plane crashes they get out the balck boxes and investigate why that plane crashed and when this is done they then see what can be done to other planes to stop them crashing from the same cause. Anyway - when a bug happens in software we need to get to the root cause of that bug and then put in place a process to track down any parts of our programs where such a bug could happen again due to the same cause.
I'm looking for some non-copyright code to show you what I mean.....hmm, may have to deliberately write some bugs to illustrate the points
Reply With Quote
  #12  
Old 08-09-2002, 08:44 AM
reboot's Avatar
reboot reboot is offline
Keeper of foo

Retired Moderator
* Guru *
 
Join Date: Nov 2001
Location: Graceland
Posts: 15,612
Default

Quote:
Originally posted by Robby
I see it the same as Chief, Bad code or bad logic, if there is anything wrong with the code, it's a bug.
I agree, however, my statement was in reply to Chief's "I always thought bugs appeared through bad coding"...

I have seen flawless code that didn't do what it was supposed to. And often not the fault of the programmer. Is it a bug? Yes. Was it poor coding? Not always....
Reply With Quote
  #13  
Old 08-09-2002, 09:01 AM
Garrett Sever's Avatar
Garrett Sever Garrett Sever is offline
Strange Brewer

Retired Moderator
* Guru *
 
Join Date: Jun 2001
Location: AddressOf Insomnia
Posts: 2,815
Default

I generally get bugs when I don't do the dishes right away, or leave the front door open. Sometimes they manage to find their way thru the ventilation system.

4" cucarachas are scary, let me tell you.

Seriously though, most of my bugs are due to misfiring brain synapses or inadequate logic. And the dishes thing
__________________
"The lights below
You know they'll bleed forever
Get back as the cores blow
Let me fall..." - Dismantled, "Cornered"
Reply With Quote
  #14  
Old 08-10-2002, 12:10 AM
Robby's Avatar
Robby Robby is offline
Code Factory

Retired Moderator
* Expert *
 
Join Date: Jan 2001
Location: Montreal, Ca.
Posts: 5,565
Default

Reboot, I see what you mean.

Hand, I've been to Mexico, I know what you mean too. :EEK:
__________________
Visit...Bassic Software
Reply With Quote
  #15  
Old 08-10-2002, 05:00 PM
Computer_Guy's Avatar
Computer_Guy Computer_Guy is offline
Contributor
 
Join Date: Jul 2001
Location: Pennsylvania
Posts: 481
Default

Could a bug possibly be caused by another program running, and that they try to allocate the same section of memory, perhaps some programs running can be imcompatible, and hence it creates bugs.

Yeah, I remember when I heard the story. Back in the day when computers were the size of a room, a low level of the computer was operated by switches, and some kind of insect got stuck in it, making the switch unable to operate, a funny story, IMO, I think it happened in my home city of Philadelphia (Where I'm at now, and why I'm not on mIRC). Oh well, I just thought I might put the above thought in to spark some thought from the fellow programmers on the site. Bye.
Ed
__________________
Not sure what the new signature is going to be.
Reply With Quote
  #16  
Old 08-10-2002, 05:53 PM
Squirm's Avatar
Squirm Squirm is offline
Political Coder

Retired Moderator
* Guru *
 
Join Date: Mar 2001
Location: London, England
Posts: 8,037
Default

An insect inside your PC these days could block the fan and completely crash the machine.

__________________
Search the forums | Use [vb][/vb] tags | Still IRCing
Reply With Quote
  #17  
Old 08-10-2002, 06:00 PM
Derek Stone
Guest
 
Posts: n/a
Default

If the insect was the size of a koala...
Reply With Quote
  #18  
Old 08-10-2002, 06:12 PM
Ales Zigon's Avatar
Ales Zigon Ales Zigon is offline
Dead dog's ghost

Forum Leader
* Expert *
 
Join Date: Feb 2001
Location: Celje, Slovenia, Europe
Posts: 2,601
Default

Hugh! That's gotta be a scarry one...
__________________
Yes, MSDN comes with VB! Yes, you must have at least 25 post to have an avatar! No, you cant write your OS in VB! and NO, YOU CAN NOT DECOMPILE IT!

I'm sure there are things that are more important than me - I just can't thing of any...
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->