Bookmark Something To Do Before You Unit Test  at del.icio.us Digg Something To Do Before You Unit Test Bloglines Something To Do Before You Unit Test Technorati Something To Do Before You Unit Test Fark this: Something To Do Before You Unit Test Bookmark Something To Do Before You Unit Test  at YahooMyWeb Bookmark Something To Do Before You Unit Test  at Furl.net Bookmark Something To Do Before You Unit Test  at reddit.com Bookmark Something To Do Before You Unit Test  at blinklist.com Bookmark Something To Do Before You Unit Test  at Spurl.net Bookmark Something To Do Before You Unit Test  at NewsVine Bookmark Something To Do Before You Unit Test  at Simpy.com Bookmark Something To Do Before You Unit Test  at blogmarks Bookmark Something To Do Before You Unit Test  with wists Bookmark Something To Do Before You Unit Test  at Ma.gnolia.com wong it! Bookmark using any bookmark manager!

Trackbacks

No Trackbacks

Comments
Display comments as (Linear | Threaded)

I agree with, what I think is, the gist of your argument. That is, if you don't write code that anticipates failure, you're not going to write good unit tests either.

Unit tests help in making you think about the design of your code and its components, promotes coupling items loosely, and requires adding new tests when new bugs are found or features added.
#1 Oscar Merida on 2008-06-09 11:43 (Reply)
My point isn't to bash unit tests, but rather to say there are a bunch of things you should be doing before you get around to writing your unit tests. It's a maturity model for PHP: at some point you're writing test-first, fully documented code with peer review, version control, and a rabbi's blessing. But before you get there, you should be doing basic things like sanity checking all your input and testing for errors. And if you skip those basic things, you're not going to have the right frame of mind to write the kinds of tests that will save you down the line.
#1.1 Sandy (Homepage) on 2008-06-09 11:52 (Reply)
I didn't mean to imply that you were bashing unit tests.
#2 Oscar Merida on 2008-06-09 11:56 (Reply)

Add Comment

Enclosing asterisks marks text as bold (*word*), underscore are made via _word_.
Standard emoticons like :-) and ;-) are converted to images.

To prevent automated Bots from commentspamming, please enter the string you see in the image below in the appropriate input box. Your comment will only be submitted if the strings match. Please ensure that your browser supports and accepts cookies, or your comment cannot be verified correctly.
CAPTCHA

 
 

Forum One Headlines

Join the Tech Team!

Quicksearch

ABOUT THIS BLOG

The Technology Blog is authored by the Technology Team at Forum One Communications, a web strategy/technology firm in the Washington DC area. It covers issues related to web development including approaches, software, tools, architectures, and the latest trends and innovations.

Comments

Floyd about Drupal: Customize Entire Page Template Based On Content Type
Thu, 14.08.2008 16:58
Thanks for the tip. I made a slight mod you might be interested [...]


Puzzled about Drupal: Fix for Disappearing Taxonomy Term in Views Filter
Mon, 28.07.2008 15:06
Solution (to my issue): Views > Tools > Flush Views Cache It explains that Views doesn't always keep up with changes [...]


Puzzled about Drupal: Fix for Disappearing Taxonomy Term in Views Filter
Mon, 28.07.2008 14:52
Thanks for this helpful post. I've seen this effect too. I'm running into a different (but related?) issue - the Views [...]


anon about Calais: Worth the Hype?
Tue, 15.07.2008 20:25
Oscar, Krista from Calais here, writing to let you know that Calais 2.1 is live. In addition to our ongoing [...]


Dan Crowder about Temporary Tables, SubQueries and Removing Duplicate Records - MySQL 5
Tue, 01.07.2008 11:30
Dan, You are absolutely correct and I should have stated this within my post; the described steps within the post [...]


Dan Miahiu about Temporary Tables, SubQueries and Removing Duplicate Records - MySQL 5
Mon, 30.06.2008 09:45
i wouldnt recomand this at all, because if something happens and the conection is lost u will have your data lost if the [...]


Owen about HOWTO: Use Eclipse PDT with Subversion in 13 Easy Steps
Mon, 09.06.2008 13:42
PDT syntax highlighting support does not seem to work when subclipse is installed, any one else had this problem?


Oscar Merida about Something To Do Before You Unit Test
Mon, 09.06.2008 11:56
I didn't mean to imply that you were bashing unit tests.


Sandy about Something To Do Before You Unit Test
Mon, 09.06.2008 11:52
My point isn't to bash unit tests, but rather to say there are a bunch of things you should be doing before you get [...]


Oscar Merida about Something To Do Before You Unit Test
Mon, 09.06.2008 11:43
I agree with, what I think is, the gist of your argument. That is, if you don't write code that anticipates failure, [...]


Technopragmatics about HOWTO: Use Eclipse PDT with Subversion in 13 Easy Steps
Mon, 09.06.2008 08:58
clipse is an open source IDE — or as they put it themselves: “universal toolset for development”. It [...]


William about An easy improvement to your site's usability
Tue, 27.05.2008 12:17
Navigation links should fill their container to ensure ease of selection. A good method for that is to make them [...]


Matt about On Choosing to Program Well
Thu, 22.05.2008 10:35
One of the better comments I've seen in a while: "Although I like PHP, I agree the language is only as good as the [...]


Matt about Calais: Worth the Hype?
Tue, 20.05.2008 14:03
Oscar, Yahoo's Term Extraction service takes an entire article and returns a few of (what it thinks are) the most [...]


Tom Tague about Calais: Worth the Hype?
Tue, 20.05.2008 13:13
Hi, Tom Tague from Calais here. First, thanks for taking note of Calais. And integrating an example right within the [...]


Technorati

Search All F1 Blogs