File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Testing and the fly likes anything vs pragmatic Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Testing
Bookmark "anything vs pragmatic" Watch "anything vs pragmatic" New topic

anything vs pragmatic

ronald ali mangaliag

Joined: Feb 05, 2004
Posts: 18
the term "pragmatic unit testing" is new to me... what other theories/approaches/frameworks/etc is similar/against/complementary/etc to pragmatic programming???
Andy Hunt
Ranch Hand

Joined: May 01, 2001
Posts: 55
Pragmatic Unit Testing is our way of approaching unit testing, that is, it is in keeping with the ideals we put forth in The Pragmatic Programmer.
We don't explictly say "here's where you use the DRY principle and here's where you apply "The Cat ate my source code" or that sort of thing, but all of our founding principles are in play.
With testing especially, there seems to be a lot of dogma out there -- witness the near-religious ferver with which people argue the relative merits of one assert per method or multiple asserts per method.
We try to avoid any dogmatic approach. Bennie Goodman, the famous bandleader from the 1930's, summed up critical analysis of jazz music this way: "if it sounds good, it IS good."
Same thing applies here.

/\ndy Hunt<br /> <a href="" target="_blank" rel="nofollow"></a>
I agree. Here's the link:
subject: anything vs pragmatic
jQuery in Action, 3rd edition