Click here to Skip to main content
15,886,110 members
Articles / Programming Languages / Javascript

Book Review: JavaScript Promises Essentials

Rate me:
Please Sign up or sign in to vote.
0.00/5 (No votes)
23 Nov 2014CPOL3 min read 9.1K   2   2
Book Review : JavaScript Promises Essentials

This article is in the Book Review chapter. Reviews are intended to provide you with information on books - both paid and free - that others consider useful and of value to developers. Read a good programming book? Write a review!

Introduction

  • Today, I am going to Review a Book which has been published by Packt Publishing.
  • The Book is JavaScript Promises Essentials.
  • The Author of this book is Rami Sarieddine.
JavaScript Promises Essentials

Table of Contents *

JavaScript Promises Essentials

What You Will Learn From This Book ? *

  • Implement asynchronous programming in JavaScript
  • Get acquainted with the JavaScript Promises API
  • Choose the right JavaScript libraries to use callbacks in a non-compatible platform
  • Write chained asynchronous operations that are easy to manage
  • Master WinJS Promises for developing Windows applications
  • Differentiate between various implementations of promises in JavaScript
  • Put promises into action in your applications
  • Catch and handle errors effectively in asynchronous operations
  • Explore browser support and platform compatibility for JavaScript promises

Who This Book Is For ? *

  • If you are a JavaScript developer working with asynchronous operations and want to know more about promises, then this book is ideal for you.
  • Having a detailed explanation of JavaScript promises will be perfect as your next step towards adopting this new standard and using the API in your web and JavaScript applications.

Pros

  • There was never a time before when JavaScript had been this popular. Same popularity for the JavaScript promises as well. So this book will give what you need to know about the Javascript Promises.
  • I have read the first chapter of this book and it's a really good one. So I'm going to share my thoughts about this chapter with you. Let's start.
  • In the first section, the author has explained what is Asynchronous programming in JavaScript and has described the history of AJAX and the importance of non blocking UI. This section explains about the Issues that developers face with traditional approaches to handle, asynchronous operations. After that, about the callbacks. In this section, we can learn about the callbacks. More importantly, it's by using very simple examples where anyone can understand.
  • Then he moved into the Introduction to JavaScript Promises section. In this section, we can learn about the promises, its states, how it can be used and the usage of promises chaining. All are explained by using simple examples and step by step explanations. It's very cool.
  • In the last section of the first chapter, the author has explained why can't we just use a callback and why we should care about promises when comparing it to the common way of doing things asynchronously. Simple examples have been provided for understanding the concepts more easily even for the beginner level of the JavaScript developers which is really great.
  • Some of the code snippets have been put on JsFiddle which is really cool.
  • This is a concise book (~ 90 pages), directly targeted to the most needed materials about the JavaScript Promises.

Cons

  • I have seen a typo issue in the first chapter: "Additionally, callbacks are lightweight since we need to add extra libraries." It should be corrected as "Additionally, callbacks are lightweight since there is no need to add extra libraries."
  • The other complaint that I have about this book is with the formatting of the code snippets. Currently, it's in Black and White (mono) way. As a reader, I would like to have a color syntax for the code snippets. If so, it'll give a huge value for Packt's books.

Reference *

Do You Need to Buy this Book ?

Conclusion

  • I would like to recommend this book to all the JavaScript developers who are willing to learn Promises in depth.
  • I have to put a special thanks for Packt Publishers who gave me this opportunity to review this book. The Packt Publishers are doing an outstanding job in the Software Developer world by publishing this kind of up-to-date books in very specific areas. Keep up the good work.
  • Thanks to the Author Rami Sarieddine as well for writing this kind of Instant category book. Keep up the good work.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior) Freelancer
Sri Lanka Sri Lanka
Sampath Lokuge holds a Bachelor of Science degree in the Mathematics and Computer Science at the University of Colombo, Sri Lanka.

He possesses over 8 years of experience in constructing web applications using Microsoft Technologies including ASP.net MVC, C#, SQL Server, Web API, Entity Framework and also other web technologies such as HTML5, CSS3,jQuery and AngularJS.

Sampath has earned Microsoft certifications such as MCP, MCAD, MCSD and MCTS and very recently he has completed MS (Microsoft Specialist) for MVC 4 and MCSD (Windows Store Apps Using HTML5).

Besides that, he is an active blogger, writing about web and mobile development issues and promoting best practices.He also actively participates in online communities such as Code Project and StackOverflow.He himself is handling three communities, which are ASP.net MVC 5 With C# on Linkedin,Entity Framework 6 on G+ and Hybrid Mobile App with WinJS on Facebook.

Now, I am a 100% Freelancer. Smile | :)

Tech Blogs


Sampath Lokuge Tech Universe

Communities which I'm Handling :


Entity Framework 6

ASP.net MVC 5 With C#

Hybrid Mobile App with WinJS

Comments and Discussions

 
QuestionQuestion Pin
Nitij25-Nov-14 20:49
professionalNitij25-Nov-14 20:49 
AnswerRe: Question Pin
Sampath Lokuge21-Dec-14 3:39
Sampath Lokuge21-Dec-14 3:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.