Thoughts on modular code

Thoughts on modular code

<div dir="ltr">Hey guys,<div>
</div><div>At TAE, I spoke to a number of you guys about modular code, and some of you asked me to put together some examples. In addition to the simple autocompleter I put together for my talk at jQueryConf and TAE, I put together a simple example of an extensible tab plugin.</div>
<div>
</div><div>It's not intended to be feature complete, but to get the conversation started about how to design extensible, modular widgets using the event system. It's also not meant to be the perfect way to do this; again, I just whipped something up on the plane.</div>
<div>
</div><div>Also, if something like the widget factory or John's plugin code becomes standard, it would be possible to standardize some of the idioms here. I'm interested in your feedback. The idea here is that the part on top, until line 47, defines the basic semantics of the tabs, and additional semantics (including the default semantics) are provided modularly.</div>
<div>
</div><div>The code is at: <a href="http://gist.github.com/14517">http://gist.github.com/14517</a><br clear="all">
--
Yehuda Katz
Developer | Engine Yard
(ph) 718.877.1325
</div></div>