框架代码能处理策略,而在闭包中提供的用户代码能定制此策略。
Framework code can handle the policy, and user code — provided in a closure — can customize it. Listing 13 shows the basic usage pattern.
真正重要的是本框架代码编写得很好,经过仔细调优和很好的测试。
What actually matters is that the framework code is well written and carefully tuned and well tested.
因为只生成了框架代码,接下来必须为每个类提供具体的实现代码。
Because only skeleton code is generated, you must next provide concrete implementation code for each class.
Now we're gonna hand you some framework, that code that we wrote with some blanks to get you accustomed to the idea of one, writing larger programs than time might allow if you were doing it on your own.
现在就提供给你们一些框架,在代码中有些空白,是为了让你们了解其中的思想,如果是你自己,若时间允许,那就尽量写大的程序。
应用推荐