Blog | RSS | Photo Gallery | Wish List     Eric's Blob
Events in OpenThought Posted at 23:35 by Eric

I've just committed the changes to CVS which implement an events system in OpenThought. In OpenThought, the browser might contact the server for one of several different reasons, each of which requires a different type of response. Previously, application authors had to test for these on their own, by checking the value of a GET parameter. That was aweful.

The events-based system offers more structure to the requests the browser might send. There is a new method, called event, which figures out which event the browser has sent to the application. It then calls the appropriate subroutine, based on the parameters an author has given to the event method.

I think this new system makes OpenThought applications much cleaner, easier to understand, and it lowers the learning curve for new developers. OpenThought is still considered alpha, but only because parts of the API are being finalized. I'm incredibly picky about API's, and I'm not okay pushing it into beta until I'm happy with how the API looks. Aside from that, OpenThought has been stable for over a year, we've been using it in production for quite some time at work. It will be going into beta very shortly so we can bang out any lingering bugs. Version 1.0 creeping up on us.

| |

Post a Comment
    Name:
    URL/Email: [http://... or mailto:you@wherever] (optional)
    Title: (optional)
    Comments:
      Use HTML for formatting. Allowed HTML: <a> <p> <b> <i> <u> <hr> <br> <ol> <ul> <li>

trackback

TrackBack ping me at:

http://www.openthought.org/blosxom.cgi/Blog/Computers/Programming/Perl/ot_events.trackback