Trying some FOOP programming: timeutilities.lsp

Started by cormullion, September 10, 2008, 10:39:38 AM

Previous topic - Next topic

cormullion

I've been having a go at writing some FOOP-style functions, mainly as a training exercise, but also for use too, and I've put my first attempt at a module up at http://unbalanced-parentheses.nfshost.com/downloads/index.html">//http://unbalanced-parentheses.nfshost.com/downloads/index.html.



It's a bit rough at present (nowhere near as polished as Jeff's newLISP modules...) so I'd appreciate any suggestions or criticisms, either here or by pm/email...



thanks!

Lutz

#1
very nice, I will put a link here: http://www.newlisp.org/modules/">http://www.newlisp.org/modules/

cormullion

#2
thanks!

m i c h a e l

#3
Hi cormullion!



Great job on your Time and Duration modules. You're really getting the hang of this FOOP thing.



I'm impressed with the number of useful methods you've managed to include (:period and :shift, for example), and your constructor is so versatile, allowing for many ways to create a Time object.



This is a perfect example of practical FOOP. Well-done.



m i c h a e l

cormullion

#4
Cool - thanks!



The immutable objects principle seems a happy fit for this particular application. I find it harder to think about objects for more abstract applications, where you just want to change the objects, not make modified copies...