Dart:Scalable Application Development
Davy Mitchell Sergey Akopkokhyants Ivo Balbaert更新时间:2021-07-09 18:57:26
最新章节:Indexcoverpage
Dart: Scalable Application Development
Credits
Preface
What this learning path covers
What you need for this learning path
Who this learning path is for
Reader feedback
Customer support
Part 1. Module 1
Chapter 1. Starting the Text Editor
Defining Dart
History of Web scripting
The origins of Dart
Downloading the tools
Building your first application
Debugging a Dart application
Summary
Chapter 2. Advancing the Editor
The next steps for the text editor
Building the dialog package
The command-line app for source code statistics
Building web interfaces with Dart
Compiling to JavaScript
Summary
Chapter 3. Slideshow Presentations
Building a presentation application
Accessing private fields
Mixin' it up
Changing the colors
Adding a date
Timing the presentation
An overview of slides
Handout notes
Summary
Chapter 4. Language Motion and Sound
Going fullscreen
Adding metadata
Exploring the intl package
Working with dates
Animating slides
Playing sound in the browser
Summary
Chapter 5. A Blog Server
The Hello World server example
A blog server
Introducing Dart's server frameworks
Deployment
Load testing
Summary
Chapter 6. Blog Server Advanced
Logging
A blog editor
Caching
Watching the filesystem
XML feed generation
The JSON feed generation
Static generation
Introducing the await and async keywords
Load testing revisited
Summary
Chapter 7. Live Data Collection
Kicking off the earthquake monitoring system
Introducing the data source
Exploring the GeoJSON format
Logging
Saving to the database
Introducing the pgAdmin GUI
Observing the Dart VM internals
Unit testing
Summary
Chapter 8. Live Data and a Web Service
Freeing the data
Creating the web service
Recapping the system so far
Consuming application
Summary
Chapter 9. A Real-Time Visualization
Iteration overview
Application overview
Notifying the user of an update
Plotting the user's location
Sorting the feature list
Documenting Dart code with dartdoc
Summary
Chapter 10. Reports and an API
Recapping the earthquake system
Advancing the REST API
Passing parameters to the API
Posting on the API
Summary
Part 2. Module 2
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
Part 3. Module 3
Chapter 1. Working with Dart Tools
Introduction
Configuring the Dart environment
Setting up the checked and production modes
Rapid Dart Editor troubleshooting
Hosting your own private pub mirror
Using Sublime Text 2 as an IDE
Compiling your app to JavaScript
Debugging your app in JavaScript for Chrome
Using the command-line tools
Solving problems when pub get fails
Shrinking the size of your app
Making a system call
Using snapshotting
Getting information from the operating system
Chapter 2. Structuring Testing and Deploying an Application
Introduction
Exiting from an app
Parsing command-line arguments
Structuring an application
Using a library from within your app
Microtesting your code with assert
Unit testing a Polymer web app
Adding logging to your app
Documenting your app
Profiling and benchmarking your app
Publishing and deploying your app
Using different settings in the checked and production modes
Chapter 3. Working with Data Types
Introduction
Concatenating strings
Using regular expressions
Strings and Unicode
Using complex numbers
Creating an enum
Flattening a list
Generating a random number within a range
Getting a random element from a list
Working with dates and times
Improving performance in numerical computations
Using SIMD for enhanced performance
Chapter 4. Object Orientation
Introduction
Testing and converting types
Comparing two objects
Using a factory constructor
Building a singleton
Using reflection
Using mixins
Using annotations
Using the call method
Using noSuchMethod
Making toJSON and fromJSON methods in your class
Creating common classes for client and server apps
Chapter 5. Handling Web Applications
Introduction
Responsive design
Sanitizing HTML
Using a browser's local storage
Using application cache to work offline
Preventing an onSubmit event from reloading the page
Dynamically inserting rows in an HTML table
Using CORS headers
Using keyboard events
Enabling drag-and-drop
Enabling touch events
Creating a Chrome app
Structuring a game project
Using WebGL in your app
Authorizing OAuth2 to Google services
Talking with JavaScript
Using JavaScript libraries
Chapter 6. Working with Files and Streams
Introduction
Reading and processing a file line by line
Writing to a file
Searching in a file
Concatenating files
Downloading a file
Working with blobs
Transforming streams
Chapter 7. Working with Web Servers
Introduction
Creating a web server
Posting JSON-formatted data
Receiving data on the web server
Serving files with http_server
Using sockets
Using WebSockets
Using secure sockets and servers
Using a JSON web service
Chapter 8. Working with Futures Tasks and Isolates
Introduction
Writing a game loop
Error handling with Futures
Scheduling tasks using Futures
Running a recurring function
Using isolates in the Dart VM
Using isolates in web apps
Using multiple cores with isolates
Using the Worker Task framework
Chapter 9. Working with Databases
Introduction
Storing data locally with IndexedDB
Using Lawndart to write offline web apps
Storing data in MySQL
Storing data in PostgreSQL
Storing data in Oracle
Storing data in MongoDB
Storing data in RethinkDB
Chapter 10. Polymer Dart Recipes
Introduction
Data binding with polymer.dart
Binding and repeating over a list
Binding to a map
Using custom attributes and template conditionals
Binding to an input text field or a text area
Binding to a checkbox
Binding to radio buttons
Binding to a selected field
Event handling
Polymer elements with JavaScript interop
Extending DOM elements
Working with custom elements
Automatic node finding
Internationalizing a Polymer app
Chapter 11. Working with Angular Dart
Introduction
Setting up an Angular app
Using a controller
Using a component
Using formatters as filters
Creating a view
Using a service
Deploying your app
Appendix A. Bibliography
Index
更新时间:2021-07-09 18:57:26