[TYPO3-dev] maxmimum length of filename

Steffen Kamper info at sk-typo3.de
Mon Dec 1 13:14:10 CET 2008


Hi,

Franz Holzinger schrieb:
> Hello,
> 
> the current coding guidelines say, that a filename must not be longer 
> than 31 characters:
> 
> http://typo3.org/documentation/document-library/core-documentation/doc_core_cgl/4.1.0/view/1/2/#id3989291 
> 
> 
> 
> I think this is much too short.
> 
> E.g you have an extension named myextensionkey .
> 
> Then your filename of a class will be
> 
> class.tx_myextensionkey_whatsoever.
> 
> This aleady has 34 characters! It does not comply the coding guidelines.
> You are forced to name the file class.tx_myextensionkey_whatsoe. However 
> this is very bad, because you only have a maximum of _7_ characters 
> available to name the classes, where the rest has already been used to 
> name that the file contains a class and the extension key with an 
> additional prefix 'tx_'.
> And if you want to use a mvc model, then you will add 'model', 'view' 
> and 'control' to your class names. And maybe you want to add parts of 
> the folder names too, e.g. pi1, mod1 to the filenames.
> 
> 
> - Franz
> 

i think this is a vehicle of old 16-bit applications, so the limit 
doesn't make real sense. Make a patch with new suggestion ;-)

vg Steffen




More information about the TYPO3-dev mailing list