Cool! Can't wait to see the slides. Will there be video at any point?
Let me know how it goes...
yours,
Greg
D
Super clear walkthrough of the whole RAD process.
Plus, I really like that use of observer to communicate with the
serial port. I've wanted something like Processing's SerialEvent
callback for various ruby scripts I've written (was actually working
on a module to add serial interaction to Shoes, _why the lucky stiff's
mini GUI toolkit) and the observer module seems like a great way to
achieve that.
Excited to see how your work on the serial console comes along!
-- Greg
Yeah, the observer module is a dead simple method of event
notification. I do not know how efficient it is, but it should be
fine. A slightly modified version of the code in the slide works well
as a basic event monitor, Rails console style, and I used it with my
talk (Ill post that a little later). If we could settle on a logical
naming for the classes and the console and its location, I can package
up a preliminary version just to have something for people to work
with. Perhaps start another topic for that. I also wonder if Guillaume
Pierronnet would be interested in letting us convert Ruby/Serial into
a gem so RAD can be dependent on it (thus facilitating an autoinstall).
The main challenge in using that class it that it blocks all other
processes while reading the port, which doesn't really matter for a
console app. For other applications, I am not sure if it should be
used as a service of some sort, a daemon, or if its use requires
multithreading... suggestions?
David