[wp-hackers] prefix vs postfix - pros and cons
wordpress at zed1.com
Wed Feb 22 21:01:57 UTC 2012
On Wed, Feb 22, 2012 at 20:58, Haluk Karamete <halukkaramete at gmail.com>wrote:
> Thank you for catching that. I did not know about buddypress's bp_.
> but, I was asking in general, not particularly in wp. The library and
> the functionality I'm trying to build should work also in drupal,
> joomla etc.
> In general, what are the advantages of prefixing the function names as
> opposed to postfixing them?
An obvious one is sorting. Any IDE or other tool that lists functions, or
automatically completes your typing based on what you typed so far would
have an advantage with a prefix. All the related functions will be together.
More information about the wp-hackers