Skip to content

Instantly share code, notes, and snippets.

@ericelliott ericelliott/ Secret
Last active Aug 29, 2015

What would you like to do?
The Two Pillars of JavaScript

The Two Pillars of JavaScript

Software is eating the world, the web is eating software, and JavaScript rules the web. Learn why JavaScript's distinctive features make it well suited to its position as the most popular programming language in the world.

JavaScript popularized two paradigms in mainstream programming that I collectively call "The Two Pillars of JavaScript": Prototypal OO and Functional programming.

Prototpal OO

JavaScript's prototypal OO comes in three varieties:

  • Differential inheritance (delegate prototypes)
  • Concatenative inheritance (exemplar prototypes)
  • Functional inheritance (function prototypes)

Functional Programming

ES5 brought functional Array extras to JavaScript. You've probably had a chance to use features like .map(), .filter(), and .reduce(), but there's a bit more you should know about functional programming. Learn about the significance of immutability, function composition, functors, currying and more as we explore functional programming in JavaScript and its relationship to reactive programming with libraries like RxJS and React.

The two pillars are essential concepts to learn because they're widely used in industry leading apps from companies like Facebook, NetFlix, Instagram, PayPal, and Microsoft. Why not put them to work for you, too?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.