Achieving harmony with third-party JavaScript 3.77 http://spkr8.com/t/8518

Description:

Today, the common dogma is that we—library and widget developers—are responsible for writing defensive code that can co-exist with whatever other code is running on the page. We embraced that and library authors are getting pretty good in writing code that works in a myriad of different environments. However, there is always that website that does something so weird that all your tricks fail and your app goes crazy. Sometimes the failure is so severe, it breaks even the host page. I believe it is time to split the responsibility between library developers and their users. It is time for people to start writing their code with third-party JavaScript in mind. In this talk I will show a few things you probably do on your website that make it extremely hard for us to do our job. We will talk about using globals, modifying built-ins, changing the document's origin, tossing DOM nodes around and other cool things that can really screw things up for the next library or widget you will want to use.

Comments on this Talk

Sq_700k bobholt, 03 Oct 01:12 AM

Anton has an understated presence, but he obviously knows his stuff and brings a (somewhat twisted?) sense of humor along. The presentation itself was a list of things we should know better than to do anyway, but I still need to go fix a couple of things tomorrow.

Avatar-missing-icon-04 fredericaltorres, 03 Oct 01:33 AM

Anton is definitely fun and knowledgeable. Can do better on the delivery.

Avatar-missing-icon-09 sebed, 19 Oct 07:37 PM

The presentation was disorganized. It was unclear if Anton was directing remarks to producers or consumers of third-party javascript. At times his odd sense of humor got in the way of his presentation.

Have an account? Sign in or register.

Leave a Comment

6 Ratings: 3.77

Delivery: 3.70

Content: 3.83

Last Five Ratings