JavaScript
53 views | +0 today
Follow
Your new post is loading...
Your new post is loading...
Scooped by Tanawat Tassana
Scoop.it!

Applicative Programming In JavaScript With lodash.js

Applicative Programming In JavaScript With lodash.js | JavaScript | Scoop.it
In general, applicative programming is the pattern of defining a function that takes a function and then invokes that function for each element in a...
more...
No comment yet.
Rescooped by Tanawat Tassana from JavaScript for Line of Business Applications
Scoop.it!

Required JavaScript Reading

I'm asked regularly about books and online resources to get up to speed on JavaScript. Seems like everyone wants to get in on the JS action and with good reason; it's a great language to know if you're interested in exciting career opportunities. It's also pretty fun to play with.

 

With JavaScript's increased popularity, the number of books, blogs and tutorials about the language have grown exponentially and while I can't possibly know all of them, I've found some gems which I really like and would like to share those with you.


Via Jan Hesse
more...
No comment yet.
Rescooped by Tanawat Tassana from JavaScript for Line of Business Applications
Scoop.it!

JavaScript Dependency Injection

JavaScript Dependency Injection | JavaScript | Scoop.it
A quick explanation of how the AngularJS dependency injector works, and how you could write your own simplified JavaScript dependency injection library.

Dependency injection facilitates better testing by allowing us to mock dependencies in testing environments so that we only test one thing at a time. It also enables us to write more maintainable code by decoupling our objects from their implementations.

With dependency injection, your dependencies are given to your object instead of your object creating or explicitly referencing them. This means the dependency injector can provide a different dependency based on the context of the situation. For example, in your tests it might pass a fake version of your services API that doesn't make requests but returns static objects instead, while in production it provides the actual services API.

Another example could be to pass ZeptoJS to your view objects when the device is running Webkit instead of jQuery to improve performance.


Via Jan Hesse
more...
No comment yet.
Scooped by Tanawat Tassana
Scoop.it!

Classical Inheritance is Obsolete - How to Think in Prototypal OO

A talk given at O'Reilly's Fluent Conference: JavaScript and Beyond, 2013. Learn about the limitations of classical inheritance, and the power and flexibility of…
more...
No comment yet.
Scooped by Tanawat Tassana
Scoop.it!

JavaScript variable name validator

Wondering if you can use a given string as a variable name in JavaScript? This tool will tell you.
more...
No comment yet.