编程珠玑之scaffolding

   最近在看《编程珠玑》一书,在书中第五章,出现了scaffolding一词,见中文版书中翻译为“脚手架”,不解其意。在书中的原句为“Wise programmers instead build scaffolding to give them easy access to the function.”,"Once we have the code ,we'll probe it with scaffolding,then move on to test it more thoroughly and conduct experiments on its running time."。在5.2节中“Five lines of C sacffolding can do the job:...(省略的部分是测试代码)”。

   查阅了一些资料。在Hibernate in Action中有这样一句话“These attributes and method that manipulate their values are called scaffolding code.”在这里翻译为支撑代码。《编程珠玑》5.2的标题为“A Test Harness”。Test Harness是一个提供了自动化测试程序核心或者系统核心的一种工具. scaffolding意思是用于测试程序逻辑功能的支撑(或支持)代码.在《编程珠玑》书可以译为“测试代码”。《编程珠玑》中文版书中的“脚手架”用“测试代码”来替换显示更贴切容懂。

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值