Click here to Skip to main content
15,886,919 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Bugs, the art of finding them and divine intervention Pin
  Forogar  28-Jun-23 3:59
professional  Forogar  28-Jun-23 3:59 
GeneralRe: Bugs, the art of finding them and divine intervention Pin
charlieg28-Jun-23 4:35
charlieg28-Jun-23 4:35 
GeneralRe: Bugs, the art of finding them and divine intervention Pin
Gerry Schmitz28-Jun-23 4:29
mveGerry Schmitz28-Jun-23 4:29 
GeneralRe: Bugs, the art of finding them and divine intervention Pin
englebart30-Jun-23 7:18
professionalenglebart30-Jun-23 7:18 
GeneralRe: Bugs, the art of finding them and divine intervention Pin
jschell28-Jun-23 6:22
jschell28-Jun-23 6:22 
GeneralRe: Bugs, the art of finding them and divine intervention Pin
charlieg30-Jun-23 1:37
charlieg30-Jun-23 1:37 
GeneralRe: Bugs, the art of finding them and divine intervention Pin
Alister Morton29-Jun-23 1:37
Alister Morton29-Jun-23 1:37 
GeneralRe: Bugs, the art of finding them and divine intervention Pin
Rich Shealer29-Jun-23 4:12
Rich Shealer29-Jun-23 4:12 
Around 1983 I wrote a program in Canon BASIC for CPM/86 that managed a weekly magazine's store distribution. It kept a history of the number of magazines sold over the last 4 weeks and the number of returns. It then calculated what the next week's shipments should be. It had a cool onscreen entry form that looked just like their hand-written form.

This dialect of BASIC used line numbering, could call subroutines, and it could chain to other programs, but it did not have the concept of libraries or database tools. I wrote my own indexing routines. They were copied and pasted across many of the chained programs that handled their aspects. There wasn't much in the way of debugging tools. I should also add this was my first major program that was being used for real world stuff.

Program worked great most of the time, but my index would eventually get corrupted, and I would have to reindex. This would happen every month or two.

The problem was this was a dual 8" disk system and doing the reindex took about 8 hours of banging on the drive. Pretty horrible. I don't remember what sort I used but I'm sure it was some variant of a bubble sort. I couldn't find the bug.

We got a 20 MB hard drive in our office, and I started taking the data disk there copying it to the hard disk and reindexing. That only took 2 hours. I couldn't find the bug.

One day I was working with it and had inspiration. I could load those items I'm indexing into an array and do the entire sort in RAM. Yes, I was a rookie in world by myself that it took so long to figure that out. Now indexing took about 20 minutes and didn't abuse the hardware.

But I still couldn't find the bug.

The magazine sold out to another company and now I had about a 50-minute drive one way. And the pressure to fix the bug was higher. I spent several Saturdays onsite staring at code when I found it. There was an incorrect comparison that involved the last item in the index. It didn't get triggered often so it rarely had the opportunity to corrupt. For some reason it was only one program that had it wrong. I suspect that after one of the copy and paste sessions I hit a key accidently and it changed that one comparison.

Problem fixed after about 2 years. I never had to go back. And about six months later they folded that magazine's distribution processes into the minicomputer software they used for their other publications.

I had discovered dBaSe II during that time and wished it was available to me when I created my application originally.

GeneralRe: Bugs, the art of finding them and divine intervention Pin
jschell29-Jun-23 5:51
jschell29-Jun-23 5:51 
GeneralRe: Bugs, the art of finding them and divine intervention Pin
mattyltaylor29-Jun-23 10:16
mattyltaylor29-Jun-23 10:16 
GeneralRe: Bugs, the art of finding them and divine intervention Pin
jsrjsr29-Jun-23 12:02
professionaljsrjsr29-Jun-23 12:02 
GeneralRe: Bugs, the art of finding them and divine intervention Pin
charlieg30-Jun-23 1:39
charlieg30-Jun-23 1:39 
GeneralRe: Bugs, the art of finding them and divine intervention Pin
Andreas Mertens30-Jun-23 13:30
professionalAndreas Mertens30-Jun-23 13:30 
GeneralHas google enabled some sort of AI in their search? Pin
charlieg28-Jun-23 1:08
charlieg28-Jun-23 1:08 
GeneralRe: Has google enabled some sort of AI in their search? Pin
Jeremy Falcon28-Jun-23 5:33
professionalJeremy Falcon28-Jun-23 5:33 
GeneralRe: Has google enabled some sort of AI in their search? Pin
Gerry Schmitz28-Jun-23 5:35
mveGerry Schmitz28-Jun-23 5:35 
GeneralRe: Has google enabled some sort of AI in their search? Pin
David Crow28-Jun-23 6:34
David Crow28-Jun-23 6:34 
GeneralRe: Has google enabled some sort of AI in their search? Pin
charlieg30-Jun-23 1:45
charlieg30-Jun-23 1:45 
GeneralCCC 28-06-2023 Pin
Richard MacCutchan27-Jun-23 23:02
mveRichard MacCutchan27-Jun-23 23:02 
GeneralRe: CCC 28-06-2023 Pin
OriginalGriff27-Jun-23 23:30
mveOriginalGriff27-Jun-23 23:30 
GeneralRe: CCC 28-06-2023 Pin
pkfox28-Jun-23 1:41
professionalpkfox28-Jun-23 1:41 
GeneralOi Richard MacCutchan Pin
pkfox27-Jun-23 22:37
professionalpkfox27-Jun-23 22:37 
GeneralRe: Oi Richard MacCutchan Pin
Richard MacCutchan27-Jun-23 23:00
mveRichard MacCutchan27-Jun-23 23:00 
GeneralRe: Oi Richard MacCutchan Pin
OriginalGriff27-Jun-23 23:31
mveOriginalGriff27-Jun-23 23:31 
GeneralMidJourney (paid) does mich better image synthesis than Dall-E (free via Bing) Pin
BillWoodruff27-Jun-23 21:05
professionalBillWoodruff27-Jun-23 21:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.