473,545 Members | 1,924 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1897

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

Similar topics

5
5756
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 object that contains a hash of sub-objects each sub-object is made up of a number of different objects and an array of an object type. Object1...
2
1824
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 releases it. I want to implement efficient copying and assignment for this object - the copy constructor passes on the 'handle' (file pointer, memory...
1
1232
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
1085
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 my first time to see it and at first glance I wasn't able to do anything with it, including make it go away. So I clicked on the red 'X' in the top...
5
5088
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 example, libglut32.a. The executables running fine, but if I try them on a system without glut32.dll, they don't start.
2
1434
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 beleive this is because I set both to be equal to the same session variable. So when I change the value in test1.name it updates test2.name as well...
4
3744
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 that "file" objects exist. While specifying argument types in Python is not possible as in Java, it is possible to check whether an object is an...
5
2165
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 reference.", or "Name <objectis not declared." or a stack overflow exception. This is simple object oriented association. I need for objects...
5
1854
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
7478
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7668
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7923
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7437
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7773
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5343
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3466
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
1901
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
722
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.