舉報

會員
Mastering JavaScript Promises
Muzzamil Hussain 著
更新時間:2021-07-16 13:47:09
開會員,本書免費讀 >
最新章節:
Index
Thisbookisforallthesoftwareandwebengineerswantingtoapplythepromisesparadigmtotheirnextprojectandgetthebestoutcomefromit.Thisbookalsoactsasareferencefortheengineerswhoarealreadyusingpromisesintheirprojectsandwanttoimprovetheircurrentknowledgetoreachthenextlevel.Togetthemostbenefitfromthisbook,youshouldknowbasicprogrammingconcepts,haveafamiliaritywithJavaScript,andagoodunderstandingofHTML.
最新章節
- Index
- Summary
- NoSQL databases
- Computer animation and in 3D graphics
- Internet of Things
- Real-time communication in JavaScript
品牌:中圖公司
上架時間:2021-07-16 11:13:46
出版社:Packt Publishing
本書數字版權由中圖公司提供,并由其授權上海閱文信息技術有限公司制作發行
- Index 更新時間:2021-07-16 13:47:09
- Summary
- NoSQL databases
- Computer animation and in 3D graphics
- Internet of Things
- Real-time communication in JavaScript
- The MEAN stack
- harmony:generators
- ECMAScript 6 (ECMA 262)
- Chapter 9. JavaScript – The Future Is Now
- Summary
- The advent of promises in jQuery
- Your own $.Deferred process
- Joining promises with $.when
- Projecting a promise in jQuery
- $.Deferred().promise() in jQuery
- Deferred in jQuery
- The solution – introducing promises in jQuery
- JavaScript before and after jQuery
- A sample example
- Caching in jQuery
- The syntax
- How to use jQuery
- Is your document ready to submit?
- Behind the scenes – how does jQuery work?
- From where it started?
- Chapter 8. Promises in jQuery
- Summary
- Route your promise
- The safe approach
- The combination of success and error
- Concurrency in Angular.js
- Dealing with the nested calls
- Deferred objects or composed promises
- Blindly passing arguments and nested promises
- Promise as a handle for callback
- The schematics of using promises in Angular.js
- Implementing promises in Angular.js
- Key elements of Angular.js
- What would be your preference for the server?
- How to use Angular.js on your local machine
- Creating your first Angular.js file
- Getting started with Angular.js
- The structure of the Angular.js document
- The evolution of Angular.js
- Chapter 7. Promises in Angular.js
- Summary
- Q utilities for Node.js
- Aborting a promise
- View revisited
- Object handling promises
- Making promise-based actions
- Q support for tracing stacks
- Unbinds and its solution
- Familiarizing Node.js – the Q way
- Promise as a proxy
- Static methods of Q
- Q.Promise() – another way to create promises
- Callback-based promises versus Q-based promises
- Getting to the end of a chain of promises
- Making progress with promises
- How to handle errors in Q in Node.js
- Combination in Q
- Sequences in Q
- Chaining and nesting promises
- Propagation in Q
- Moving ahead with Q
- Node.js with the Q library
- Things we learned so far
- A simple node server
- Setting up the environment for Node.js
- Choice of environment
- Node Package Manager – NPM
- Download and install Node.js
- A brief introduction to Node.js
- The evolution of Node.js
- The V8 engine in Google Chrome
- The V8 engine – the mechanics
- Chapter 6. Promises in Node.js
- Summary
- Chaining promises using the then() and done() functions
- Error handling
- Writing a function that returns a promise
- Jumpstarting promises
- Problems when using asynchronous programming
- The need for integrating promise with WT
- WT with HTML5 CSS3 and JavaScript
- HTML5 CSS3 and JavaScript
- WinJS – its purpose and a distribution history
- A little detail about WinJS
- The evolution of WinRT
- An introduction to WinRT
- Chapter 5. Promises in WinRT
- Summary
- Ultimate JDeferred
- Mechanics of JDeferred
- Say hello to JDeferred
- Implementations in Java
- How to implement promises
- Chapter 4. Implementing Promises
- Summary
- Considerations while choosing a promise
- Best practices to handle exceptions in promise
- Promises and exceptions
- What promises prescribed not to do
- Decoupling events and applications logic
- Common sequencing patterns
- The states and return values of a promise
- Interactive promises
- Standard behaviors of the Promise API
- How do promise and deferred relate to each other?
- Deferred
- Promise
- Callback revisited
- Chapter 3. The Promise Paradigm
- Summary
- Summing up – the asynchronous programing model
- The promises object
- The publisher/subscriber
- The events
- The mechanism of a callback function in JavaScript
- Learning the JavaScript asynchronous model
- Programming models
- Chapter 2. The JavaScript Asynchronous Model
- Summary
- Browser compatibility
- How do we keep Promises.js in this book?
- States of a promise
- Future promise and delay
- Software prerequisites
- Why do we need promise in JS?
- What is a promise?
- Where Promises.js came in?
- Google's contributions to JavaScript
- The fall and rise of JavaScript
- Chapter 1. Promises.js
- Preface
- www.PacktPub.com
- About the Reviewers
- About the Author
- Credits
- 版權信息
- 封面
- 封面
- 版權信息
- Credits
- About the Author
- About the Reviewers
- www.PacktPub.com
- Preface
- Chapter 1. Promises.js
- The fall and rise of JavaScript
- Google's contributions to JavaScript
- Where Promises.js came in?
- What is a promise?
- Why do we need promise in JS?
- Software prerequisites
- Future promise and delay
- States of a promise
- How do we keep Promises.js in this book?
- Browser compatibility
- Summary
- Chapter 2. The JavaScript Asynchronous Model
- Programming models
- Learning the JavaScript asynchronous model
- The mechanism of a callback function in JavaScript
- The events
- The publisher/subscriber
- The promises object
- Summing up – the asynchronous programing model
- Summary
- Chapter 3. The Promise Paradigm
- Callback revisited
- Promise
- Deferred
- How do promise and deferred relate to each other?
- Standard behaviors of the Promise API
- Interactive promises
- The states and return values of a promise
- Common sequencing patterns
- Decoupling events and applications logic
- What promises prescribed not to do
- Promises and exceptions
- Best practices to handle exceptions in promise
- Considerations while choosing a promise
- Summary
- Chapter 4. Implementing Promises
- How to implement promises
- Implementations in Java
- Say hello to JDeferred
- Mechanics of JDeferred
- Ultimate JDeferred
- Summary
- Chapter 5. Promises in WinRT
- An introduction to WinRT
- The evolution of WinRT
- A little detail about WinJS
- WinJS – its purpose and a distribution history
- HTML5 CSS3 and JavaScript
- WT with HTML5 CSS3 and JavaScript
- The need for integrating promise with WT
- Problems when using asynchronous programming
- Jumpstarting promises
- Writing a function that returns a promise
- Error handling
- Chaining promises using the then() and done() functions
- Summary
- Chapter 6. Promises in Node.js
- The V8 engine – the mechanics
- The V8 engine in Google Chrome
- The evolution of Node.js
- A brief introduction to Node.js
- Download and install Node.js
- Node Package Manager – NPM
- Choice of environment
- Setting up the environment for Node.js
- A simple node server
- Things we learned so far
- Node.js with the Q library
- Moving ahead with Q
- Propagation in Q
- Chaining and nesting promises
- Sequences in Q
- Combination in Q
- How to handle errors in Q in Node.js
- Making progress with promises
- Getting to the end of a chain of promises
- Callback-based promises versus Q-based promises
- Q.Promise() – another way to create promises
- Static methods of Q
- Promise as a proxy
- Familiarizing Node.js – the Q way
- Unbinds and its solution
- Q support for tracing stacks
- Making promise-based actions
- Object handling promises
- View revisited
- Aborting a promise
- Q utilities for Node.js
- Summary
- Chapter 7. Promises in Angular.js
- The evolution of Angular.js
- The structure of the Angular.js document
- Getting started with Angular.js
- Creating your first Angular.js file
- How to use Angular.js on your local machine
- What would be your preference for the server?
- Key elements of Angular.js
- Implementing promises in Angular.js
- The schematics of using promises in Angular.js
- Promise as a handle for callback
- Blindly passing arguments and nested promises
- Deferred objects or composed promises
- Dealing with the nested calls
- Concurrency in Angular.js
- The combination of success and error
- The safe approach
- Route your promise
- Summary
- Chapter 8. Promises in jQuery
- From where it started?
- Behind the scenes – how does jQuery work?
- Is your document ready to submit?
- How to use jQuery
- The syntax
- Caching in jQuery
- A sample example
- JavaScript before and after jQuery
- The solution – introducing promises in jQuery
- Deferred in jQuery
- $.Deferred().promise() in jQuery
- Projecting a promise in jQuery
- Joining promises with $.when
- Your own $.Deferred process
- The advent of promises in jQuery
- Summary
- Chapter 9. JavaScript – The Future Is Now
- ECMAScript 6 (ECMA 262)
- harmony:generators
- The MEAN stack
- Real-time communication in JavaScript
- Internet of Things
- Computer animation and in 3D graphics
- NoSQL databases
- Summary
- Index 更新時間:2021-07-16 13:47:09