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.
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.
Full of Features
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.
- Asynchronous Module Definition (AMD). AMD address the need to standardize a way to define modules, not only to make them recognizable, but so you can define their requirements.
- Revealing Modular Pattern Into Asynchronous Modules. Learn how you can take your revealing module pattern and use them as asynchronous modules.
- Inheritance Using Revealing Module Pattern. You will learn how to implement inheritance using the revealing module pattern.
- Using the
- Asynchronous Programming Using Promises. This introduces you to the idea of promises. A Promise is an object that basically represents a process that is or will take place at some point in time, but allows you to register callbacks to it for when the process gets terminated or completed.
- Promises for Asynchronous Operations Using jQuery. Shows how you can use jQuery’s implementation of promises based around the jQuery.Deferred object.
- Using Q Promises Inside a RequireJS AMD Module. Combine long running functions inside your module.
- Promises for Asynchronous Operations Using jQuery. implementation of promises is based around the jQuery.Deferred object.
- Asynchronous Script Execution. For pages using process-intensive scripts, you can get quicker page loading with the async attribute.
Sample code for these posts is available on the DevDays GitHub: