万本电子书0元读

万本电子书0元读

顶部广告

Dart Essentials电子书

售       价:¥

15人正在读 | 0人评论 9.8

作       者:Martin Sikora

出  版  社:Packt Publishing

出版时间:2015-05-25

字       数:112.6万

所属分类: 进口书 > 外文原版书 > 电脑/网络

温馨提示:此类商品不支持退换货,不支持下载打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
This book is targeted at expert programmers in JavaScript who want to learn Dart quickly. Some previous experience with OOP programming in other languages and a good knowledge of JavaScript are assumed.
目录展开

Dart Essentials

Table of Contents

Dart Essentials

Credits

About the Author

About the Reviewers

www.PacktPub.com

Support files, eBooks, discount offers, and more

Why subscribe?

Free access for Packt account holders

Preface

What this book covers

What you need for this book

Who this book is for

Conventions

Reader feedback

Customer support

Downloading the example code

Downloading the color images of this book

Errata

Piracy

Questions

1. Getting Started with Dart

What is Dart?

Why choose Dart?

Installing the Dart SDK

Dart Editor

Writing a greeting for all Dartisans

pubspec.yaml

index.html

The main() function

Running and debugging code in Dartium

Compiling Dart to JavaScript

The Dart language tour

The static checker

Variables

Built-in types

Functions and parameters

Class properties

Class inheritance and abstract classes

Constructors

Exceptions

Using static types

Summary

2. Practical Dart

Optimizing DOM tree manipulations

The documentation search app

The Future-Based API

Using async and await keywords

Async

Await

Creating Ajax requests in Dart

Dart packages

Writing the fuzzy search algorithm

Handling HTML elements

Combining Dart and JavaScript

Using Dart in JavaScript

Using JavaScript in Dart

Dart MythBusters

Summary

3. The Power of HTML5 with Dart

Creating the Reddit Read Later app

Fetching the JSONP data

IndexedDB

Initializing IndexedDB

Fetching stored records

Saving records

Deleting records

Indices

Polishing the application

LocalStorage versus IndexedDB

What about WebSQL?

Music visualizer

Other noteworthy APIs and libraries

Typed lists for fast numeric computing

vector_math

SIMD

WebGL

three.dart

StageXL

Box2D and play_phaser

Isolates and Web Workers

Summary

4. Developing a Mobile App with Dart

300 ms tap delay

Basics of CSS3 transformations

Axes

Hello world in 3D

Nesting 3D transformed elements

A 3D bookshelf with DeviceOrientation events

Position and distance tracker with the GeoLocation API and Google Maps API

Drawing into 2D canvas using onTouch events

Summary

5. Web Components and polymer.dart

Web Components

Shadow DOM

Custom Elements

Template

HTML Imports

The Web Components polyfill for older browsers

Basic HTML Import

Using Shadow DOM

Using Custom Elements

Polymer.dart

Minimalistic custom element in polymer.dart

One-way data binding

Loops and conditions in templates

Two-way data binding

Polymer core and paper elements

A quick look at core-list

What's next?

Summary

6. AngularDart

Installing AngularDart

To-do list with AngularDart

Scope

Extending the to-do list

Model

View

Component

Finishing TodoListComponent

Data bindings

A book component in AngularDart

What is Angular 2.0?

Why is Angular 2.0 not written in Dart?

Performance tips for AngularDart

Avoiding nesting ng-repeat directives

Using track by for ng-repeat

Avoiding excess formatter usage

Not everything needs to be in Angular

Summary

7. Server-side Applications with Dart

The standalone Dart VM

Parsing CLI arguments with the args package

Writing a chat app with the WebSockets server

Client-side WebSockets

Listening to Unix signals and basic I/O operations

Running the server as a background process

Enumerated types

Typedefs

Using MySQL as a storage

Writing an HTTP server with the route package

Using Dart as a full-stack language

Using Apache as a proxy for the Dart HTTP server

Using nginx as a proxy for the Dart HTTP server

Executing Dart as CGI and Apache mod_dart

Summary

8. Testing and Profiling the Dart Code

Testing strategies for web apps

Unit testing

Asynchronous tests

Test groups

Running all tests

Operator overloading and mixins

Operator overloading

Mixins

Testing AngularDart apps

Profiling with the Observatory tool

Summary

9. Writing Native Extensions for the Standalone Dart VM

The structure of native extensions

Writing a minimal native extension

Writing a native fuzzy search implementation

Optimizing our C/C++ code

Multithreading with Dart Isolates

Writing bindings for the exiv2 library

Distributing native extensions

Summary

Index

累计评论(0条) 0个书友正在讨论这本书 发表评论

发表评论

发表评论,分享你的想法吧!

买过这本书的人还买过

读了这本书的人还在读

回顶部