[Opensim-dev] Should SOG and SOP be combined into a single object in a linked hierarchy?
Sean Dague
sdague at gmail.com
Tue Nov 11 17:05:58 UTC 2008
Justin Clark-Casey wrote:
> Melanie wrote:
>> Hi,
>>
>>
>> Justin Clark-Casey wrote:
>>> Cons
>>>
>>> 1. LLEntity becomes very large and potentially complex. SOG and SOP are already large and complex. It may be possible
>>> to improve this by further refactoring.
>> One large and complex class to make the other logic everywhere much
>> simpler. A worthwhile tradeoff, i'd say.
>
> Personally I disagree - any large and complex class is a result to be avoided.
>
> However, as I said, I suspect that it could be broken up somewhat (unless you want absolutely everything in a single
> class on principle). For instance, all the inventory stuff should really be in a separate class, especially as one can
> imagine virtual environments either where prims don't have inventory, or where inventory is handled different (e.g. an
> inventory for the whole object rather than for individual prims).
Yeh, I think that if you moved Permissions and Inventory into outside
classes that were used, a bunch of complexity would start to fall out of
the environment.
Plus, we could get rid of the most evil of the partial classes out there. ;)
Death to partials!
-Sean
--
Sean Dague / Neas Bade
sdague at gmail.com
http://dague.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
URL: <http://opensimulator.org/pipermail/opensim-dev/attachments/20081111/961d3978/attachment-0001.pgp>
More information about the Opensim-dev
mailing list