🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.c.moderated
Article #2058

Re: Good C Interview questions?

#2058
From: Pete Humphrey
Date: Sat, 17 Feb 1996 18:08
26 lines
1824 bytes
A couple of people have pointed out that debuggers can be
very useful when debugging existing code that you have inherited.
One of the main uses I have for debuggers is tracking down
documentation problems or bugs in 3rd party libraries.  We use
many such libraries for imaging, ocr, text retrieval, etc.  When
things go wrong, you frequently find that what the documentation
says is not what is really happining, e.g. a function that is
supposed to return 0 or -1 is actually returning positive values.
Or worse, is not returning at all!  You can imbed printfs or
MessageBoxes in your code to try to figure out what is going on,
or use a debugger.  I generally use a debugger.

I've also had bugs caused by bad code generation by my compiler.
I found the bug by single stepping in a debugger.

If I were interviewing someone who said they didn't have any
experience using a debugger, I would suspect that they didn't have
any experience on large, real-world development projects.

Maybe there are good painters who have never dripped on the carpet, 
but I would rather have a good painter who knows how to clean up a 
mistake than one who doesn't.

--
Pete Humphrey
pete@swcp.com
Technical Details
Message-ID: <4g55il$b2r@solutions.solon.com>
Path: arc1-ca.pugleaf.net!solon.com!not-for-mail
References: <4ec3vg$lst@solutions.solon.com> <4emaqj$3ng@solutions.solon.com> <4ep1s1$5se@solutions.solon.com> <4fjnch$oqq@solutions.solon.com> <4fp1i1$h2s@solutions.solon.com> <4fvkg3$et1@solutions.solon.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!solon.com!not-for-mail
From: Pete Humphrey <pete@swcp.com>
Newsgroups: comp.lang.c.moderated
Subject: Re: Good C Interview questions?
Date: 17 Feb 1996 12:08:21 -0600
Organization: Southwest Cyberport
Sender: clc@solutions.solon.com
Approved: clc@solutions.solon.com
Message-ID: <4g55il$b2r@solutions.solon.com>
References: <4ec3vg$lst@solutions.solon.com> <4emaqj$3ng@solutions.solon.com> <4ep1s1$5se@solutions.solon.com> <4fjnch$oqq@solutions.solon.com> <4fp1i1$h2s@solutions.solon.com> <4fvkg3$et1@solutions.solon.com>
NNTP-Posting-Host: solutions.solon.com
X-Mailer: Mozilla 2.0b6a (Win95; I)