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

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
主站蜘蛛池模板: 崇州市| 三原县| 姚安县| 曲松县| 祁门县| 陆河县| 松原市| 五家渠市| 道孚县| 安丘市| 大化| 内江市| 汉寿县| 黑河市| 大厂| 衡阳市| 南投市| 临湘市| 宝清县| 江永县| 古交市| 辉县市| 陕西省| 绥江县| 遵化市| 鹤峰县| 河池市| 城口县| 衡东县| 潜山县| 牡丹江市| 高邮市| 柳林县| 九江市| 霍山县| 河间市| 页游| 抚顺市| 鹤庆县| 当阳市| 大名县|