[p2pu-dev] Tech call notes: 2013-01-17

Dirk Uys dirk at p2pu.org
Wed Jan 23 13:36:55 UTC 2013


Hi Jose

On Tue, Jan 22, 2013 at 7:28 PM, Jos Flores <josmasflores at gmail.com> wrote:

>
> If all your business logic is encapsulated in classes, your domain
> objects will be usable by both Django and flask, and being plain
> objects, can be very testable. But anyway, this is pretty much the
> same you are saying! :)
>

I tend to agree with you on this. I prefer writing domain logic behind a
stateless API that answers questions. Anything behind your API is free to
use any data store. Resources should be referenced by URI and you have the
possibility of weak references. Exposing an APIs over HTTP follows easily.

Cheers
d
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.p2pu.org/pipermail/p2pu-dev/attachments/20130123/09dba090/attachment.html>


More information about the p2pu-dev mailing list