<div class="gmail_quote">On Thu, May 7, 2009 at 9:23 AM, Jeff Eaton <span dir="ltr"><<a href="mailto:jeff@viapositiva.net">jeff@viapositiva.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Crell's Law: If an API must be use-case-optimized, make it swappable & tailor the default for cheap shared hosting. High-end sites can swap.<br>
<br>
Eaton's Corollary: If an API is swappable, write two implementations. APIs with one test case are rarely flexible enough for the second.<br><font color="#888888">
<br>
--eaton<br>
</font></blockquote></div>As I noted on IRC when this was mentioned, maybe there should be another law.<br><br>Drupal Law 0: If you need to do something, make an API for it first.<br><br>Or maybe that's just eaton's first law? ;)<br>