[TYPO3-core] Change CGL for inline comments?

Ernesto Baschny [cron IT] ernst at cron-it.de
Mon Sep 24 11:37:37 CEST 2012


Peter Russ schrieb am 24.09.2012 10:42:

>> Stefan Neufeind wrote:
>>> Interesting to see that nobody would have dared to raise that topic but
>>> that several people now seem to advocate the change to "correct"
>>> indention.
>>
>> I think, just wait ;) I expect the discussion will become more active in
>> the coming days (if not hours) :)
>>
> 
> By the way: Why do we waste time, resources and efforts in defining own
> CGL while all major PHP-projects works with PHP/Zend?

Not necessarily true, most bigger PHP projects come with their own
coding guidelines, usually because it comes from it's natural history of
having being started while there was no other "generic" standard in
place. See:

http://developer.joomla.org/coding-standards.html
http://codex.wordpress.org/WordPress_Coding_Standards
http://pear.php.net/manual/en/standards.php
http://book.cakephp.org/2.0/en/contributing/cakephp-coding-conventions.html

There are some oddities in the Zend Coding Standards which I wouldn't
like to take over, for example using four spaces to indent, having a
limit of "80 chars per line", the opening brace of functions/classes on
a separate line etc.

Our coding style comes close to Java guidelines in regard of indenting
and placement of braces and spaces around stuff. I personally find these
very harmonic and nice to read. See [1].

Considering the new "namespacing" in 6.0, it's of course time to do a
rework on the CGL especially in regard of file naming, file and module
placement in the file hierarchy.


Cheers,
Ernesto

[1]
http://www.oracle.com/technetwork/java/javase/documentation/codeconventions-142311.html


More information about the TYPO3-team-core mailing list