Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #10977

Re: comparing two test files

Date 2011-12-23 10:25 -0800
From Patricia Shanahan <pats@acm.org>
Newsgroups comp.lang.java.programmer
Subject Re: comparing two test files
References <5fdf65a2-052b-4c0b-b6bf-bc4dc8a7dd02@v24g2000prn.googlegroups.com> <debugging-20111223121356@ram.dialup.fu-berlin.de> <1IGdnbzxbYSzD2nTnZ2dnUVZ_rednZ2d@earthlink.com> <qrd9f79atmf1cdg45spsvkls2lbvd9n1o3@4ax.com>
Message-ID <mf2dnTJSEL0OWmnTnZ2dnUVZ_uOdnZ2d@earthlink.com> (permalink)

Show all headers | View raw


On 12/23/2011 9:18 AM, Gene Wirchenko wrote:
> On Fri, 23 Dec 2011 06:37:25 -0800, Patricia Shanahan<pats@acm.org>
> wrote:
>
> [snip]
>
>> I've written a web page on the subject of how to debug,
>> http://www.patriciashanahan.com/debug
>
>       Nice page.

Thanks.

>
>       How did you come up with that example?  It is very good.  The
> problem with cooking up examples like that is that one already knows
> what the problem is so any "detective work" is suspect.

I took a common student problem that needs a little attention to detail,
and wrote a Java implementation as fast as I could type, making minimal
changes to fix compile-time errors. I then went straight to test and
debug, writing up the debug steps as I went along, without doing any
desk checking.

Normally, my programming keystroke rate is a lot slower than my raw
typing rate. Suppressing self-checking and thinking about details in
favor of typing speed made a good collection of mistakes statistically
likely, but without giving me any knowledge of what the mistakes were.

I hoped the result would be a more realistic example and debug process
than if I had consciously inserted errors in an otherwise carefully
written program, and then pretended to find them.

Patricia

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

comparing two test files ruds <rudranee@gmail.com> - 2011-12-23 00:45 -0800
  Re: comparing two test files Jeff Higgins <jeff@invalid.invalid> - 2011-12-23 05:27 -0500
    Re: comparing two test files Jeff Higgins <jeff@invalid.invalid> - 2011-12-23 06:03 -0500
  Re: comparing two test files Patricia Shanahan <pats@acm.org> - 2011-12-23 06:37 -0800
    Re: comparing two test files Gene Wirchenko <genew@ocis.net> - 2011-12-23 09:18 -0800
      Re: comparing two test files Patricia Shanahan <pats@acm.org> - 2011-12-23 10:25 -0800
        Re: comparing two test files Gene Wirchenko <genew@ocis.net> - 2011-12-23 11:13 -0800
          Re: comparing two test files Patricia Shanahan <pats@acm.org> - 2011-12-23 11:45 -0800
  Re: comparing two test files markspace <-@.> - 2011-12-23 07:50 -0800

csiph-web