← 返回卡片

原书出处

Mastering API Architecture

08

First Edition · 核验版本的摘录快照 · 导入于 2026-11-14T06:14:52.121Z

The sprout technique is covered in Michael Feather’s 2004 Working Effectively with Legacy Code. It is often very difficult to unit test code that wasn’t built with testing in mind. Sprout involves creating the new functionality elsewhere, testing it and adding it to a legacy method known as the insertion point. Another technique is to wrap the existing functionality by creating a new method

此预览只包含定位所需的摘录和上下文。

原书定位详情

来源:a19c7933-4eda-4176-aebd-30fe7e1ad292

正文位置:extracted/Mastering API Architecture/_epub-src/OEBPS/ch08.xhtml#idm45236839873392

EPUB SHA-256:5be3275a289df0138f17f72c8e9c84987cbe07a5fe28c7cbc649d6b5cd8a14dd