In that sense, it very much is a global, but it is still an object as well; no different than using a singleton.Originally Posted by kyberfabrikken
| SitePoint Sponsor |
In that sense, it very much is a global, but it is still an object as well; no different than using a singleton.Originally Posted by kyberfabrikken
More than just glue; consider it an extension of PDO with added functionality and extra DB support.Originally Posted by The New Guy



Zend_Db is a database abstraction object which uses pdo as a means to connect to the database. Zend_Db, for example, allows one to determine table structure regardless of the underlying rdb. Something that pdo does not do.Originally Posted by The New Guy
http://framework.zend.com/manual/en/zend.db.html




It seems to me that Fowler doesn't sufficiently distinguish the complexity of the pattern itself from the complexity of the task it performs. The Data Mapper pattern does not add much complexity in and of itself. A simple Data Mapper that handles only one database table is only marginally more complex than the other patterns. The real complexity comes from performing complex mappings involving multiple database tables, inheritance, etc.Originally Posted by sweatje
Dagfinn Reiersøl
PHP in Action / Blog / Twitter
"Making the impossible possible, the possible easy,
and the easy elegant" -- Moshe Feldenkrais




You're right, there is a good reason, and it's called closures. Granted, they could have implement closures in another way, but they decided this is simpole enough. And it's just yet another reminder that each language should be considered on its own merits; focusing on similarities in syntax and other things can often be dangerous.Originally Posted by 33degrees
This is a great read to learn a bit about Javascript's peculiarities.
Bookmarks