2004-5-12 15:29:35
读者
:
pastorale
-
|
今天闲来无事,将前言的原文与译文作一对比,结果大吃一惊,发现几乎每一段都有误译。当然,我自己的译文也未必正确,请大家批评指教。 ================================================================================ 前言第四段 【原文】: There's little support in the C programming language for the interface-based design methodology. Object-oriented languages, like C++ and Modula-3, have 【language features】 that encourage the separation of an interface from its implementation. Interface-based design is independent of any particular language, but it does require more programmer willpower and vigilance in languages like C, because it's too easy to pollute an interface with implicit knowledge of its implementation and vice versa.
【原译】: C编程语言对基于接口设计方法的支持是极少的.而面向对象的语言,像C++和Modula-3,则鼓励将接口 与实现分离.基于接口的设计独立于任何特定的语言,但是它要求程序员对像C一样的语言有更多的 驾驭能力和更高的警惕性,因为这类语言很容易破坏带有隐含实现信息的接口,反之亦然.
【单句对比1】: 【原译】基于接口的设计独立于任何特定的语言,但是它要求程序员对像C一样的语言有更多的 驾驭能力和更高的警惕性,因为这类语言很容易破坏带有隐含实现信息的接口,反之亦然 【原文】Interface-based design is independent of any particular language, but it does require more programmer willpower and vigilance in languages like C, because it's too easy to pollute an interface with implicit knowledge of its implementation and vice versa. 【我译】基于接口的设计方法独立于任何特定的语言。不过在C语言中使用这种设计方法时, 程序员需要有更强的自制力,并保持警惕。因为接口很容易被“该接口的实现 (implementation)当中隐含的信息”所污染,反过来也是一样。
|
发表评论
我赞同(0人)
我反对(0人) 回复评论
|
|
正在读取本评论的讨论,请稍侯……
|
|
|