joebordes
Joined: 18 Aug 2006
Posts: 1100
Location: Alicante/Valencia, Spain
|
| Posted: Thu Aug 31, 2006 10:04 am Post subject: uitype definitions: code cleanup |
|
|
Hi,
I've seen that the code that uses the field vtiger_field.uitype is full of "magic numbers" (see Code Complete on Amazon). I think that all these numbers should be converted to define's, with this:
- we would make the code easier to read and maintain
- we would have documentation in the code of all the utiype defined
I am willing to do this work.
Regards, Joe.
TSolucio |
|
Kiddo
Joined: 27 Jul 2006
Posts: 22
Location: Sydney
|
| Posted: Sun Sep 03, 2006 12:52 pm Post subject: Re: uitype definitions: code cleanup |
|
|
This is absolutely true. I found the code very hard to follow, which is bad news for maintainability. It needs proper and extensive use of defines (without abbreviations): here are some nice examples vtiger team:
Image/Graph/Constants.php
log4php/helpers/LoggerTransform.php
log4php/LoggerPropertyConfigurator.php
regards,
Neil |
|