Why Don’t You Practice Test First Development?

...compile and registrate Csharp dllI would have said “Test Driven Development” but I want to make it clear that what I’m talking about is writing test first, or at least simultaneous to writing the code.  Not sometime after, even if that after is immediately after.… Read the rest

Still think Ternary operators are evil?

OK, I’ve seen a lot of the VB guys complaining that using the ternary operator (which VB.NET just got as of 3.5) makes the code unclear.  To which I’ve said said, and continue to say, “Yes of course, if used incorrectly.”

Read the rest

Testing Web Applications with Selenium, NUnit and .NET

SeleniumI’m presenting “Testing Web Applications with Selenium, NUnit and .NET” at the .NET User’s Group in CT on Feb 11.

Topics include:

  • Where did Selenium come from?
  • How to get started fast.
  • Reading Page Source
  • Clicking DOM elements
  • Using Selenium for AJAX based applications
  • Testing on multiple browsers
  • Separating test from the Page
  • Keeping your test DRY
  • Anything Javascript can do, Selenium can do too.
Read the rest

ASP.NET Validation Controls. Friend or Foe?

This comes up on the message boards quite frequently.  The question normally starts out as, “How do I _________ with the _____ validation control?”  Or, if they are really looking for a solution rather than an implementation, they’ll ask how to do it with the validation controls instead of one specific control.… Read the rest

Converting a DataList to a ListView

Yesterday, I spent the bulk of the day converting a DataList to a ListView.  I thought I’d spend a little time relating the process for those of you who might be interested in doing the same.

Read the rest