vtiger Forum Index vtiger
The Honest Open Source CRM
 

uitype definitions: code cleanup
Click here to go to the original topic

 
       vtiger Forum Index -> Developer Forum - 5.0.2
Previous topic :: Next topic  
Author Message
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
Back to top  
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
Back to top  
 
       vtiger Forum Index -> Developer Forum - 5.0.2
Page 1 of 1


Powered by phpBB Search Engine Indexer
Powered by phpBB 2.0.15 © 2001, 2002 phpBB Group