JavaScriptToday
66 views | +0 today
Follow
Your new post is loading...
Your new post is loading...
Scooped by JavaScript Today
Scoop.it!

Mastering the Module Pattern

Mastering the Module Pattern | JavaScriptToday | Scoop.it

I'm a massive fan of JavaScript's Module Pattern and I'd like to share some use cases and differences in the pattern, and why they're important. The Module Pattern is what we'd call a "design pattern", and it's extremely useful for a vast amount of reasons. My main attraction to the Module Pattern (and it's variant, the Revealing Module Pattern) are because it makes scoping a breeze, and doesn't overcomplicate JavaScript design.

It also keeps things very simple and easy to read and use, uses Objects in a very nice way, and doesn't bloat your code with repetitive this and prototype declarations. I thought I'd share some insight as to the awesome parts of the Module, and how you can master it and it's variants and features.

more...
No comment yet.
Rescooped by JavaScript Today from javascript node.js
Scoop.it!

Safe Factory Pattern - Private instance state in JavaScript - CodeProject

Safe Factory Pattern - Private instance state in JavaScript - CodeProject | JavaScriptToday | Scoop.it

Enabling private state in any JavaScript object.; Author: Duarte Cunha Leão; Updated: 18 Jul 2014; Section: Ajax; Chapter: Web Development; Updated: 18 Jul 2014


Via Mikael Bourges-Sevenier
more...
No comment yet.
Scooped by JavaScript Today
Scoop.it!

Plato.js -- JavaScript Static Source Code Analysis Tool

This is a screencast for my Software Engineering Course at NC State University. References: Plato: https://github.com/es-analysis/plato Top GitHub Languages:...
more...
No comment yet.
Scooped by JavaScript Today
Scoop.it!

A JavaScript survival guide

A JavaScript survival guide | JavaScriptToday | Scoop.it

Are you a programmer who is considering learning JavaScript, but unsure whether it is worth the pain? Then this blog post is for you: I argue that it is worth it and give tips for surviving the language.

more...
No comment yet.
Scooped by JavaScript Today
Scoop.it!

Diving Deeper With ES6 Generators

Diving Deeper With ES6 Generators | JavaScriptToday | Scoop.it
ES6 Generators: Complete SeriesThe Basics Of ES6 GeneratorsDiving Deeper With ES6 GeneratorsGoing Async With ES6 Generators (Coming soon)Getting Concurrent With ES6 Generators (Coming soon)
more...
No comment yet.
Scooped by JavaScript Today
Scoop.it!

Dispatched and direct method calls in ECMAScript 5 and 6

Dispatched and direct method calls in ECMAScript 5 and 6 | JavaScriptToday | Scoop.it

There are two ways to call methods in JavaScript:

via dispatch, e.g. obj.someMethod(arg0, arg1)directly, e.g. someFunc.call(thisValue, arg0, arg1)

This blog post explains how these two work and why you will rarely call methods directly in ECMAScript 6.

more...
No comment yet.
Rescooped by JavaScript Today from javascript node.js
Scoop.it!

You Don't Know JS: this & Object Prototypes

You Don't Know JS: this & Object Prototypes | JavaScriptToday | Scoop.it

No matter how much experience you have with JavaScript, odds are you don’t fully understand the language. This concise, in-depth guide takes you inside JavaScript’s this structure and object prototypes.


Via Mikael Bourges-Sevenier
more...
No comment yet.
Scooped by JavaScript Today
Scoop.it!

javascript (node.js) event-loop

exploring the event loop and what it means for javascript programming. Feedback appreciated! This is my first venture into screencasts.
more...
No comment yet.
Scooped by JavaScript Today
Scoop.it!

5 Javascript Apis to Empower Your Mobile Web Pages

5 Javascript Apis to Empower Your Mobile Web Pages | JavaScriptToday | Scoop.it
We highlight 5 JavaScript APIs to empower your mobile web applications.
more...
No comment yet.
Scooped by JavaScript Today
Scoop.it!

3 New JavaScript APIs You May Want to Follow

3 New JavaScript APIs You May Want to Follow | JavaScriptToday | Scoop.it
This article looks at three new APIs that are still in early development.
more...
No comment yet.