Earnie Boyd wrote:
Quoting James Gilliland <[email protected]>:


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

Reply via email to