没有合适的资源?快使用搜索试试~ 我知道了~
首页Web Programming with Dart
Web Programming with Dart is for programmers who want to master the new Dart programming language from Google, and also web developers who want to understand how Dart can integrate perfectly with HTML5 and CSS3. With this book you will understand the ins and outs of the language, how the tools work, and how to get the most from the core functions and libraries. Web Programming with Dart is a practical, example-led book, with case studies involving developing UI animations for the web, working with web services such as JSON, server side Dart applications, and the new Polymer.dart library for advanced HTML UI web components generation.
资源详情
资源评论
资源推荐

Belchin
Juberias
Shelve in
Web Development/JavaScript
User level:
Beginnger–Intermediate
www.apress.com
SOURCE CODE ONLINE
BOOKS FOR PROFESSIONALS BY PROFESSIONALS
®
Web Programming with Dart
Web Programming with Dart is for programmers who want to master the new
Dart programming language from Google, and also web developers who want to
understand how Dart can integrate perfectly with HTML5 and CSS3.
With this book you will understand the ins and outs of the language, how the tools
work, and how to get the most from the core functions and libraries. Web Programming
with Dart is a practical, example-led book, with case studies involving developing UI
animations for the web, working with web services such as JSON, server side Dart
applications, and the new Polymer.dart library for advanced HTML UI web components
generation.
What You’ll Learn:
• Learn the tools, tricks and tips for developing with Dart and it’s advanced
functionality
• Master the most important and useful libraries and create your own libraries
for your projects
• How to work with the newest Polymer.dart library for web component creation
• Create web applications, command-line applications, and server side
applications
• Integrate with HTML5 and CSS3 from Dart to get incredible visual effects and
great web interfaces
• Use asynchronous programming in your web applications and web services
• The latest trend and what everyone is talking about: Web Components
RELATED
9781484 205570
54499
ISBN 978-1-4842-0557-0
www.it-ebooks.info

iii
Contents at a Glance
About the Authors ��������������������������������������������������������������������������������������������������������������� xv
About the Technical Reviewer ������������������������������������������������������������������������������������������ xvii
Acknowledgments ������������������������������������������������������������������������������������������������������������� xix
Introduction ����������������������������������������������������������������������������������������������������������������������� xxi
Chapter 1: Dart’s Flightpath So Far ■ �����������������������������������������������������������������������������������1
Part I: Getting Started ■ ��������������������������������������������������������������������������������� 13
Chapter 2: Setting up Dart Correctly ■ �������������������������������������������������������������������������������15
Part II: Dart Tools ■ ���������������������������������������������������������������������������������������� 31
Chapter 3: Making the Most of the Dart Editor ■ ����������������������������������������������������������������33
Chapter 4: Using Pub and dart2js to Compile Applications to JavaScript ■ �����������������������75
Chapter 5: Application Launches ■ �������������������������������������������������������������������������������������87
Chapter 6: Using the Dart Pub Package Manager ■ �����������������������������������������������������������99
Chapter 7: Optimizing for Dart VM and Dartium ■ ������������������������������������������������������������115
Chapter 8: Cleaning up with Dart Formatter ■ �����������������������������������������������������������������121
Chapter 9: Generating Dart Code Documentation ■ ����������������������������������������������������������125
Chapter 10: Monitoring Your Applications with Observatory ■ ����������������������������������������135
Part III: The Dart Language: Basics ■ ���������������������������������������������������������� 147
Chapter 11: The Dart Comment System ■ �������������������������������������������������������������������������149
Chapter 12: Understanding Operators and Expressions ■ ������������������������������������������������159
Chapter 13: Mastering Dart’s Variables and Data Types ■ �����������������������������������������������171
www.it-ebooks.info

■ Contents at a GlanCe
iv
Chapter 14: Flow Control Statements ■ ����������������������������������������������������������������������������205
Chapter 15: Working with Functions ■ �����������������������������������������������������������������������������211
Chapter 16: A Syntax Summary and Cheat Sheet ■ ����������������������������������������������������������219
Part IV: The Dart Language: Advanced ■ ����������������������������������������������������� 223
Chapter 17: Processing Exceptions and Error Control ■ ��������������������������������������������������225
Chapter 18: Understanding Dart Classes ■ �����������������������������������������������������������������������229
Chapter 19: Implicit Interfaces and Abstract Classes ■ ���������������������������������������������������243
Chapter 20: Implementing Generics and Typedefs ■ ��������������������������������������������������������251
Chapter 21: Using Dart’s Libraries ■ ���������������������������������������������������������������������������������257
Chapter 22: Leveraging Isolates for Concurrency and Multi-Processing ■ ����������������������273
Chapter 23: Asynchronous Programming with Dart ■ ������������������������������������������������������279
Chapter 24: An Advanced Syntax Summary ■ ������������������������������������������������������������������299
Part V: Dart and Other Web Technologies ■ ������������������������������������������������� 305
Chapter 25: Integrating Dart and HTML5 ■ �����������������������������������������������������������������������307
Chapter 26: Integrating Dart and CSS ■ ���������������������������������������������������������������������������321
Part VI: Dart and the Web Server ■ �������������������������������������������������������������� 339
Chapter 27: Combining Web Services with Dart ■ ������������������������������������������������������������341
Chapter 28: Dart on the Server Side ■ ������������������������������������������������������������������������������367
Part VII: Dart’s Future ■ ������������������������������������������������������������������������������� 387
Chapter 29: Implementing Design Patterns and Creating Web Components ■ �����������������389
Chapter 30: Developing a Dart App ■ �������������������������������������������������������������������������������407
Index ���������������������������������������������������������������������������������������������������������������������������������437
www.it-ebooks.info

xxi
Introduction
Welcome to Web Programming with Dart. Early, in our careers we came to recognize how our world would change
thanks to the Internet and especially to web applications. Every device we use in our daily lives uses the Internet
intensively. If we consider the dierent sizes and characteristics of devices and the dierent operating systems
available, we understand the complexity of software application development.
Web applications can help us with that. You develop an application and deploy it through dierent devices
and screen sizes, but to accomplish this task you need a programming language designed to understand the web
development complexity and run in dierent platforms. e applications must be highly optimized and support
numerous options: geo-localization, notications, upload and play media les, or the interaction between users,
among others. We can develop web applications with those functionalities but the only way to develop such complex
applications is by using a high-level programming language specic to Web development with support for the latest
web technologies.
In this book you will master Dart, with a progressive and dynamic learning approach. It is one of the most complete
books on Dart written so far and provides the basics of developing web applications using Dart, an object-oriented and
structured language that supports interfaces, large hierarchy of classes, and optional typing. You will see examples
and even develop your rst complete web application, step by step. You will learn how to integrate Dart with CSS3 and
HTML 5, combine Web Services with Dart, use Dart on the server side, implement design patterns and create web
components. e book had been written with consideration for programmers who want to learn this new programming
language but also for web designers because Dart can interoperate perfectly with HTML5 and CSS3.
is book is oriented to developers and web designers who want to develop high-level web applications and
are sick and tired of ghting with the creation of cross-platform web applications; for everyone who needs a new, yet
familiar web programming language for modern web applications and really big projects; and for developers who
need a typed language for a fast, secure, and easy development and debugging process.
In the book we will travel from the most basic to the most complex functions of this language but we will also
cover all the tools available to get the most of Dart. With this book you will know the language, how the tools work,
and you will see the core functions and libraries. We will show you the history behind Dart and how it came to us.
We will develop some UI animation samples for web, work with web services, server-side Dart applications, and the
new Polymer.dart library for the new HTML UI web component generation.
We will take a broad tour, showing the Dart basic and advanced functionalities.•
You will learn the tools that come with Dart SDK and the main, most important libraries. •
Additionally you will work with the newest Polymer.dart library for web component creation.
You will be able to develop your own command-line and server-side applications and, of •
course, web applications with Dart.
www.it-ebooks.info
剩余445页未读,继续阅读

















安全验证
文档复制为VIP权益,开通VIP直接复制

评论1