On Sat, Apr 25, 2009 at 3:08 AM, Brion Vibber <br...@wikimedia.org> wrote:
> On 4/24/09 6:36 AM, Eugene Zelenko wrote:
>> On Thu, Apr 23, 2009 at 8:59 PM, Andrew Garrett<agarr...@wikimedia.org>  
>> wrote:
>>> The advantage of this clear separation is that writing an API module
>>> is very simple, and it can be called internally, too!
>>
>> I think will be good idea to use API internally (not only have
>> possibility to call), as result code will have more testing and
>> coverage.

> Client-side JavaScript UI code can use the API to reach the backend, but
> I don't see much benefit to trying to use the API on the PHP UI end;
> it'll generally just be awkward.
>
> API code should rarely have to do any serious DB or processing work
> itself; it should be calling the backend model/controller-level interface.

I mean, of course, that the back-end business logic interface can be
called internally, not that the API can be called internally.

-- 
Andrew Garrett

_______________________________________________
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to