[development] Proposed Apocrypha

Earnie Boyd earnie at users.sourceforge.net
Thu May 7 18:28:50 UTC 2009


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');
}

print_hello_world();

Oh wait I should create an API to do it first.

function execute_print_hello_world() {
   print_hello_world();
}

execute_print_hello_world();

Oh wait I should create an API to do it first.

...

Endless cycle.  I think you need a better descriptor than  
``something'' before you make an API.

--
Earnie
-- http://r-feed.com/           -- http://for-my-kids.com/
-- http://www.4offer.biz/       -- http://give-me-an-offer.com/




More information about the development mailing list