in Search
     

Browse Site by Tags

Showing related tags and posts accross the entire site.
All Tags » TDD » code (RSS)
  • TDD Step by Step, Part 2: The Database

    Welcome to part two of our series on building a Windows application using test-driven development (TDD). In the previous article we drove the design of our entity classes and data access layer by means of unit tests. The unit tests acted more as specifications for the system rather than tests, since...
    Posted to Weblog by cruizer on 11-23-2008
  • TDD Step by Step, Part 1

    In a hot discussion thread in msforums.ph about the value of unit testing and adopting test-driven development (TDD), a suggestion was made to illustrate how TDD is used in creating a simple application, specifically Keith's October code challenge . In response to that, I've decided to write...
    Posted to Weblog by cruizer on 11-23-2008
  • TDD in PHP, recap demo code (ZIP)

    Practical TDD in PHP demo code. Contains: Basic TDD demo on creating a password complexity checker class Mock objects TDD demo on creating an email reminder task class Code contains the SimpleTest library ( www.lastcraft.com ) inside the "simpletest" folder.
    Posted to MediaGallery by cruizer on 12-01-2007
  • Cyclomatic complexity and its effect on my code

    Have you heard of the term cyclomatic complexity ? I had my first encounter with it in the current project we're doing at work. One of the senior guys in our project set up our build server, with CruiseControl.NET invoking a tool called SourceMonitor and analyzing source code complexity. Basically...
    Posted to Weblog by cruizer on 09-20-2007
  • TDD in PHP demo code part 1

    ZIP file containing the "0.8 is not equal to 0.8" code (example1 directory) and our User demo (demo1). I'll be posting part 2, with mock objects, later. In the meantime you can download SimpleTest from http://www.lastcraft.com
    Posted to MediaGallery by cruizer on 04-28-2007
  • Test-First Demo: Developing a User Login Facility, part 1

    OK, so now it's time to "walk the talk." I'll be demo-ing here how to develop a user login facility test first -- how you can begin a test, then code your class to pass that test. Then we'll add one feature or behavior at a time until we completely fulfill the specifications or requirements. Hopefully...
    Posted to Weblog by cruizer on 04-02-2007
  • Static instances in PHP4

    If you've read my previous post s here, you'll notice that I advocate code testability and TDD. One of the key design concepts in achieving this is "inversion of control" or the dependency injection pattern . While I do mostly .NET stuff these days, I still dabble with PHP projects from time to time...
    Posted to Weblog by cruizer on 01-18-2007
  • Keeping code close to the data -- how I love refactoring

    I've been doing too much OOP that I've "forgotten" already what makes it different from procedural programming. It was funny when my up-and-coming employer asked me that question during my job interview. :) I kept on saying other things but eventually the interviewer told me that the answer he was waiting...
    Posted to Weblog by cruizer on 12-07-2006
  • Updated slides and code for TDD

    Yesterday's MSDN event was tiring but I guess it was worth it. Hopefully these slides and demo code help convince you to adopt the test-driven approach to coding. Too bad there were not enough shirts/jackets for everyone. Hmm, I feel envious that the attendees were given certificates and I wasn't. Anyway...
    Posted to Weblog by cruizer on 10-05-2006
Page 1 of 1 (9 items)