public marks

LINK

Testing Will Challenge Your Conventions

by greut, 1 comment (via)

Private makes less sense than it used to. You can’t test anything that’s private. You need to have ways to sense that your tests are working as intended, and you have to be able to test any method that is interesting. That means less private and more accessors. Get used to living in a more public world. If you need to hide something from users, don’t include it in the interface or abstract base class. “Implements”/”public inheritance” is the new “private”.

or documented is the new public

Comments

"If you need to hide something from users, don’t include it in the interface or abstract base class."

C'est donc ça tout le bordel avec le TDD. Chez nous, les utilisateurs on leur donne une interface utilisateur, ils n'ont pas à connaître le code pour se servir du programme :-)

night.kame said at 12:57 the 09/12/2008


PUBLIC TAGS
on this link

code   tdd   test  

BY

greut
the 08/12/2008 at 19:31