gnumed-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnumed-devel] Simple improvements to Social network


From: Karsten Hilbert
Subject: Re: [Gnumed-devel] Simple improvements to Social network
Date: Sun, 7 Aug 2011 22:56:00 +0200
User-agent: Mutt/1.5.21 (2010-09-15)

On Sun, Aug 07, 2011 at 01:38:34PM -0700, Jim Busser wrote:

> > Uhm, no, that's a locally managed object. There's precious
> > little global state - one of the ways to conquer complexity.
> 
> Meaning that the
> 
>       Emergency contact (in DB)
> 
> gets searched via a field / object  that needed to be
> developed from scratch (i.e. unable to re-use the patient
> search other than copy-pasting some possibly usable lines of
> code)?

Fortunately, it is not that bad.

The *code* is the same - but not the *state* within.

Code is written in classes which are "templates" for the
Python runtime to create live objects in memory during
execution.

So, not strictly but close enough, while, yes, it is simply
the same class instantiated twice those two instances do not
share the most-recent list information (as that is runtime
state).

Strictly speaking one is a child class of the other -
there's cPersonSearchCtrl and cActivePatientSelector.

Karsten
-- 
GPG key ID E4071346 @ gpg-keyserver.de
E167 67FD A291 2BEA 73BD  4537 78B9 A9F9 E407 1346



reply via email to

[Prev in Thread] Current Thread [Next in Thread]