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

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
主站蜘蛛池模板: 长治县| 中宁县| 遂川县| 高邑县| 清水县| 电白县| 西乌珠穆沁旗| 桐乡市| 紫阳县| 玉溪市| 虞城县| 迁西县| 兴海县| 鹿邑县| 噶尔县| 玉环县| 芒康县| 华安县| 衢州市| 大渡口区| 怀安县| 蒙城县| 民勤县| 晋城| 台东市| 崇礼县| 晋中市| 桓仁| 门头沟区| 和平区| 鄂托克前旗| 封丘县| 乐山市| 台安县| 大埔区| 公安县| 东方市| 龙岩市| 大同县| 当雄县| 武夷山市|