Mailinglist Archive: zypp-devel (115 mails)
| < Previous | Next > |
[zypp-devel] ZYpp and name conventions
- From: Duncan Mac-Vicar Prett <dmacvicar@xxxxxxx>
- Date: Thu, 5 Jul 2007 12:12:01 +0200
- Message-id: <200707051212.02544.dmacvicar@xxxxxxx>
zypp::CheckSum
OnMediaLocaton::checksum()
ResObject::mediaNr()
OnMediaLocaton::medianr()
ResObject::licenseToConfirm()
data::Packagebase::repositoryLocation::filepath
OnMediaLocation::filename
data::Packagebase::repositoryLocation::fileSize
OnMediaLocation::downloadsize
Not counting that I fixed OnMediaLocation and PackageDelta to use set* for
setters instead of the getter naming they where using.
What is the purpose of naming everything different, sometimes capitalizing,
sometimes not, sometimes everything downcase, sometimes underscores. It just
makes everything non-intuitive. Also every developer needs a reference card
to know what fileSize, downloadsize, archvesize etc is.
We _have to define_ some naming convention. Ths language is not easy to
refactor.
Some interesting read...
http://doc.trolltech.com/qq/qq13-apis.html
Duncan
--
To unsubscribe, e-mail: zypp-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-devel+help@xxxxxxxxxxxx
| < Previous | Next > |