- Mastering Dart
- Sergey Akopkokhyants
- 140字
- 2021-08-05 17:19:19
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
- 物聯(lián)網(wǎng)工程規(guī)劃技術(shù)
- GPS/GNSS原理與應(yīng)用(第3版)
- WordPress 5 Complete
- 面向物聯(lián)網(wǎng)的嵌入式系統(tǒng)開(kāi)發(fā):基于CC2530和STM32微處理器
- 企業(yè)私有云建設(shè)指南
- 2018網(wǎng)信發(fā)展報(bào)告
- 雷達(dá)饋線技術(shù)
- 物聯(lián)網(wǎng)之霧:基于霧計(jì)算的智能硬件快速反應(yīng)與安全控制
- Kong網(wǎng)關(guān):入門(mén)、實(shí)戰(zhàn)與進(jìn)階
- 深入理解Nginx:模塊開(kāi)發(fā)與架構(gòu)解析
- 大型企業(yè)微服務(wù)架構(gòu)實(shí)踐與運(yùn)營(yíng)
- 云計(jì)算技術(shù)與標(biāo)準(zhǔn)化
- 區(qū)塊鏈技術(shù)與應(yīng)用:打造分布式商業(yè)新生態(tài)
- React Design Patterns and Best Practices(Second Edition)
- 智慧的物聯(lián)網(wǎng):感知中國(guó)和世界的技術(shù)