Talk:PowerDNS Management API/Techniques

From Linuxnetworks
< Talk:PowerDNS Management API
Revision as of 22:43, 14 February 2009 by Nose (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

I've made very good experiences with a pattern called "Data Management Objects" (DMO) and "Data Transfer objects" (DTO) where the DTOs carry data around while the DMOs are responsible for storing and fetching the data from the data source. This provides central place where the management of the data source (DB or LDAP) is done.

Furthermore, I would also suggest using a Zend style class nameing like PowerDNS_Manager_Database which is stored in PowerDNS/Manager/Database.php. It took me some time to get used to it (coming from C++) but has some advantages, especially when using an autoloader.

--Nose 21:43, 14 February 2009 (CET)