Reusable Code, for good or for awesome! (Jake Archibald)

  • il y a 13 ans
Reusable Code, for good or for awesome! (Jake Archibald)
What sets reusable JavaScript apart from other JavaScript? How can we make our code developer-friendly, fast, robust & compatible?

In this talk we'll cover testing, code structure, working with compressors, documentation, measuring performance, but concentrating on API design.

The API is make-or-break when it comes to reusable code. It's the API that lets other developers use your application, if it's difficult to use then they won't get the most out of what you've written.

We'll analyse existing APIs, looking at where they fail and where they succeed, looking at what patterns they use and how users react to them.

By looking at the wins and fails in the real world, we can discover what makes code a pleasure to use and reuse.