Up to Main Index Up to Journal for November, 2012 JOURNAL FOR MONDAY 19TH NOVEMBER, 2012 ______________________________________________________________________________ SUBJECT: Back to some productive coding DATE: Mon Nov 19 21:35:03 GMT 2012 Finally I seem to be coding again - and having it make sense. Not sure what happened last week - exhaustion? Nasty bug making me feel grotty? Who knows? Main thing is I'm back and at it again. So far I've been working on the UID/thing code. For some reason I thought it might be a good idea to tightly couple UID's and Things. If I was writing OOP style I might have been correct - but Go is not OOP! Must think embedding and composition *NOT* OOP and hierarchies *sigh* Separating UID/Thing logic should help tackle simplifying the locking that command processing handles. This in turn should allow me to move the locking from Thing to Location. At the moment all things have a boolean channel which is used as a mutex - but only locations need the mutex. Obviously this is wasting resources and some might say it's not worth bothering about as the waste is tiny. However you know and I know if you spot something like this and don't sort it out it *WILL* come back, it *WILL* bite you in the arse. Hopefully spending time loosening up the couplings of types like this will have additional benefits later on. -- Diddymus Up to Main Index Up to Journal for November, 2012