Starting a project with TDD
Posted: Sat Aug 06, 2005 11:33 pm
Hi everyone,
I hope to get help with TDD and unit testing, especially with web development.
I've been lurking around Sitepoint forums and have recently found my way here. I am very admiring of McGruff's knowledge and many insightful posts on Sitepoint. I am glad there is a unit-testing forum run by McGruff here.
I got interested about TDD and unit testing from all those posts on Sitepoint. I bought and read Kent Beck's Test Driven Development: By Example. I also browsed through lastcraft's website. In addition, I tried out JUnit as I'm a little better at Java than PHP (Just simple stuff like the Money examples).
Now I'm having trouble starting using TDD and unit-testing in my own project. I would like to create a MVC type framework to drive my web sites. I do not want to use established frameworks, such as Mojavi, because I don't want too many features. I want basically barebones features that I need and extendability so I can add in things I need later.
So, my dilemma is as follows. Where do I start?
I know of concepts such as MVC, Page Controllers, FilterChains, TemplateView, Database abstraction... and that's what I'm aiming for, but I also heard that I shouldn't be bogged down with these concepts in the beginning?
Anyways, I'm just a little confused and not too sure if I'm going down the right path. I guess that's the trouble with learning by myself, I never know if I'm doing anything correctly.
What's a good starting point to start TDD-ing this type of project? I do not have much actual project experience since most of my programming experience comes from university courses and I have not completed university yet.
Any and all help is appreciated.
Thanks,
stryderjzw
I hope to get help with TDD and unit testing, especially with web development.
I've been lurking around Sitepoint forums and have recently found my way here. I am very admiring of McGruff's knowledge and many insightful posts on Sitepoint. I am glad there is a unit-testing forum run by McGruff here.
I got interested about TDD and unit testing from all those posts on Sitepoint. I bought and read Kent Beck's Test Driven Development: By Example. I also browsed through lastcraft's website. In addition, I tried out JUnit as I'm a little better at Java than PHP (Just simple stuff like the Money examples).
Now I'm having trouble starting using TDD and unit-testing in my own project. I would like to create a MVC type framework to drive my web sites. I do not want to use established frameworks, such as Mojavi, because I don't want too many features. I want basically barebones features that I need and extendability so I can add in things I need later.
So, my dilemma is as follows. Where do I start?
I know of concepts such as MVC, Page Controllers, FilterChains, TemplateView, Database abstraction... and that's what I'm aiming for, but I also heard that I shouldn't be bogged down with these concepts in the beginning?
Anyways, I'm just a little confused and not too sure if I'm going down the right path. I guess that's the trouble with learning by myself, I never know if I'm doing anything correctly.
What's a good starting point to start TDD-ing this type of project? I do not have much actual project experience since most of my programming experience comes from university courses and I have not completed university yet.
Any and all help is appreciated.
Thanks,
stryderjzw