官术网_书友最值得收藏!

Chapter 2. Getting to Work with Dart

In this chapter you will get a firm grasp on how to program in Dart. The code and data structures in Dart and its functional principles are explained by exploring practical examples. We will look at the following topics:

  • Variables – if, how, and when to type them
  • What are the basic types that you can use?
  • Documenting your programs
  • How to influence the order of execution of a program
  • Using functions in Dart
  • How to recognize and catch errors and exceptions?

You will see plenty of examples, also revisiting the code from Chapter 1, Dart – A Modern Web Programming Language. Because most of this will be familiar to you, we will discuss these topics succinctly and emphasize only that which is new or different. You can refer to http://www.dartlang.org/docs/dart-up-and-running/contents/ch02.html if you need more detailed explanations. We encourage you to play with the code examples, the best way to become familiar with Dart. The full API reference documentation is available at http://api.dartlang.org. Experiment in the Dart Editor to find out if in doubt!

主站蜘蛛池模板: 宜宾县| 红桥区| 航空| 平江县| 江口县| 开江县| 集贤县| 西宁市| 临沭县| 伊通| 登封市| 武乡县| 厦门市| 宜兴市| 个旧市| 抚顺市| 犍为县| 精河县| 东丰县| 赣榆县| 会东县| 商都县| 乌拉特中旗| 德令哈市| 铁岭市| 民权县| 靖西县| 霍山县| 泗水县| 东海县| 满城县| 宁晋县| 潮安县| 德昌县| 济阳县| 鸡东县| 宁蒗| 饶阳县| 纳雍县| 通许县| 静乐县|