[development] Proposed Apocrypha

Earl Miles merlin at logrus.com
Thu May 7 18:54:53 UTC 2009

Earnie Boyd wrote:
> Quoting James Gilliland <neclimdul at gmail.com>:
>> Drupal Law 0: If you need to do something, make an API for it first.
> print t('Hello World');
> Oh wait I should create an API to do it first.
> function print_hello_world() {
>   print t('Hello World');
> }

That's not an API, that's abstraction. Kind of. It doesn't follow any of 
the rules, which has to do with flexibility and reusability. So it's bad 
abstraction. :P

More information about the development mailing list