Forum Moderators: coopster
In my never-ending search to accomplish my projects more efficiently, I'm trying the "modular" approach - not object oriented, but just "plug-in" procedural modules that would execute a specific and project-specific chore.
For example, I've been building a back-end hotel reservation system (for ever!) which needs to allow the display and editing of - how many rooms are open and reserved (one module), a check-in/check-out date picker (another module), an editable credit card info display (yet another module) - etc. The "editing" aspects of each of these modules all need field validation routines as well.
I'm happy with what I'm doing so far as I've got each task split out into a specific piece (module), but the way I've been testing these modules up to this point is when they're all "included" in a called page which is getting quite tedious.
What I'd like to do during the development phase of any given module, is to "plug" it into a kind-of test-harness, if you will. This harness would provide the variables I need for that particular module and then give me an output display of the result/submit so I can easily check what I'm getting from my code and tweak/correct accordingly.
I'm happy to write my own test harnesses for each module (as I don't want it to get too complicated and time-consuming), but can anyone advise on the "best" - and simplest - way this can be done?
Neophyte
PS: sorry this was such a windy post ... I just wanted to make sure that everyone understood what I'm trying to accomplish.