470,874 Members | 1,486 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,874 developers. It's quick & easy.

Network programming question

Hi,

I am writing a client / server application for one of my University
projects and I would like some guidance reguarding the transfer of
data from the client to the server.

I have two methods that I can use and these are the use of Strings or
Object arrays, of custom objects. Now I can use the client to turn
all the objects into strings that insert data into the MySQL databases
that the application is using. Or pass object arrays to the server
that then turns these objects into Strings to place the information
into the database.

Which approach would be the most 'progressional' way of transferring
the data and building the strings.
1. Client side generating the SQL statements then pass to the server?
2. Client passes Object arrays to the server, which generates the SQL
statements?

Thanks in advance.

Grant Collins
Jul 17 '05 #1
1 1403
Grant Collins <gc*********@yahoo.com> wrote in message news:<o5********************************@4ax.com>. ..
Hi,

I am writing a client / server application for one of my University
projects and I would like some guidance reguarding the transfer of
data from the client to the server.

I have two methods that I can use and these are the use of Strings or
Object arrays, of custom objects. Now I can use the client to turn
all the objects into strings that insert data into the MySQL databases
that the application is using. Or pass object arrays to the server
that then turns these objects into Strings to place the information
into the database.

Which approach would be the most 'progressional' way of transferring
the data and building the strings.
1. Client side generating the SQL statements then pass to the server?
2. Client passes Object arrays to the server, which generates the SQL
statements?

Thanks in advance.

Grant Collins

Rule of thumb whenever designing an interface: The caller should know
as little as possible about the callee. This keeps the data abstract
from implementation.

If the client generated SQL statements for the server, what would
happen if you wanted to change the table structure? ...You would have
to rewrite the client--and that's just a waste of time.

---
Jared Dykstra
http://www.bork.org/~jared
Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by John Walton | last post: by
6 posts views Thread by Eric | last post: by
9 posts views Thread by Mex | last post: by
7 posts views Thread by Antoninus Twink | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.