🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Not using debuggers was: Good C Interview questions?

#2009
From: Marc Espie
Date: Fri, 16 Feb 1996 06:10
26 lines
1979 bytes
I'm very impressed with all these people who don't ever use any debuggers,
or mostly never.

Personally, I suffer from a kind of blindness. My program logic is usually
fine, but I do make stupid mistakes, like writing if (!i) instead of if (i)
and such. Checking the logic and being very careful won't help, as sometimes
my brain seems to be hardwired the wrong way. 

About the only way I've got of checking is by single-stepping through the
problematic part, seeing that the code does precisely the REVERSE of what
I'm expecting, and finding the stupid error.

More elaborate bugs I do encounter seldom, as I tend to be very careful
with my program logic, and my brain seems to work fine at a higher level :-).

Other bugs are misfeatures: problems in design which show up as too intricate
code---in which case I scrap the code, rethink the design, and more often
than not come up with a simple and elegant solution (speaking of long term
projects, where you have to extend a program in ways that were completely
unforeseen at first. Most of my major programs started life as ten lines hacks,
so these days, I try to be thorough when I start a new hack :-) )
-- 
[nosave]<http://www.eleves.ens.fr:8080/home/espie/index.html>
microsoft network is EXPLICITLY forbidden to redistribute this message.
`Moon purismu powa, make up.... Tsuki ni kawatte, oshiokiyo !'
	Marc Espie (Marc.Espie@ens.fr)
Technical Details
Message-ID: <4g175e$mqo@solutions.solon.com>
Path: arc1-ca.pugleaf.net!solon.com!not-for-mail
References: <4ec3vg$lst@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: espie@clipper.ens.fr (Marc Espie)
Newsgroups: comp.lang.c.moderated
Subject: Not using debuggers was: Good C Interview questions?
Date: 16 Feb 1996 00:10:54 -0600
Organization: Ecole Normale Superieure, Paris, France
Sender: clc@solutions.solon.com
Approved: clc@solutions.solon.com
Message-ID: <4g175e$mqo@solutions.solon.com>
References: <4ec3vg$lst@solutions.solon.com> <4fjnch$oqq@solutions.solon.com> <4fp1i1$h2s@solutions.solon.com> <4fvkg3$et1@solutions.solon.com>
NNTP-Posting-Host: solutions.solon.com