By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,890 Members | 1,039 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,890 IT Pros & Developers. It's quick & easy.

need help to refactor objects

P: n/a
Dear Peter,

Do we know anyone else who writes PHP code? There is too much work to
do, especially if Costin and I are going to join our software
together.

The easiest way for us to join our software together is through high
level wrapper classes that take other classes for arguments. Costin
and I could move toward joining the software one package at a time.

I've currently got a big SQL class and a big Form class. Both need to
be refactored into smaller objects. Doing so would allow more code
reuse and also make things more modular, flexible, and stable. The
uppermost class could be preserved as a command class. We could follow
the Command Design Pattern, and then Costin and I could use just those
commands, which would have differnt meanings in our code, depending
what object we give the command class.

Forms, database connectivity, etc, one slow step at a time we could
join our code.

I think Costin has a security class that could be refactored and used
for both pieces of software. Again, the right way to do it is to turn
the top level class a wrapper for lowever level commands.

I'd also like to make a separate piece of software that gets info from
the data store and returns it as a 2 dimensional array as a SOAP XML
stream. Costin and I could both come to rely on it, and our own
software wouldn't have to worry about it. The nice thing is the data
fetching software would then be truly agnostic about where the data
was, given the right module it would fetch it out of anywhere -
database, flat files, hash tables, multiple XML files.

But I need help. I need some other person who knows a little PHP and
has some time and feels like helping out. Someone who wouldn't mind
refactoring the classes. If we could find such a person, they could
refactor my code and Costins and in the process intergrate Costin's
code and mine.

We've got to find recruits.

www.publicdomainsoftware.org

Costin Bereveanu wrote:
Hey, Lawrence,
Sorry for the delay - got lazy with the Easter and all.
The idea sounds great. Also, the table looks very flexible. Kind of big for me to figure out what all the fields do, but looks promissing.
Keep up the good work.
Right now I'm making a nice file/account manager for Peter. In a few days I'll polish the security class a bit and send it your way.
Take care http://felicitari.mymail.ro

Jul 16 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.