Trying some FOOP programming: timeutilities.lsp

Notices and updates
Locked
cormullion
Posts: 2038
Joined: Tue Nov 29, 2005 8:28 pm
Location: latiitude 50N longitude 3W
Contact:

Trying some FOOP programming: timeutilities.lsp

Post by 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.c ... 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
Posts: 5289
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

Post by Lutz »

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

cormullion
Posts: 2038
Joined: Tue Nov 29, 2005 8:28 pm
Location: latiitude 50N longitude 3W
Contact:

Post by cormullion »

thanks!

m i c h a e l
Posts: 394
Joined: Wed Apr 26, 2006 3:37 am
Location: Oregon, USA
Contact:

Post by m i c h a e l »

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
Posts: 2038
Joined: Tue Nov 29, 2005 8:28 pm
Location: latiitude 50N longitude 3W
Contact:

Post by cormullion »

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...

Locked