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

Re: [sc-users] [sc-dev] Re: Binary Release [test] of ScGraph



On Dec 14, 2008, at 11:03 AM, Dan Stowell wrote:

Why not
subclass Server as (e.g.) GraphServer with its own value of .program?
Then the path wouldn't need to be manually set on every invocation.

Point taken. Another thought -- this makes three server-like entities: scsynth, swingosc and scgraph. Maybe it's time, then, for a true AbstractServer class to hold the functionality that needs to be common between all three. Just saying, if we're going to clean this up and allow server variants, let's do it the proper OOPy way :-)  instead of putting ourselves in "inheritance breaks encapsulation" territory.

That reminds me (at the risk of hijacking the thread) -- we had talked once upon a time about moving some of the server status variables and methods out into a separate class because Server itself is kind of ridiculously large. Should we revisit for 3.3?

hjh


: H. James Harkins
.::!:.:.......:.::........:..!.::.::...:..:...:.:.:.:..:

"Come said the Muse,
Sing me a song no poet has yet chanted,
Sing me the universal."  -- Whitman