
DART Essentials
Beschreibung
- Use existing JavaScript libraries in Dart and call Dart code from JavaScript
- Handle asynchronous calls with FutureBased API and use HTML5 features in Dart
- Write example apps with Web Components and polymer.dart
- Develop web apps using AngularDart
- Test apps with unit tests and analyze them with Observatory
- Explore CLI apps, WebSocket servers, and serverside scripting in Dart
- Extend the Standalone Dart VM with C/C++ native extensions
Who this book is forThis 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.
Alle Preise
Weitere Details
Weitere Ausgaben
Inhalt
- Cover
- Copyright
- Credits
- About the Author
- About the Reviewers
- www.PacktPub.com
- Table of Contents
- Preface
- Chapter 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
- Chapter 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
- Chapter 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
- Chapter 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
- Chapter 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
- Chapter 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
- Chapter 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
- Chapter 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
- Chapter 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
Systemvoraussetzungen
Dateiformat: ePUB
Kopierschutz: Adobe-DRM (Digital Rights Management)
Systemvoraussetzungen:
- Computer (Windows; MacOS X; Linux): Installieren Sie bereits vor dem Download die kostenlose Software Adobe Digital Editions (siehe E-Book Hilfe).
- Tablet/Smartphone (Android; iOS): Installieren Sie bereits vor dem Download die kostenlose App Adobe Digital Editions oder die App PocketBook (siehe E-Book Hilfe).
- E-Book-Reader: Bookeen, Kobo, Pocketbook, Sony, Tolino u.v.a.m. (nicht Kindle)
Das Dateiformat ePUB ist sehr gut für Romane und Sachbücher geeignet – also für „fließenden” Text ohne komplexes Layout. Bei E-Readern oder Smartphones passt sich der Zeilen- und Seitenumbruch automatisch den kleinen Displays an.
Mit Adobe-DRM wird hier ein „harter” Kopierschutz verwendet. Wenn die notwendigen Voraussetzungen nicht vorliegen, können Sie das E-Book leider nicht öffnen. Daher müssen Sie bereits vor dem Download Ihre Lese-Hardware vorbereiten.
Bitte beachten Sie: Wir empfehlen Ihnen unbedingt nach Installation der Lese-Software diese mit Ihrer persönlichen Adobe-ID zu autorisieren!
Weitere Informationen finden Sie in unserer E-Book Hilfe.
Dateiformat: PDF
Kopierschutz: Adobe-DRM (Digital Rights Management)
Systemvoraussetzungen:
- Computer (Windows; MacOS X; Linux): Installieren Sie bereits vor dem Download die kostenlose Software Adobe Digital Editions (siehe E-Book Hilfe).
- Tablet/Smartphone (Android; iOS): Installieren Sie bereits vor dem Download die kostenlose App Adobe Digital Editions oder die App PocketBook (siehe E-Book Hilfe).
- E-Book-Reader: Bookeen, Kobo, Pocketbook, Sony, Tolino u.v.a.m. (nicht Kindle)
Das Dateiformat PDF zeigt auf jeder Hardware eine Buchseite stets identisch an. Daher ist eine PDF auch für ein komplexes Layout geeignet, wie es bei Lehr- und Fachbüchern verwendet wird (Bilder, Tabellen, Spalten, Fußnoten). Bei kleinen Displays von E-Readern oder Smartphones sind PDF leider eher nervig, weil zu viel Scrollen notwendig ist.
Mit Adobe-DRM wird hier ein „harter” Kopierschutz verwendet. Wenn die notwendigen Voraussetzungen nicht vorliegen, können Sie das E-Book leider nicht öffnen. Daher müssen Sie bereits vor dem Download Ihre Lese-Hardware vorbereiten.
Bitte beachten Sie: Wir empfehlen Ihnen unbedingt nach Installation der Lese-Software diese mit Ihrer persönlichen Adobe-ID zu autorisieren!
Weitere Informationen finden Sie in unserer E-Book Hilfe.