Re: Test Driven Development

From: Universe (universe.covad.com)
Date: 12/10/03

  • Next message: Universe: "Re: Test Driven Development Sample"
    Date: Wed, 10 Dec 2003 03:16:11 -0500
    
    

    "Ron Jeffries" <ronjeffries@REMOVEacm.org> wrote in message
    news:d74dtvsbrug1octf5un3q7svkbu79ufm9k@4ax.com...

    > On Tue, 9 Dec 2003 13:18:40 -0500, "Universe" <universe@covad.net>
    wrote:
    >
    > >At times they may do DbC as part of TDD, but most of TDD is simple
    > >testing to see if *any* line of code compiles!
    >
    > No, it is not. Writing a test does not help to make sure that the
    program
    > compiles. It helps to make sure that it runs. This is a rather
    important
    > distinction.

    How? In what way. How does the 10 seconds where I read that you
    understand you got the green and then move on to write the code you
    already had in mind the code differ if one is only checking for
    compilation and not that it runs. What would be different?

    > >And it is this kind of prosaic code testing that is presented by the
    > >xp'ers as integral to TDD. Most of the time when they illustrate
    TDD,
    > >they code what is in their mind, test to see if it "gets the green",
    > >attempt to fix if it doesn't "get the green", or of it does, then
    they
    > >code more of what is in their mind, and so on.

    > That's not the best way. If the test doesn't go green on the first
    attempt, it's
    > probably better form to throw the code away and write it again rather
    than debug
    > it, unless one sees the problem immediately. This is a minor but not
    unimportant
    > distinction.

    OK, but my overall point remains. You clarify that point, yet don't
    deal with what I say about you all writing what's in your mind, testing
    it and then writing more of what was in your mind. The testing doesn't
    push or pull in terms of conceptually organizing code. Whatever you
    write is what you had in mind. If A fails, at most you then write B
    that you already had thought about. And simply changing code to another
    structure you had in mind based solely upon interpreter/complie error
    makes the exercize outsized in irrationality. You specify no basis for
    what would cause you to look for a missing semi, or not looking. And
    enlarge this to all other just syntax errors that may occur. How does
    code line design thinking weigh in and trade-off against 1) simple, or
    2) large syntax error.

    I mean this mkes absolutely no sane sense. It may have just been a
    missing brace or semi. How would you judge that you ought to look for a
    syntax error, not look, no it's synatx, but write new code anyway,
    distiguish syntax from logical error, do you try that?, on and on,

    > >I see nothing in this that shows how the testing is taking them some
    > >where. The design in their mind is really what's driving code
    creation,
    > >code design. The test simply verifies that such code compiles.
    >
    > No again. The tests verify that the code runs, not that it compiles.
    >
    > I agree that the (evolving) design in our mind is what's driving code
    creation,
    > which Is why I take issue with other claims of yours that we are "just
    hacking".

    You forget that I define the essence of hacking as piecemeal,
    non-holistic based activity. From reading, it seems most others writing
    in industry books, and periodicals have a similarm sense of hackery.

    Elliott


  • Next message: Universe: "Re: Test Driven Development Sample"

    Relevant Pages

    • Re: Just a word about Mike in FBOW
      ... Deanna wouldn't mind if he excused himself ... But within the creative place where good writing ... > was dinner, candles, wine and guests. ...
      (rec.arts.comics.strips)
    • Re: Beggars Chant
      ... I hope you find your writing soon... ... Be open to the Spirit and its surprises. ... covered in a book I found recently entitled Of Mind and Music by Laird ... pre-tend, as long as the pre-tend is offered to serve the greater good ...
      (rec.music.dylan)
    • Re: Experimental collaboration
      ... I do not mind giving reasons, but see no value in discussing them. ... Creative Writing who has sent anything in here. ... My feeling is that active groups attract activity and if this group ...
      (uk.culture.arts.writing)
    • Re: Tengwar follow natures lines
      ... To my mind, ME is more like an opera than a musical score ... 'creative writing course.' ... One can trace a path from the angular form of a rune ... Also they could communicate mind-to-mind. ...
      (rec.arts.books.tolkien)
    • Re: Test Driven Development
      ... > But there is no law that says that DbC must be practiced exclusively ... At least not as the xp'ers have been demonstrating TDD recently. ... code more of what is in their mind, ... The design in their mind is really what's driving code creation, ...
      (comp.object)