[TYPO3-dev] maxmimum length of filename

Franz Holzinger franz at fholzinger.com
Mon Dec 1 12:58:14 CET 2008


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








More information about the TYPO3-dev mailing list