Write the tests first

11/25/07

Permalink 09:49:52 pm, by truewill Email , 83 words, 85 views   English (US)
Categories: Testing, Books

Write the tests first

I finished the book Framework Design Guidelines today. I reference it frequently, but I finally read it cover-to-cover.

Some of the best advice is in Appendix C. Krzysztof Cwalina wrote: “APIs that were designed by writing code samples before actually designing the API are generally successful.”

Even if you don’t write tests before writing code, consider writing an example of how to use the public interface. This can help you see it from the consumer’s point of view. Unwieldy designs quickly become apparent.

Comments, Pingbacks:

No Comments/Pingbacks for this post yet...

Leave a comment:

Your email address will not be displayed on this site.
Your URL will be displayed.

Allowed XHTML tags: <p, ul, ol, li, dl, dt, dd, address, blockquote, ins, del, span, bdo, br, em, strong, dfn, code, samp, kdb, var, cite, abbr, acronym, q, sub, sup, tt, i, b, big, small>
(Line breaks become <br />)
(Set cookies for name, email and url)
(Allow users to contact you through a message form (your email will NOT be displayed.))
The name truewill is composed of two other words. What is the SECOND word?

Development Central

Development Central is the blog of Bill Sorensen, a professional software developer. Much of this will relate to C#, .NET, and OOP in general.

Disclaimer
These postings are provided "AS IS" with no warranties and confer no rights.

Search

Categories

Linkblog

b2evolution

contributors

XML Feeds

What is RSS?

Who's Online?

  • Guest Users: 3

powered by b2evolution free blog software