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

Chapter 2. Advanced Techniques and Reflection

In this chapter, we will discuss the flexibility and reusability of your code with the help of advanced techniques in Dart. Generic programming is widely useful and is about making your code type-unaware. Using types and generics makes your code safer and allows you to detect bugs early. The debate over errors versus exceptions splits developers into two sides. Which side to choose? It doesn't matter if you know the secret of using both. Annotation is another advanced technique used to decorate existing classes at runtime to change their behavior. Annotations can help reduce the amount of boilerplate code to write your applications. And last but not least, we will open Pandora's box through Mirrors of reflection. In this chapter, we will cover the following topics:

  • Generics
  • Errors versus exceptions
  • Annotations
  • Reflection
主站蜘蛛池模板: 沂水县| 金阳县| 古交市| 三亚市| 奉贤区| 汝州市| 和田市| 来宾市| 汨罗市| 大安市| 东城区| 云浮市| 定襄县| 西安市| 昆山市| 陇西县| 淅川县| 江安县| 辽阳县| 梅河口市| 庆元县| 桂东县| 桑植县| 获嘉县| 左云县| 祁连县| 铜鼓县| 元阳县| 高陵县| 延津县| 辽中县| 富蕴县| 休宁县| 外汇| 视频| 黎川县| 女性| 绵阳市| 呼图壁县| 石景山区| 寿宁县|