Preface

Since the first public release of Dart in 2011, the language evolved a lot. Its first stable release in November 2013 marked the point when it was the time to start taking it seriously in the production environment. Dart 1.9+ might, at first sight, look like what JavaScript could be if it was designed for today's Web. It combines the best of many other languages while targeting both browser and server-side development.

Dart isn't the answer to every problem on the Web. There are situations where it seems like it's overly complicated to use Dart or it just isn't good at what you need, and you might be right. There are circumstances where it's better to use JavaScript.

This book tries to be objective. We won't try to convince you that from now on, you should use only Dart, and we'll talk about situations where Dart isn't the ideal solution. At the same time, we'll show you where Dart is great, how you can write well-structured code for both the browser and the server, and how easy it is to write understandable asynchronous apps with Dart 1.9.

Even though this book can't go into great detail about each topic, after reading this book, you should see for yourself that Dart makes sense and you should at least give it a try. It's not just the language but also the IDE, comfortable debugger, dependency management, runtime profiler, and more.

What this book covers

Chapter 1, Getting Started with Dart, jumpstarts Dart development right away while explaining the syntax and core features of Dart.

Chapter 2, Practical Dart, focuses on the most common tasks of client-side development, such as DOM manipulation, asynchronous programming, Ajax calls, and using existing JavaScript code in Dart and vice versa.

Chapter 3, The Power of HTML5 with Dart, specifically focuses on using HTML5 features in Dart while mentioning some noteworthy third-party libraries written for Dart.

Chapter 4, Developing a Mobile App with Dart, builds on the previous chapter with a quick explanation of CSS3 transformations and HTML5 features specific for mobile devices.

Chapter 5, Web Components and polymer.dart, goes step by step, showing each part of Web Components standard and how useful they are, even when used separately. Then, it looks at polymer.dart, which combines all parts of Web Components into a single framework.

Chapter 6, AngularDart, is a sneak peak of a superheroic framework for Dart made by Google with the same philosophy in mind as AngularJS.

Chapter 7, Server-side Applications with Dart, shows that apart from the browser environment, there's also a standalone Dart VM, which can run on a server. We'll take a very practical look at writing server-side scripts, including server configuration for Apache and nginx web servers.

Chapter 8, Testing and Profiling the Dart Code, states that just as with any other language, unit testing is a vital part of the development process. Dart also comes with a built-in tool called Observer to examine Dart VM's internals in runtime.

Chapter 9, Writing Native Extensions for the Standalone Dart VM, shows the full potential of Dart, by writing native extensions for the standalone Dart VM in C/C++ and then using them from Dart.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.219.236.70