2 options
Learning Dart : learn to develop high-performance applications with Dart 1.12 / Ivo Balbaert, Dzenan Ridjanovic.
- Format:
- Book
- Author/Creator:
- Balbaert, Ivo, author.
- Ridjanovic, Dzenan, author.
- Series:
- Community experience distilled.
- Community experience distilled
- Language:
- English
- Subjects (All):
- Google.
- Application software.
- Physical Description:
- 1 online resource (382 p.)
- Edition:
- Second edition.
- Place of Publication:
- Birmingham : Packt Publishing, 2015.
- Language Note:
- English
- Summary:
- Learn to develop high performance applications with Dart 1.10 About This Book Develop apps for the modern web using Dart and HTML5 Clarify and shorten your Dart code using enums Build a complex UI for business applications with Dart's Polymer framework, based on web components Who This Book Is For If you want to become a developer for the modern web, or wish to add Dart to your tool belt, then this book is for you. The book assumes you have basic HTML experience and know how web applications work. Some previous programming experience, preferably in a modern language like C#, Java, Python, Ruby or JavaScript, will give you a head start. You can work with Dart on your preferred platform, be it Linux, Mac OS X or Windows. What You Will Learn Structure your code using functions, classes, generics, packages and libraries Use the power of modern browsers to process and store data Make games by drawing, and using audio and video in the browser Develop an application with a model-driven and spiral-paced approach Discover the Observatory tools for profiling memory and CPU usage of Dart programs Store your app's data in MySQL and MongoDB through Dart Build powerful HTML5 forms, validate and store data in local storage, and use web components to build your own user interface Run your Dart server on an App Engine Managed VM In Detail Dart is an open source programming language for the web, developed at Google, with a steadily growing community. It is a single language for both client and server, appropriate for the full range of devices on the web - including phones, tablets, laptops, and servers. It encompasses the lessons of the last two decades of web programming. This book will give you a thorough overview of Dart, taking you through its ecosystem, syntax, and development principles. With this book, you will build web games using HTML5, audio, and video, and also dive into processing and displaying data in HTML5 forms with Dart. You will also learn how web components fit together with HTML5, and how to apply them in business web applications of the future. You will discover how to store data on the client, communicate data between client and server with JSON, and store JSON data with MongoDB and MySQL. Stop solving new challenges with the same old tools - let Dart show you a whole new way. Style and approach This book provides you a project-based approach, with everything you need to start or enhance your career in the future of web development with Dart. It follows the spiral approach: each project builds up in successive spirals, adding new features in each step."
- Contents:
- Cover; Copyright; Credits; About the Authors; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Dart - A Modern Web Programming Language; What is Dart?; Dart is a perfect fit for HTML5; A very short history of web programming; Dart empowers the web client; JavaScript is not the way to go; Google, GWT, and Dart; Advantages of Dart; Getting started with Dart; Installing the Dart Editor; Other options for working with Dart code; Your first Dart program; Getting a view on the Dart tool chain; The Dart execution model; A bird's eye view on Dart
- Example 1 - raising rabbitsExtracting a function; A web version; Example 2: banking; Making a to-do list with Dart; Summary; Chapter 2: Getting to Work with Dart; Variables - to type or not to type; Built-in types and their methods; Conversions; Operators; Some useful String methods; Dates and times; List; Maps; Documenting your programs; Changing the execution flow of a program; Using functions in Dart; Return types; Parameters; First class functions; Using enums; Recognizing and catching errors and exceptions; A debugging exercise; Summary
- Chapter 3: Structuring Code with Classes and LibrariesA touch of class - how to use classes and objects; Visibility - getters and setters; Types of constructors; Named constructors; Factory constructors; The const constructors; Inheritance; Abstract classes and methods; The interface of a class - implementing interfaces; Polymorphism and the dynamic nature of Dart; Collection types and generics; Typing collections and generics; The collection hierarchy and its functional nature; Structuring your code using libraries; Using a library in an app; Resolving name conflicts
- Visibility of objects outside a libraryManaging library dependencies with pub; Unit testing in Dart; Asynchronous programming with async and await; Project - word frequency; The Observatory tool; Summary; Chapter 4: Modeling Web Applications with Model Concepts and Dartlero; A short introduction to Git and GitHub; Creating a repository on GitHub and a local version; Collaborating on a GitHub project; What is a model and why we need it in programming; Model Concepts - a graphical design tool for our models; Working with model concepts; Explaining the model; Drawing the model
- Exporting the modelWhat is JSON?; Dartlero - a simple domain model framework; An example of using Dartlero; The categories and links application; Summary; Chapter 5: Handling DOM in a New Way; Finding elements and changing their attributes; Finding elements; Changing the attributes of elements; Creating and removing elements; Handling events; Manipulating the style of page elements; Animating a game; Ping Pong using style(s); How to draw on a canvas - Ping Pong revisited; Spiral 1 - drawing a circle and a rectangle; Spiral 2 - colored circles and rectangles; Spiral 3 - moving a ball
- Spiral 4 - reorganizing the code
- Notes:
- Description based upon print version of record.
- Description based on online resource; title from PDF title page (ebrary, viewed January 12, 2016).
- ISBN:
- 9781785288531
- 1785288539
The Penn Libraries is committed to describing library materials using current, accurate, and responsible language. If you discover outdated or inaccurate language, please fill out this feedback form to report it and suggest alternative language.