What’s Next

As mentioned in Chapter 7, Classes and Objects, Dart frowns on dynamic language features that are necessary for metaprogramming. Even so, it is quite possible to achieve some pretty nifty dynamic language features in Dart. The noSuchMethod method is certainly an easy one to hook into for a significant portion of metaprogramming. It is limited to instance methods, but this ought to cover 80 percent of a developer’s dynamic programming needs. When that fails, there are still ways to exploit Dart’s functional nature to achieve broader dynamic language features. And we have not even mentioned Dart’s reflection capabilities, which are already used heavily in projects like Angular.dart.

With a pretty intense code organization project under our collective belt, let’s take a look next at something near and dear to anyone who has maintained a large application: testing. If metaprogramming in Dart blew your mind because of the sheer craziness of the topic, testing is going to blow your mind simply by virtue of how great it is.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.17.79.20