Dmitry Baranovskiy gave a talk on writing JavaScript libraries. He recommended spending more time on the API than functionality, and making the API as simple as possible. He also stressed the importance of performance, especially for IE6, and making the library bulletproof to work with other code. Shrinking file size is also important for JavaScript libraries.