473,394 Members | 1,875 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

need help to refactor objects

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
0 1889

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: John Smith | last post by:
Can someone point me to an example of how to implement and access the kind of object shown below? Most of the examples if found are an object that contains one other object. I need to create an...
2
by: Marijn | last post by:
Say i have an object that represents or holds a resource like an open file, a block of memory on the heap, or an openGL texture object. The constructor acquires the resource, and the destructor...
1
by: John Cho | last post by:
if i do a friend Testclass operator +(Test class &obj2); it is not correct because i need two objects?
1
by: moondaddy | last post by:
I'm running VS 2005 pro vb.net and started to experiment with refactoring. I selected some code, right clicked and selected Refactor / Extract Method. The Refactor popup window appeared. This was...
5
by: info | last post by:
Hi! Please be patient with a newbie... I use DevC++. I've found and compiled succefully various openGL examples. Before build the application, I link the project with static libs, like, in...
2
by: HankD | last post by:
Hi, I am having a problem with instantiating two custom objects so they DO NOT point to the same memory location. What is happening is that changes I am making to my object1 are changing object2. I...
4
by: =?utf-8?B?Qm9yaXMgRHXFoWVr?= | last post by:
Hello, (sorry to begin with Java in a Python list ;-) in Java, when I want to pass input to a function, I pass "InputStream", which is a base class of any input stream. In Python, I found...
5
by: =?Utf-8?B?RG91Z0U=?= | last post by:
I am at my wits end. VB .net is supposed to be an object oriented language. But I have tried hack after hack, and I can not get past either "Reference to a non-shared member requires an object...
5
by: Jim | last post by:
Hi, Just wondering which is better vector<record *r; r.push_back(new record(x,y)); or vector<recordr; r.push_back(record(x,y));
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.