Начать новую тему Ответить на тему
Статистика раздачи
Размер: 4.75 МБ | | Скачали: 0
Сидеров: 0  [0 байт/сек]    Личеров: 0  [0 байт/сек]
Пред. тема | След. тема 

Автор
Сообщение

Ответить с цитатой 

Mastering JavaScript Promises

Год: 2015
Автор: Muzzamil Hussain
Издательство: Packt Publishing
ISBN: 978-1-78398-550-0
Язык: Английский
Формат: PDF/EPUB/MOBI
Качество: Изначально компьютерное (eBook)
Интерактивное оглавление: Да
Количество страниц: 188
Описание:

About This Book

Look into Promises in-depth, learn how they are utilized in different modern web programming technologies, and gain the knowledge and confidence to apply them in your next venture
Explore how different functions are applying Promises to achieve different goals
A step-by-step guide to implementing Promises in different frameworks including Node.js, Angular.js, and jQuery

Who This Book Is For

This book is for all the software and web engineers wanting to apply the promises paradigm to their next project and get the best outcome from it. This book also acts as a reference for the engineers who are already using promises in their projects and want to improve their current knowledge to reach the next level. To get the most benefit from this book, you should know basic programming concepts, have a familiarity with JavaScript, and a good understanding of HTML.

What You Will Learn

Get a complete overview of the promises paradigm and its advantages
Discover the programming models that are used to build JavaScript
Execute the asynchronous programming model in JavaScript and understand its usefulness in modern web development
Employ promises in JavaScript to boost your project performance
Apply the best practices of promises in JavaScript to your platform of choice
Manage your JavaScript code in a more professional and maintainable manner
Utilize promises effectively and efficiently in different domains and disciplines of software engineering
Implement promises in WinRT, Node.js, jQuery, and Angular.js

In Detail

JavaScript is a tool for the gurus who create highly useful applications, but it has some limitations. To overcome these limitations, a concept called JavaScript promises is rising rapidly in popularity. Promises makes writing complex logics more manageable and easy.

This book starts with an introduction to JavaScript promises and how it has evolved over time. You will learn the JavaScript asynchronous model and how JavaScript handles asynchronous programming. Next, you will explore the promises paradigm and its advantages.

Finally, this book will show you how to implement promises in platforms used in project development including WinRT, jQuery, and Node.js.
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
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
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
Chapter 4: Implementing Promises
How to implement promises
Implementations in Java
Say hello to JDeferred
Mechanics of JDeferred
Ultimate JDeferred
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
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
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
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
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
Index
Правила, инструкции, FAQ!!!
Торрент   Скачать торрент Магнет ссылка
Скачать торрент
[ Размер 7.54 КБ / Просмотров 67 ]

Статус
Проверен 
 
Размер  4.75 МБ
Приватный: Нет (DHT включён)
.torrent скачан  0
Как залить торрент? | Как скачать Torrent? | Ошибка в торренте? Качайте магнет  


     Отправить личное сообщение
   
Страница 1 из 1
Показать сообщения за:  Поле сортировки  
Начать новую тему Ответить на тему


Сейчас эту тему просматривают: нет зарегистрированных пользователей и гости: 1


Вы не можете начинать темы
Вы не можете отвечать на сообщения
Вы не можете редактировать свои сообщения
Вы не можете удалять свои сообщения
Вы не можете добавлять вложения

Перейти:  
Ресурс не предоставляет электронные версии произведений, а занимается лишь коллекционированием и каталогизацией ссылок, присылаемых и публикуемых на форуме нашими читателями. Если вы являетесь правообладателем какого-либо представленного материала и не желаете чтобы ссылка на него находилась в нашем каталоге, свяжитесь с нами и мы незамедлительно удалим её. Файлы для обмена на трекере предоставлены пользователями сайта, и администрация не несёт ответственности за их содержание. Просьба не заливать файлы, защищенные авторскими правами, а также файлы нелегального содержания!