General information
Category:
Object Oriented Programming
Title:
OOD, OOP, Client/Server, SQL, performance
The title for this message covers much ground, but I´m actually trying to work out a design/programming style for VFP which allows for a full object orientation, even though you may work in a Client/Server ambient, with SQL, and wishing to keep VFP's speed.
Has anybody read/seen anything about this?
I've found many articles dealing with the "persistance" problem; how objects can "save" themselves in a RDB such as VFP or SQL Server. But, the kind of programming solutions you use in pure OO languages (such as Smalltalk) don't mesh nicely with SQL or (even less) with a Client/Server situation. For example, working your way through a "Collection", and for each object found, traversing yet another collection, and so on, is what you can usually do in just one SQL statement. And further on, if those objects (and collections) were actually on disk (and accessed only through a Client/Server interface) you would have about a zillion requests to the Server instead of a single SELECT. And I place more trust on my ability to write correct SQL than to work with links, collections, loops, and so on; it´s just a matter of shorter code, and "saying what I want, and no how to get it".
I´m quite convinced that OO is *the* way to go, but I don´t want to lose performance. Academic examples (those which assume that all objects are in memory, and disks simply don´t exist) can afford doing their logic in slow, inefficient ways, since all their data is in memory, anyway. But when you deal with large data sets, and furthermore access them only via Client/Server coding...
So, once more... has anyone seen anything about this kind of programming? Or, even better, done anything of this kind?
Thanks!!
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only