[TYPO3-dev] [TYPO3-core] New TYPO3 Coding Guidelines
David Bruchmann
typo3-dev at bruchmann-web.de
Thu Jul 9 20:22:57 CEST 2009
----- Ursprüngliche Nachricht -----
Von: Vladimir Podkovanov <admin at sitesfactory.ru>
Gesendet: Donnerstag, 9. Juli 2009 19:06:13
An: typo3-dev at lists.netfielders.de
CC:
Betreff: Re: [TYPO3-dev] [TYPO3-core] New TYPO3 Coding Guidelines
> Francois Suter wrote:
>> Hi all,
>>
>> After a long wait the new TYPO3 Coding Guidelines have been released
>> last Friday. So head over to typo3.org and get your copy [1]! These new
>> rules apply to all pending or future patches with immediate effect.
>>
>> You can read a longer announcement in the Core Blog [2].
>>
>> Happy coding to all!
>>
>>
>> Francois Suter & Michael Stucki
>>
>>
>> [1]
>> http://typo3.org/documentation/document-library/core-documentation/doc_core_cgl/current/
>>
>>
>> [2] http://buzz.typo3.org/teams/core/article/new-typo3-coding-guidelines/
>
> Hi!
> since single quotes vs double quotes are now working eighter fast (see
> http://www.phpbench.com/) would not be better to use
>
> "Hello $userName"
> rather than
> 'Hello ' . $userName ?
>
> In such way it saves time on concatenations.
>
In general it's possible but noting variables like this:
'Hello ' . $userName ?
... makes the text in most editors much more readable because variables
arent marked as string. Readiblity is an important point for the source.
Best Regards
David
More information about the TYPO3-dev
mailing list