Skip to main content

Design Strategies for JavaScript API

Ariya Hidayat (Shape Security)
Tools, Platforms, and APIs
Location: Salon 8 Level: Intermediate
Average rating: ****.
(4.33, 18 ratings)
Slides:   1-PDF 

Modular design of a large-scale web application encourages the right level of component coupling and at the same time it mandates a reasonable set of APIs (application programming interfaces) between those modules. The way a particular module is being used by other modules define the success of those APIs. In this talk, best practices on the interactions between modules, particularly on the influence of an interface on the code patterns, will be analyzed and used to formulate the following strategies:

  • Using static polymorphism to ensure consistent naming
  • Preventing unnecessary and dangerous convenience (e.g. Boolean traps)
  • Avoiding unreadable code due to confusing semantics

Examples, both on the good and bad sides, will be taken from real-world application code. In addition, a few language tools to recognize the ambiguous code pattern will be demonstrated.

Photo of Ariya Hidayat

Ariya Hidayat

Shape Security

Ariya Hidayat (@ariyahidayat) is an engineer/technical lead/FOSS fan/blogger/speaker. These days, his activities are mostly on software craftsmanship around HTML5, JavaScript, and other web technologies.

Comments on this page are now closed.

Comments

Chris Anderson
03/14/2014 3:46pm PDT

I thought this presentation was very misleading due to its title. It was like a programming 101 course on variable naming. There were other sessions I skipped over for this and was disappointed