JavaScript's Odd Parts – Configurable Functions as a DSL
As some of you may be moving from Java to JavaScript, you’ll find there are a number of ways to program – using objects, functions, or a hybrid approach. A common style of API you’ll see in the wild lends itself to expressive object definitions, while at the same time being easy to use to express a domain-specific language syntax. Configurable Functions This blog post was inspired by the D3 charting API’s author, Mike Bostock, and his article, Toward Configurable…