Fleegix.org

Event overlap in Scooby

2006-04-11 00:47:00

Over the weekend I went on a bit of a coding binge and implemented event block overlap in Scooby's 'timed' events (events that have a start and end time -- not 'all day').

It's a clone of the implementation in Chandler -- some really elegant algorithms for both the block indentation and width calculations written in Python by Alec Flett, one of my co-workers at OSAF.

My task actually ended up being pretty easy. All I had to do was translate what he did into JavaScript, and make it work in Scooby's GUI framework.

I don't know Python (although I have read O'Reilly's Learning Python book), so I had anticipated this would take a week or longer to work out completely. It's proof of Python's simplicity and readability that I was able to knock out a basic implementation over the weekend.

That leaves recurrence and tiling of all-day events to finish up before Scooby will be close to anything that people can actually use -- but getting this overlap stuff working is a pretty big step.

About

This is the blog for Matthew Eernisse. I currently work at Yammer as a developer, working mostly with JavaScript. All opinions expressed here are my own, not my employer's.

Related

Previous posts

All previous posts ยป

This blog is a GeddyJS application.