Object JavaScript

Object JavaScript is all about the idea of using JavaScript using an object oriented paradigm. Object-oriented programming is a programming paradigm that uses abstraction to create models based on the real world. It uses several techniques from previously established paradigms: modularity, polymorphism, and encapsulation.

Object-oriented programming may be seen as the design of software using a collection of cooperating objects, as opposed to a traditional view in which a program may be seen as a collection of functions, or simply as a list of instructions to the computer.

Object-oriented programming is intended to promote greater flexibility and maintainability in programming, and is widely popular in large-scale software engineering. By virtue of its strong emphasis on modularity, object oriented code is intended to be simpler to develop and easier to understand later on, lending itself to more direct analysis, coding, and understanding of complex situations and procedures than less modular programming methods.

Objects in JavaScript are kind of two-faced.

From one side, an object is an associative array (called hash in some languages). It stores key-value pairs.

From the other side, objects are used for object-oriented programming, and that’s the story described in these posts.

Prerequisites

This series requires a basic understand of JavaScript. The purpose is to take your JavaScript to a new level. If you want to get started with JavaScript, there are some great tutorials, such as

Full of Features

JavaScript is full of features so that you can create modules, objects, that can be used between projects. Think for a moment about having your own jQuery-like objects for your own projects.

These posts consider both the facilities in the JavaScript language, but also some of the huge assortment of JavaScript libraries that enable modularity, polymorphism, and encapsulation.

So these posts include how you can use Q, RequireJS, jQuery, Knockout, Mustache, and more. You will find explanations, best practices, and step by step on how you can use all these in your projects.

You are encouraged to pick and choose the features that best fit your own needs.

Object JavaScript Posts

jQuery posts

HTML5 features

Sample Code

Sample code for these posts is available on the DevDays GitHub:

Advertisements

2 comments

  1. Pingback: Object JavaScript – ECMAScript 6 Futures Overview | DevDays®
  2. Pingback: Object JavaScript – ECMAScript 6 Code Preview | DevDays®