"bhaaluu" <[EMAIL PROTECTED]> wrote > PyUnit: > It really doesn't seem to be an "absolute beginner" technique.
Unit tests and TDD is not a design technique per se. It is definitely not a technique for designing OOP programs its a programming technique that makes code more reliable (whether OOP or not). Where it does help in design is by focussing attention on how a class (or function) should behave from the consumers perspective. This is always a good thing. But TDD in itself will not help you identify classes or their interactions. It will help you build classes that are user friendly and work as expected. > The noun/verb/adjective technique seems to be geared > more towards beginners. I like the idea of that technique. It is completely intended for beginners. It is, in practice, a little too naive for production type use but it is a good starting point when you don't know where to go and don;t have lots of experience in the problem domain. What nouns/verbs does is identify candidate classes and operations. It says nothing about how those operations are to be coded or used. Once you know what classes you want to write TDD can help you build them better, but you have to identify them first! > One thing I'm encouraged by: in Alan's tutorial, he > says that I don't have to "see the light" to use POOP. Absolutely, you have been using string objects and file objects already. You can use classes to bundle data and methods together and use them in an object based approach without fully understanding OOP. But OOP does open up new avenues and possibilities and, particularly in larger programs, offers significant savings in effort and reuse. -- Alan Gauld Author of the Learn to Program web site http://www.freenetpages.co.uk/hp/alan.gauld _______________________________________________ Tutor maillist - [email protected] http://mail.python.org/mailman/listinfo/tutor
