[wp-hackers] Coding Standards: Functions vs. Classes

scribu scribu at gmail.com
Sun Mar 18 10:40:19 UTC 2012


2012/3/18 Michał Środek <michal at srodek.info>

> I prefer full objective style of coding (take a look at Zend Framework
> - http://framework.zend.com/ )
>

I think Zend Framework is trying too hard to mimic Java, in an effort to
make PHP look more enterprisey:
http://steve-yegge.blogspot.com/2006/03/execution-in-kingdom-of-nouns.html



> It's not so simple. There is also something called a visibility. Some
> functions should be visible outside the class, some not.


In WordPress, private function names begin with an underscore and have
*@visibility
private* in their docblock.

-- 
http://scribu.net


More information about the wp-hackers mailing list