Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Does anybody write tests first?

by Tabari (Monk)
on Feb 22, 2008 at 10:11 UTC ( [id://669502]=note: print w/replies, xml ) Need Help??


in reply to Does anybody write tests first?

Hello

Although testing is of course very important to ultimately have good quality code, it cannot be used as a substitute for hard thinking. If the system you are going to make is quite complex, there is nothing which beats a phase of meditation to come up with a good architecture.
My advice : take an empty sheet of paper, write nothing at all, and certainly no code, until you have a mental picture of the solution. Only then, try to write down this mental picture, iterate the process so that it becomes clearer.
I have often been suprised how productive a phase of apparently producing nothing at all can be.

Tabari

Replies are listed 'Best First'.
Re^2: Does anybody write tests first?
by andreas1234567 (Vicar) on Feb 22, 2008 at 10:35 UTC
    it [testing] cannot be used as a substitute for hard thinking.
    Of course not. On the contrary, testing and thinking go hand in hand. Personally, I think writing tests forces me to think more thoroughly than I otherwise would have.
    --
    Andreas

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://669502]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2024-03-28 12:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found