× {{alert.msg}} Never ask again
Get notified about new tutorials RECEIVE NEW TUTORIALS

Exploring different ways to make asynchronous javascript code more readable.

Marek Publicewicz
Sep 04, 2014
<p><strong>Q: What was the request about? </strong></p><p>Helping to understand classes and objects in Javascript and how to use them to wrap Firebase database calls.</p><p><br><strong>Q: How did you help with the request?</strong></p><p>Showed different ways to define classes in Javascript, highlighting differences and similarities with PHP. Suggested ways to create wrapper classes hiding internal complexities and exposing database results in a nice and easy way. Also demonstrated how to use underscore.js to find &amp; filter elements and signaled the least-painful ways to introduce Backbone.js to the existing project.<br><br><strong>Q: Any best practices &amp; key learnings you can share?</strong></p>