Mastering Dart

Master the art of programming high-performance applications with Dart

Mastering Dart

This ebook is included in a Mapt subscription
Sergey Akopkokhyants

1 customer reviews
Master the art of programming high-performance applications with Dart
$29.99
$49.99
RRP $29.99
RRP $49.99
eBook
Print + eBook
Subscribe and access every Packt eBook & Video.
 
  • 4,000+ eBooks & Videos
  • 40+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 
Preview in Mapt

Book Details

ISBN 139781783989560
Paperback346 pages

Book Description

Starting with a discussion about the basic features of Dart, we will dive into the more complicated concepts such as generics, annotation with reflection, errors and exceptions, which will help us improve our code. Moving on, you will learn how and when to create objects and also advanced techniques that will help you execute asynchronous code. You will also learn about the collection framework and how to communicate with the different programs written in JavaScript using Dart.

This book will show you how to add internalization support to your web applications and how i18n and l10n access can be embedded into your code to design applications that can be localized easily. You will be shown how to organize client-to-server communication and how different HTML5 features can be used in Dart. Finally, this book will show you how you can store data locally, break the storage limit, and prevent security issues in your web application.

Table of Contents

Chapter 1: Beyond Dart's Basics
Modularity and a namespace
Functions and closures in different scopes
Classes and mixins
Methods and operators
Summary
Chapter 2: Advanced Techniques and Reflection
Generics
Errors versus exceptions
Annotations
Reflection
Summary
Chapter 3: Object Creation
Creating an object
Summary
Chapter 4: Asynchronous Programming
Call-stack architectures versus event-driven architectures
Future
Zones
Isolates
Summary
Chapter 5: The Stream Framework
Why you should use streams
Single-subscription streams versus broadcast streams
An overview of the stream framework API
Summary
Chapter 6: The Collection Framework
A Dart collection framework
Ordering of elements
Collections and generics
The collection class hierarchy
The Iterable interface
The Iterable interface
BidirectionalIterator
The collection classes
Unmodifiable collections
Choosing the right collection
Summary
Chapter 7: Dart and JavaScript Interoperation
Interoperation at a glance
The dart:js library
Type conversion
JsObject and instantiation
JsFunction and the this keyword
Dart with jQuery
Summary
Chapter 8: Internalization and Localization
The key principles
The Intl library
Internationalizing your web application
Extracting messages
Using Google Translator Toolkit
Using translated messages
Summary
Chapter 9: Client-to-server Communication
Communication at a glance
Hypertext Transfer Protocol
AJAX polling request
AJAX long polling request
WebSocket
Summary
Chapter 10: Advanced Storage
Cookies
Web Storage
Web SQL
IndexedDB
Summary
Chapter 11: Supporting Other HTML5 Features
The notification APIs
The native drag-and-drop APIs
The geolocation APIs
Canvas
Summary
Chapter 12: Security Aspects
Web security
Securing a server
Securing a client
Security best practices
Summary

What You Will Learn

  • Build applications easily using the event-driven paradigm
  • Familiarize yourself with asynchronous programming
  • Understand when and how to use collections to store and manipulate groups of objects
  • Use Dart and JavaScript together to build web applications
  • Add internalization and localization support to your application to improve its performance
  • Organize client-to-server communication and discover the protocols for specific scenarios
  • Detect and use HTML5 features that will help you deliver rich, cross-platform content
  • Discover different techniques to secure your web application from unauthorized users

Authors

Table of Contents

Chapter 1: Beyond Dart's Basics
Modularity and a namespace
Functions and closures in different scopes
Classes and mixins
Methods and operators
Summary
Chapter 2: Advanced Techniques and Reflection
Generics
Errors versus exceptions
Annotations
Reflection
Summary
Chapter 3: Object Creation
Creating an object
Summary
Chapter 4: Asynchronous Programming
Call-stack architectures versus event-driven architectures
Future
Zones
Isolates
Summary
Chapter 5: The Stream Framework
Why you should use streams
Single-subscription streams versus broadcast streams
An overview of the stream framework API
Summary
Chapter 6: The Collection Framework
A Dart collection framework
Ordering of elements
Collections and generics
The collection class hierarchy
The Iterable interface
The Iterable interface
BidirectionalIterator
The collection classes
Unmodifiable collections
Choosing the right collection
Summary
Chapter 7: Dart and JavaScript Interoperation
Interoperation at a glance
The dart:js library
Type conversion
JsObject and instantiation
JsFunction and the this keyword
Dart with jQuery
Summary
Chapter 8: Internalization and Localization
The key principles
The Intl library
Internationalizing your web application
Extracting messages
Using Google Translator Toolkit
Using translated messages
Summary
Chapter 9: Client-to-server Communication
Communication at a glance
Hypertext Transfer Protocol
AJAX polling request
AJAX long polling request
WebSocket
Summary
Chapter 10: Advanced Storage
Cookies
Web Storage
Web SQL
IndexedDB
Summary
Chapter 11: Supporting Other HTML5 Features
The notification APIs
The native drag-and-drop APIs
The geolocation APIs
Canvas
Summary
Chapter 12: Security Aspects
Web security
Securing a server
Securing a client
Security best practices
Summary

Book Details

ISBN 139781783989560
Paperback346 pages
Read More
From 1 reviews

Read More Reviews