[TYPO3-50-general] RFC: Short filenames

Thomas Allmer at at delusionworld.com
Tue Jan 27 14:32:36 CET 2009


Robert Lemke wrote:
> [...] As you know the filename of a class file currently reflects the fully 
> qualified class name. The question is if we should change this to the 
> much shorter unqualified class name:
> 
>   F3_FLOW3_MVC_Controller_ActionController.php -> ActionController.php


+1 for shorter filenames

Reason:
I mean FLOW3 uses cutting edge features like namspaces to allow nice 
class names like "ActionController"
instead of "F3\FLOW3\MVC\Controller\ActionController" but FLOW3 don't 
want to use folders (they are around a little longer) to simplify Filenames?

PATH: FLOW3\Classes\MVC\Controller
FILE: F3_FLOW3_MVC_Controller_ActionController.php
it's almost the same - filename just skips "Classes"


-- just a quick thought (don't hate me for it... :p) --
I might even make sense to strip the Controller and add the key to the name?

example:
Shop/Classes/Controller/DefaultController.php -> ShopDefault
(only "default" or "list" is bad)

yeah, I'm not sure, just talking out of my mind... :p


cheers

-- 
+---------------------------------+-----------------------------------+
| Thomas Allmer                   |   http://www.delusionworld.com    |
| E-mail: at at delusionworld.com    |   phone: +43 699 16217064         |
+---------------------------------+-----------------------------------+


More information about the TYPO3-project-5_0-general mailing list