Thursday, October 31, 2013

Friday, October 11, 2013

Shapeways - Make, buy, and sell products with 3D Printing

http://www.shapeways.com/


Make, buy, and sell products with 3D Printing. How it works.

3D Printing Enters the Bronze Age at Shapeways

3D Printing Enters the Bronze Age at Shapeways

Just over 5000 years ago man entered the Bronze Age, now you too can have access to the material that mankind used to build the tools that transfo...
Read More »

Monday, October 7, 2013

Learning JavaScript Design Patterns

JavaScript » Immediately-Invoked Function Expression (IIFE)

Immediately-Invoked Function Expression (IIFE):

Immediately-Invoked Function Expression (IIFE)

| 0 Comments
In case you hadn’t noticed, I’m a bit of a stickler for terminology. So, after hearing the popular, yet misleading, JavaScript term “self-executing anonymous function” (or self-invoked anonymous function) one too many times, I’ve finally decided to organize my thoughts into an article.
In addition to providing some very thorough information about how this pattern actually works, I’ve actually made a recommendation on what we should call it, moving forward. Also, If you want to skip ahead, you can just check out some actual Immediately-Invoked Function Expressions, but I recommend reading the entire article.
Please understand that this article isn’t intended to be an “I’m right, you’re wrong” kind of thing. I’m genuinely interested in helping people understand potentially complex concepts, and feel that using consistent and accurate terminology is one of the easiest things that people can do to facilitate understanding.

So, what’s this all about, anyways?

In JavaScript, every function, when invoked, creates a new execution context. Because variables and functions defined within a function may only be accessed inside, but not outside, that context, invoking a function provides a very easy way to create privacy.

Javascript Closures: Front to Back | Nettuts+

Closures: Front to Back | Nettuts+:

What Is A Closure?

One of the key truths of JavaScript is that everything is an object. This, of course, includes functions.
A closure is nothing more than a function object with a related scope in which the function’s variables are resolved.
Closures get their name because of the way they close over their contents.
 "A quick recap of what we learned:
A closure is nothing more than a function object with a scope.
Closures get their name by the way they “close” over their contents.
Closures cash in big time on JavaScript’s lexical scope.
Closures are the way to achieve privacy in JavaScript.
Closures are able to capture the local variable and parameter bindings of an outer function.
JavaScript can be powerfully extended with some closure magic.
Closures can be used with many of your favorite libraries to make them even cooler!
Thanks so much for reading! Feel free to ask any questions. Now let’s enjoy the pizza party!"