[IPython-dev] App's, Components and refactoring

Ville M. Vainio vivainio at gmail.com
Thu Jul 30 02:33:53 EDT 2009

On Wed, Jul 29, 2009 at 11:34 PM, Brian Granger<ellisonbg.net at gmail.com> wrote:

>> In static circles, it's a well known design methodology to restrict
>> the interface you can use as much as you possible can, by not giving
>> yourself access to all the internals (or making "passing the boundary"
>> explicit, through having to use _ip.IP).
> If by 'static circles'' you mean statically typed (like Java, C++) you still
> just use one object, not a separate api object to accomplish this.

Yeah, but use it through interface instead of direct concrete class
with all the bells and whistles available.

Note that the api object is a separate object is an implementation
detail - ipapi.get() could as well pass you the direct
InteractiveShell object. The user of the api never needs to know what
object it gets.

Ville M. Vainio

More information about the IPython-dev mailing list