Index
A
- Android Deferred Object
- defining / A few words about Android Deferred Object
- object success, for task / Use case 1 – object success and failure callbacks for a task
- failure callbacks, for task / Use case 1 – object success and failure callbacks for a task
- URL / Use case 1 – object success and failure callbacks for a task
- several promises, merging / Use case 2 – merging several promises
- Angular.js
- evolution / The evolution of Angular.js
- using / The structure of the Angular.js document
- defining / Getting started with Angular.js
- URL / Getting started with Angular.js
- using, on local machine / How to use Angular.js on your local machine
- promises, implementing / Implementing promises in Angular.js
- concurrency / Concurrency in Angular.js
- Angular.js directive
- Angular.js document
- structure / The structure of the Angular.js document
- Angular.js file
- creating / Creating your first Angular.js file
- HTML 5 doc, creating / Step 1 – create the HTML 5 doc
- JavaScript file, adding / Step 2 – add the JavaScript file to it
- applications logic
- decoupling / Decoupling events and applications logic
- arguments
- Asynchronous JavaScript and XML (AJAX) / The fall and rise of JavaScript
- asynchronous programming
- using, problems / Problems when using asynchronous programming
- asynchronous programming model
- about / The asynchronous programming model
- densities, defining with / Densities with an asynchronous programming model
- blocking programs, defining / Why do we need to block the task?
- threads, using / Why not use some more threads?
- defining / Summing up – the asynchronous programing model
B
- base repository, WinJS
- URL / WinJS on GitHub
- binding / Future, promise, and delay
- BlockingQueue interface
- implementations / Queues
- bootstrap
- URL / Supplying scope data
C
- callback
- about / Callback, revisited
- callback-based promise
- versus Q-based promise / Callback-based promises versus Q-based promises
- callbacks, in JavaScript
- function, blocking in humans / Blocking functions
- working / The mechanism of a callback function in JavaScript
- basic rules, for implementing / Basic rules to implement callbacks
- handling / Handling callback hell
- call stream / Promise pipelining
- compatibility, event
- components, java.util.concurrent
- about / The core components of java.util.concurrent
- Executor / Executor
- Queues / Queues
- composed promise
- computer animation
- about / Computer animation and in 3D graphics
- in 3D graphics / Computer animation and in 3D graphics
- computer generated images (CGI)
- Concurrent packages
- classes / Concurrent collections
- CountDownLatch class
- about / Synchronizers
- URL / Synchronizers
- createFileAsync method
- CSS3
- about / HTML5, CSS3, and JavaScript
- CyclicBarrier class
- about / Synchronizers
- URL / Synchronizers
D
- $.deferred().promise(), in jQuery
- about / $.Deferred().promise() in jQuery
- $.Deferred process
- about / Your own $.Deferred process
- Database Administrator (DBA)
- about / NoSQL databases
- deferred
- about / Deferred
- working / How do promise and deferred relate to each other?
- Deferred, in jQuery
- about / Deferred in jQuery
- deferred.notify()
- about / deferred.notify()
- deferred objects
- delay
- distribution history, WinJS
- WinJS 1.0 / WinJS – its purpose and a distribution history
- WinJS 2.0 for Windows 8.1 / WinJS – its purpose and a distribution history
- WinJS Xbox 1.0 for Windows / WinJS – its purpose and a distribution history
- WinJS Phone 2.1 for Windows Phone 8.1 / WinJS – its purpose and a distribution history
- WinJS 3.0 / WinJS – its purpose and a distribution history
- DOM / DOM – event capture and event bubbling
- DOM 2 event specification
- URL / W3C events
- done() function
- done() method
- about / Joining promises with $.when
E
- ECMAScript 6 (ECMA 262)
- about / ECMAScript 6 (ECMA 262)
- elements, Angular.js
- about / Key elements of Angular.js
- scope data, supplying / Supplying scope data
- data, filtering / Filtering data
- scopes, controlling / Controlling scopes
- views, routing / Routing views
- environment
- selecting / Choice of environment
- setting up, for Node.js / Setting up the environment for Node.js
- error
- and success, combination / The combination of success and error
- error handling
- about / Error handling
- error handling, in promise
- URL / Keep it clean
- event handling
- events
- about / The events
- event handling, mechanism / The mechanism of event handling
- functions, triggering in response to events / Triggering functions in response to events
- types / Types of events in JavaScript
- interface events / Interface events
- mouse events / Mouse events
- form events / Form events
- W3C events / W3C events
- Microsoft events / Microsoft events
- Mozilla events / Mozilla events
- decoupling / Decoupling events and applications logic
- events, in JavaScript
- defining / Types of events in JavaScript
- events handlers
- about / A list of the most common events handlers
- Onload / A list of the most common events handlers
- Onunload / A list of the most common events handlers
- Onerror / A list of the most common events handlers
- onclick / A list of the most common events handlers
- ondblclick / A list of the most common events handlers
- onmousedown / A list of the most common events handlers
- onmouseup / A list of the most common events handlers
- onmouseover / A list of the most common events handlers
- Onmouseout / A list of the most common events handlers
- onkeydown / A list of the most common events handlers
- onkeyup / A list of the most common events handlers
- Onkeypress / A list of the most common events handlers
- onfocus / A list of the most common events handlers
- onblur / A list of the most common events handlers
- onselect / A list of the most common events handlers
- onsubmit / A list of the most common events handlers
- onreset / A list of the most common events handlers
- onchange / A list of the most common events handlers
- URL / A list of the most common events handlers
- example, jQuery
- about / A sample example
- selectors / Selectors
- event methods / Event methods
- exception handling, in promise
- best practices / Best practices to handle exceptions in promise
- exceptions
- about / Promises and exceptions
- Exchanger class
- about / Synchronizers
- URL / Synchronizers
- ExecutiveService interface
- about / Executor
- Executor
- using, for ExecutoreService / ExecutorService
- ExecutorService interface
- shutdown() method / ExecutorService
- shutdownnow() method / ExecutorService
- URL / ExecutorService
F
- fail method
- about / The fail method
- Fibonacci series / The Fibonacci series
- First In First Out (FIFO)
- about / Queues
- fulfilling / Future, promise, and delay
G
- GitHub
- URL / WinJS on GitHub
H
- harmony$generators
- about / harmony:generators
- URL / harmony:generators
- Fibonacci series / The Fibonacci series
- HTML5
- about / HTML5, CSS3, and JavaScript
I
- implementations, in Java
- about / Implementations in Java
- input/output (I/O) / Google's contributions to JavaScript
- integration of promise, with WT
- need for / The need for integrating promise with WT
- interactive promises
- about / Interactive promises
- get function / Interactive promises
- call function / Interactive promises
- Internet of Things
- about / Internet of Things
J
- Java
- about / Implementations in Java
- util package / The util package of Java
- used, for implementing promise / The mechanics of Java to implement a promise
- java.util.concurrent package, components / The core components of java.util.concurrent
- timing / Timing
- synchronizers / Synchronizers
- concurrent collections / Concurrent collections
- JavaScript
- fall / The fall and rise of JavaScript
- Google's contributions / Google's contributions to JavaScript
- about / HTML5, CSS3, and JavaScript
- defining / From where it started?
- before jQuery / JavaScript before and after jQuery
- after jQuery / JavaScript before and after jQuery
- JavaScript asynchronous model
- learning / Learning the JavaScript asynchronous model
- implementing / How JavaScript implements an asynchronous model
- callbacks, in JavaScript / Callbacks in JavaScript
- JavaScript library
- URL / Internet of Things
- JDeferred
- defining / Say hello to JDeferred, Mechanics of JDeferred
- Android Deferred Object / A few words about Android Deferred Object
- features / Features of JDeferred
- used, for code / Playing with the code using JDeferred
- Deferred object and promise / Deferred object and promise
- Deferred Manager / Deferred Manager
- runnable and callable / Runnable and callable
- wait() function / wait() and waitSafely()
- waitSafely() function / wait() and waitSafely()
- filters / Filters
- pipes / Pipes
- promise paradigm, implementing / Ultimate JDeferred
- jQuery
- defining / From where it started?
- about / Behind the scenes – how does jQuery work?, How to use jQuery
- working / Behind the scenes – how does jQuery work?
- using / How to use jQuery
- syntax / The syntax
- examples / The syntax
- URL / The syntax
- caching / Caching in jQuery
- Promises, defining in / The solution – introducing promises in jQuery
- promise, projecting in / Projecting a promise in jQuery
- promises, using / The advent of promises in jQuery
- JS
- about / The need for integrating promise with WT
- drawbacks / The need for integrating promise with WT
M
- MEAN stack
- about / The MEAN stack
- Microsoft events
- URL / Microsoft events
- MongoDB
- about / NoSQL databases
- Mozilla events
- URL / Mozilla events
- multithreaded synchronous model / The multithreaded synchronous model
- MVC (model view controller)
- about / The evolution of Angular.js
N
- nested calls
- dealing with / Dealing with the nested calls
- nested promises
- Node.js
- evolution / The evolution of Node.js
- defining / A brief introduction to Node.js, Things we learned so far, Familiarizing Node.js – the Q way
- downloading / Download and install Node.js
- URL / Download and install Node.js
- installing / Download and install Node.js
- environment, setting up for / Setting up the environment for Node.js
- with Q library / Node.js with the Q library
- Q.nfcall() / Familiarizing Node.js – the Q way
- Q.nfapply() / Familiarizing Node.js – the Q way
- Q utilities, used for / Q utilities for Node.js
- Node.js, on GitHub
- NoSQL databases
- about / NoSQL databases
- notify
- NPM
- about / Node Package Manager – NPM
- URL / Node Package Manager – NPM
O
- object handling promises
- about / Object handling promises
- decomposition, of primitive access / Decomposition of primitive access
- observer/push-pub pattern
- drawbacks / The drawbacks of observer/push-pub
- observer pattern
- defining / A formal definition of observer
- push and pull model / The push and pull model
- online repository, of WinJS
- about / WinJS on GitHub
- | operator
- about / Filtering data
P
- Phaser class
- about / Synchronizers
- URL / Synchronizers
- pipe function
- about / Projecting a promise in jQuery
- pPromises
- joining, with $.when / Joining promises with $.when
- programming models
- about / Programming models
- single-threaded synchronous model / The single-threaded synchronous model
- multithreaded synchronous model / The multithreaded synchronous model
- asynchronous programming model / The asynchronous programming model
- promise
- about / What is a promise?, Promise
- need for, in JS / Why do we need promise in JS?
- states / States of a promise
- browser compatibility / Browser compatibility
- working / How do promise and deferred relate to each other?
- state value / The states and return values of a promise
- return value / The states and return values of a promise
- selecting, considerations / Considerations while choosing a promise
- implementing, in Java / The implementation of promise by Java
- creating, Q.Promise() used / Q.Promise() – another way to create promises
- aborting / Aborting a promise
- used, as callback handle / Promise as a handle for callback
- routing / Route your promise
- projecting, in jQuery / Projecting a promise in jQuery
- Promise
- about / The promises object
- promise, as event emitters
- about / Promises as event emitters
- URL / Promises as event emitters
- promise, as proxy
- about / Promise as a proxy
- promise, states
- unfulfilled promise / The states and return values of a promise
- fulfilled promise / The states and return values of a promise
- failed promise / The states and return values of a promise
- promise-based actions
- creating / Making promise-based actions
- Promise API
- standard behaviors / Standard behaviors of the Promise API
- promise chain
- promise implementation, by Java
- defining / The implementation of promise by Java, Summing up Java and Promises.js
- CompletionService interface / CompletionService
- ExecutorService interface / ExecutorService
- future / Future
- Delay / Delay and DelayedQueue
- DelayedQueue / Delay and DelayedQueue
- FutureTask / FutureTask
- promise pipelining
- about / Promise pipelining
- Promises
- progress, making with / Making progress with promises
- defining, in jQuery / The solution – introducing promises in jQuery
- promises
- implementing / What promises prescribed not to do, How to implement promises
- callbacks, handling / Avoiding getting into callback hell
- unnamed promises, avoiding / Avoiding the use of unnamed promises
- about / Promises and exceptions, How to implement promises
- jumpstarting / Jumpstarting promises
- implementing, in WT / Writing a function that returns a promise
- change handler, adding for input element / Adding a change handler for input elements
- chaining / Chaining and nesting promises
- nesting / Chaining and nesting promises
- implementing, in Angular.js / Implementing promises in Angular.js
- using, in jQuery / The advent of promises in jQuery
- promises, used in Angular.js
- schematics / The schematics of using promises in Angular.js
- Promises.js
- promises object
- about / The promises object
- properties / The promises object
- proxy, of promise
- functions / Promise as a proxy
- publisher/subscriber
- about / The publisher/subscriber
- observer pattern, defining / A brief account of the observer pattern
- pull model
- about / The push and pull model
- push and pull model
- observer/push-pub pattern / The advent of observer/push-pub
- push model
- about / The push and pull model
Q
- Q
- sequences / Sequences in Q
- combination / Combination in Q
- errors, handling in Node.js / How to handle errors in Q in Node.js
- .delay() / A few words on delay, timeout, and notify
- .notify() / A few words on delay, timeout, and notify
- deferred.notify() / A few words on delay, timeout, and notify
- static methods / Static methods of Q
- utilities, for Node.js / Q utilities for Node.js
- Q-based promise
- versus callback-based promise / Callback-based promises versus Q-based promises
- Q.delay()
- about / Q.delay()
- Q.Promise()
- used, for creating promise / Q.Promise() – another way to create promises
- Q.timeout()
- about / Q.timeout()
- Q library
- about / Moving ahead with Q
- installing / Moving ahead with Q
- propagation / Propagation in Q
- Q support
- for tracing stacks / Q support for tracing stacks
R
- Raspberry Pi
- about / Internet of Things
- read-only views
- about / Read-only views
- ready documents
- submitting / Is your document ready to submit?
- real-time communication, in JavaScript
- resolving / Future, promise, and delay
- reusable wrappers
- creating / Unbinds and its solution
- Q.nbind / Unbinds and its solution
- Q.denodeify / Unbinds and its solution
S
- safe approach, $http
- defining / The safe approach
- Semaphore class
- about / Synchronizers
- URL / Synchronizers
- sequencing patterns
- about / Common sequencing patterns
- stacked / Stacked
- parallel / Parallel
- sequential / Sequential
- server
- simple node server
- about / A simple node server
- single-threaded synchronous model / The single-threaded synchronous model
- software prerequisites
- about / Software prerequisites
- environment / Environment you need before getting started
- spread function
- about / Combination in Q
- startAsync
- used, for downloading web page to file / Example 1B – downloading a web page to a file using startAsync
- startAsync method
- states, of promise
- pending / States of a promise
- fulfilled / States of a promise
- rejected / States of a promise
- success
- and error, combination / The combination of success and error
T
- temporary storage
- about / Caching in jQuery
- then() function
- then method
- timeout
- two asynchronous functions
- used, for downloading web page to file / Example 1A – downloading a web page to a file using two asynchronous functions
U
- unbinds
- defining / Unbinds and its solution
- util
- about / Timing
V
- V8 engine
- about / The V8 engine – the mechanics, The V8 engine in Google Chrome
- in Google Chrome / The V8 engine in Google Chrome
- view() method
- defining / View revisited
- promise.post(name) / View revisited
- promise.send(name) / View revisited
W
- $.when
- pPromises, joining with / Joining promises with $.when
- WebGL
- WinJS
- defining / A little detail about WinJS
- distribution history, defining / WinJS – its purpose and a distribution history
- on GitHub / WinJS on GitHub
- URL / WinJS on GitHub
- WinJS, TypeScript
- URL / WinJS on GitHub
- WinJS browser, JS
- URL / WinJS on GitHub
- WinJS modules, JS
- URL / WinJS on GitHub
- WinRT
- about / An introduction to WinRT
- evolution / The evolution of WinRT
- WT
- with HTML5 / WT with HTML5, CSS3, and JavaScript
- with CSS3 / WT with HTML5, CSS3, and JavaScript
- with JavaScript / WT with HTML5, CSS3, and JavaScript
X
- XAMPP server
- xhr function