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

Network programming question

P: n/a
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
Share this Question
Share on Google+
1 Reply


P: n/a
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.