Re: Turning from flat files to MySQL
Thanks for the advice, this is the area that I'm really learning at the moment, and your thoughts are spot on. I've got a bit of a learning curve ahead of me!
On 12/16/05, OfficeOfTheLaw <james.r.carr@gmail.com> wrote:
Also, just remember one of the biggest points of OOP is encapsulation,
which means you should hide the underlying implementation. Although
GeoDataMapper is a class with static methods that use adodb to look up
data from a MySQL database and creates marker objects from it, it could
easily do other things... use a soap service, a flat text file, etc.
all that the application cares about (and this example shows) is that
it is finding the closest 5 markers to a given point... it doesn't care
HOW it does it. ;)
0 Comments:
Yorum Gönder
<< Home