[OpenLayers-Trac] Re: [OpenLayers] #2531: have consistent writing of URL versus Url throughout the library

OpenLayers trac-20090302 at openlayers.org
Mon Oct 18 03:33:00 EDT 2010


#2531: have consistent writing of URL versus Url throughout the library
---------------------+------------------------------------------------------
 Reporter:  bartvde  |       Owner:             
     Type:  feature  |      Status:  new        
 Priority:  minor    |   Milestone:  3.0 Release
Component:  general  |     Version:  2.8        
 Keywords:           |       State:             
---------------------+------------------------------------------------------

Comment(by erilem):

 Replying to [comment:6 adube]:
 > Should we standardize class property names as well when they don't begin
 with url ?  For example, OpenLayers.Tile.Image has a maxGetUrlLength.
 Should it be renamed maxGetURLLength ?  If we decide to do so, we could do
 this for properties only and not local variable (like if a local parameter
 inside a method is named sUrl, that's fine).
 >
 > What do you think ?

 If we choose {{{getURL}}} then I think we should go with
 {{{maxGetURLLength}}}, for consistency. +1 from me for using uppercase URL
 in method names. And the rules we apply to URL should be applied to other
 acronyms, like JSON, etc.

-- 
Ticket URL: <http://trac.openlayers.org/ticket/2531#comment:7>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer


More information about the Trac mailing list