in reply to OT: Design question

There's only really about 4-5 different types of events, just with different parameters.

This makes me think that this might help.

--
F o x t r o t U n i f o r m
Found a typo in this node? /msg me
% man 3 strfry

Replies are listed 'Best First'.
Re^2: OT: Design question
by SpanishInquisition (Pilgrim) on Sep 30, 2004 at 20:29 UTC
    Yes, the functional programming way of deferring callbacks to other callbacks. I like it :)

    It's really amazing sometimes how powerful divide-and-conquer logic can be. I like it how top-down thinking allows "start with a program definition, break it up, break those problems up, and keep coding until all your functions are implemented".

    If you control what you name your functions and your modules as you go, it can be really beautiful. I have a application-specific SOAP module I wrote, the code is elegant as heck, but I read it and wonder "It's a miracle this thing works as simple as the methods and API are...". Thinks just happen. And they just work. Because you told them to. Neat.