|
Posted by J.O. Aho on 08/09/06 04:15
a wrote:
>> I tried a few code generators when i first started out, they are
>> horrible and didnt work, i would recommend you just visit a site like
>> hotscripts.com or something, download some free scripts, modify them to
>> your needs and as you get more confident in php then you can start
>> adding more to the scripts then start writing your own from scratch.
>>
>
> In fact I'm quite confortable writing code in php, rather my concern is how
> to minimize the maintenance cost of writing a complex web application, and
> automatic code generators for the database access part seemed like a good
> option. This way, if there is a change in the database model, you just
> regenerate the code.
The maintenance cost is related to how you write your code, if you have a
large number of pages and use the same code in all of them will be expensive
to maintain, while if you use include files with those codes that you use
frequently in your pages you will lower the maintenance cost as you have only
one place to change the code in instead of 80 scripts.
You can build queries quite dynamically so that you can get things to keep on
working even if you make some minor changes (depends on the type of change of
course).
//Aho
Navigation:
[Reply to this message]
|