
javascript
js-testing
Organize Your Code with RequireJS
Writing web applications using JavaScript, HTML, and CSS can become overwhelming quickly. Between managing UI, data, interactions, and network requests, application code can become a real mess, and this isn’t helped by the way the browser loads JavaScript code. In most other programming environments, there is some way to split your code into modules or scripts, and specifically require one module from another. In JavaScript, we can split our code into multiple files, but there is no way to declare in one script that you are depending on another.Retrieve Unique Values from an Array with JavaScript
Sandbox Your Cross Domain JSONP To Improve Mashup Security | BeeBole
When asked what he might do differently if he had to rewrite Java from scratch, James Gosling suggested that he might do away with class inheritance and write a delegation only language . Using inheritance as a vehicle for code reuse is a bit like ordering a happy meal because you wanted the plastic toy. Sure a circle is a shape and a dog is a mammal – but once we get past those textbook examples most of our hierarchies get arbitrary and tenuous – built for manipulating behaviour even as we pretend we are representing reality. Successive descendants are saddled with an ever increasing number of unexpected or irrelevant behaviours for the sake of re-using a few. Delegation is a technique that promotes code reuse by allowing runtime function invocation in the context of a specific instance – regardless of the hierarchical lineage of instance and function.
Delegation vs Inheritance in JavaScript | JavaScript, JavaScript
Test-Driven JavaScript Development in Practice
jquery

