Search results for 2013 05 20 fluent apis and method chaining

Building a Parallax Scrolling Game with Pixi.js – Part 4

by Brian Rinaldi

…both methods you’ll see that the slice type passed to each is used to lookup and call the appropriate object pool method. Testing the Methods for Borrowing and Returning Wall…

Fluent APIs and Method Chaining

by Brian Rinaldi

…the Promises/A spec also provide very clear and concise Fluent APIs. Concluding Thoughts Over the years I have leveraged Method Chaining to facilitate the design of Fluent APIs for various…

Building a Parallax Scrolling Game with Pixi.js – Part 3

by Brian Rinaldi

…onComplete property to a method of our choosing. We’ve opted to name that method spriteSheetLoaded() and will write it in just a moment. Finally, our PIXI.AssetLoader instance’s load() method is…

Building a Parallax Scrolling Game with Pixi.js – Part 2

by Brian Rinaldi

…Remember we wrote update() methods for both our Mid and Far classes? Well all that’s required within our Scroller class’ own update() method is to call these update methods. Plugging…

How to create an advanced HTML5 placeholder polyfill

by Brian Rinaldi

…a string. (function($){ $.fn.auderoUnifiedPlaceholders = function (method) { if (methods[method]) return methods[method].apply(this,, 1)); else if (typeof method === “object” || !method) return methods.init.apply(this, arguments); else $.error(“Method ” + method

Taming Asynchronous JavaScript Programming with ECMAScript6

by Brian Rinaldi

property/method missing exception to implement method chaining: take(‘spaghetti’).and().cookIt(at: 100C) In this example, and is a non-existing method of the return value V of take(‘spaghetti’). The missing exception handler will return…

Rethinking DOM Traversal

by Brian Rinaldi

…that point – so let’s look at the typical DOM traversal methods. DOM Traversal Methods Before we begin exploring the various DOM traversal methods, it may be useful to have…

2013 – The Year in Web Development

by Brian Rinaldi

pushed so much further in 2013 helped bolster developer’s confidence in creating their own custom elements with a framework like AngularJS. 2013 was also another tumultuous year for mobile, as…

Deploying APIs built via Node.js to IBM Bluemix

by Niklas Heidloff

in the dashboard of the API Management service. In order to invoke APIs applications developers need to register applications. Applications can subscribe to plans with the APIs they are interested…

Coding for Responsive State Changes with SimpleStateManager

by Brian Rinaldi

….addState method of SSM to add each state. When calling the .addState method you are able to pass a variety of options to the method, these are: id (optional) –…