You are here: start » coding_style

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
coding_style [2017/11/01 15:22]
127.0.0.1 external edit
coding_style [2018/02/19 14:52]
Christoph M. Becker Update wrt. XH 1.7
Line 4: Line 4:
 //Any fool can write code that a computer can understand. Good programmers write code that humans can understand.//​([[http://​www.amazon.com/​Refactoring-Improving-Design-Existing-Code/​dp/​0201485672|Martin Fowler]]) ​ //Any fool can write code that a computer can understand. Good programmers write code that humans can understand.//​([[http://​www.amazon.com/​Refactoring-Improving-Design-Existing-Code/​dp/​0201485672|Martin Fowler]]) ​
  
-Since CMSimple_XH 1.6 the [[http://​pear.php.net/​manual/​en/​standards.php|pear coding standards]] have been adopted for the core. Extension writers may consider adopting these coding standards also, but of course that is no requirement.+Since CMSimple_XH 1.6 the [[http://​pear.php.net/​manual/​en/​standards.php|pear coding standards]] have been adopted for the core. As of XH 1.7 the core has switched to [[https://​github.com/​php-fig/​fig-standards/​blob/​master/​accepted/​PSR-2-coding-style-guide.md|PSR-2]] which is more appropriate for contemporary code. Extension writers may consider adopting ​either of these coding standards also, but of course that is no requirement.
  
 Because some people get religious when talking about their coding style, don't take this list as something like the Ten Commandments,​ but just as ten **suggestions** to increase readibility of your plugins and addons. Because some people get religious when talking about their coding style, don't take this list as something like the Ten Commandments,​ but just as ten **suggestions** to increase readibility of your plugins and addons.
 
You are here: start » coding_style
Except where otherwise noted, content on this wiki is licensed under the following license: GNU Free Documentation License 1.3
Valid XHTML 1.0 Valid CSS Driven by DokuWiki