Dart Apprentice Kodeco Ray Wenderlich

Dart Apprentice Kodeco Ray Wenderlich
Dart Apprentice

Download Dart Apprentice PDF

Download Dart Apprentice EPUB

Dart Apprentice Book Details

Title: Dart Apprentice
Author: By Matt Galloway & Jonathan Sande
Publisher: Kodeco, Ray Wenderlich
Language: English
Subject: Swift / Computers & Technology / Programming / Apple Programming
Format: EPUB, Full Source Code

Introduction Dart Apprentice Book

Dart is a general purpose programming language developed by Google. You can use it to develop web, server, desktop and mobile applications for iOS and Android. It’s easy to learn (especially if you read this book) and also has great tooling support.

In many ways Dart is a boring language, and that’s a good thing! It means that Dart is fast and easy to pick up. While Dart does have some unique characteristics, any knowledge you bring in from other object oriented or C-style languages will immediately be applicable. If you come here as a complete beginner to programming, Dart is a good place to start. The concepts that you’ll learn in this book will give you a solid foundation in your coding career.

Don’t let Dart’s mundane syntax fool you

Dart is a modern and rapidly evolving language, and the things it allows you to do are both exciting and even historic in nature. Never before have you been able to create native applications for so many platforms using a single code base.

There’s a good chance you picked up this book because of the Flutter UI framework. However, it was no accident that Flutter chose Dart as its language. The Dart virtual machine allows lightning fast development-time rebuilds, its JavaScript complier allows you to build for the web, and its ahead-of-time compiler creates fast native applications across mobile and desktop platforms and even for servers and embedded devices.

It’s no wonder then that developers across the world have taken notice. The language has been climbing the charts for both fastest growing: https://octoverse.github.com/#top-languages and most loved https://bit.ly/2Q2ukO0. The wise developer takes note of industry trends and joins them.

So welcome to this Dart Apprentice. book!

Book sample projects

Each chapter comes with supplemental material. In the chapter folder you’ll find a folder called starter that contains a starter project with an empty main function. You can either open this empty project in your editor by going to File ▸ Open in the menu, or just create a new project in the way you’ll learn in Chapter 1.

In addition to the starter project, chapters will also have a final folder, a mini_exercise folder and a challenge folder. You can refer to the final folder if you get lost during the lesson. It will contain the code from that lesson. Likewise, the mini_exercise and challenge folders will contain the answers to the mini-exercises and challenges in every chapter. You’ll learn the most if you don’t copy-and-paste this code but actually type it yourself.

Mini-exercises

You’ll often find mini-exercises in middle of a chapter after learning about some topic. These are optional but generally easy to complete. Like the challenges, they’ll help you solidify what you’re learning.

Challenges

Challenges are an important part of Dart Apprentice. At the end of each chapter, the Dart Apprenticebook will give you one or more tasks to accomplish that make use of the knowledge you learned in the chapter. Completing them will not only help you reenforce that knowledge but will also show that you’ve mastered it.

How to read this book

Each chapter of this book builds on the ones that precede it, so you’ll find it easiest to understand if you progress through the chapters in order.

Dart Apprentice was written with the beginner in mind. If that’s you, you’ll learn the most by following along and trying each of the code examples, mini-exercises and challenges as you come to them. The way to learn to code is by writing code and experimenting with it. That can’t be emphasized enough.

More advanced readers may want to skim the content of this book in order to get up and running quickly. If that’s you, try the challenges at the end of every chapter. If they’re easy, move on to the next chapter. If they’re not, go back and read the relevant parts of the chapter and check the challenge solutions.

Finally, for all readers, raywenderlich.com is committed to providing quality, up-to- date learning materials. We’d love to have your feedback. What parts of the book gave you one of those aha learning moments? Was some topic confusing? Did you spot a typo or an error? Let us know at forums.raywenderlich.com and look for the particular forum category for this book. We’ll make an effort to take your comments into account in the next update of the book.

Section I: Dart Apprentice

Begin your journey learning all the basic concepts you need to master this language. Follow along the easily and thoroughly explained concepts and you will be building Dart applications in a breeze.

Chapter 1: Hello, Dart!

This first chapter is designed to help you set up your development environment so

that you can get the most out of the following chapters.

There are several different tools that Dart developers use when building apps:

DartPad: This is a simple browser-based tool for writing and executing Dart code. It’s available at dartpad.dev.

IntelliJ IDEA: IntelliJ is a powerful Integrated Development Environment, or IDE, that supports Dart development through a Dart plugin. Although Android Studio, a popular IDE for Flutter development, is built on IntelliJ, this book recommends that you use plain IntelliJ for pure Dart projects. The IntelliJ Dart plugin makes this an easier task than doing it in Android Studio.

Visual Studio Code: Also known as VS Code, this is a lightweight IDE with a clean and simple interface. It fully supports Dart development with its Dart extension.

This book uses Visual Studio Code for all of the examples contained within, but if you have another IDE you prefer, then by all means, continue using that one for your Dart development. If you don’t have a preference, though, you’ll find using VS Code an enjoyable experience. VS Code also supports Flutter development through an extension, so you won’t be limiting yourself for future Flutter development if you choose to go the VS Code route now.