|
|
无题
- picobsd 财富等级:
|
在书的第26页,程序〈function35〉+中,有这样一句: char *s = str + sizeof str; 那位能解释一下这里sizeof得用法?我去原书网站下了源码,的确也是这样,但是才疏学浅没这样用过,请教了!!!
|
|
此评论对你有用
没用
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
无题
- 218.19.44.*
|
|
楼下的,你最好先在编译器上试试,我的VC6/icc8/lcc上都可以通过不带括号的sizeof啊。
|
|
此评论对你有用
没用
|
| |
|
|
|
|
|
无题
- 218.19.74.*
|
|
刚收藏了一本!!!
|
|
此评论对你有用
没用
|
| |
|
无题
- jilingliang 财富等级:
|
翻译不算好,但是还说的过去,这本书主要还是通过代码来展示作者的思想;
去理解别人的想法本身就不是一个容易的过程,需要多读多想,翻译得好可以有帮助,但是并不是非要那么完美,去看代码吧!代码是不需要翻译的!
|
|
此评论对你有用
没用
|
| |
|
|
无题
- 159.226.5.*
|
|
出影印版吧,amen!
|
|
此评论对你有用
没用
|
| |
|
无题
- jimxiao 财富等级:
|
这本书应该是C语言中最顶级(for improvement)的一本书。 可以说和“C Programming Langage”并驾齐驱的唯一的一本。 主要是偏重于实用的coding。很多例子来自于前人一些论文的实现。 象存储分配和管理等。 是每个coder必须细看的好东东! 翻译也没有说的那么差,想想这种书能引进已经很不容易了!
|
|
此评论对你有用
没用
|
| |
|
|
无题
- 218.28.5.*
|
|
晕~~~~,按你们说的,看不懂,译的不好就不看不买了,世上满足两者的,少之又少!
|
|
此评论对你有用
没用
|
| |
|
|
|
无题
- pastorale 财富等级:
|
今天闲来无事,将前言的原文与译文作一对比,结果大吃一惊,发现几乎每一段都有误译。当然,我自己的译文也未必正确,请大家批评指教。 ================================================================================ 前言第五段 【原文】: Once mastered, however, interface-based design can speed development time by building upon a foundation of general-purpose interfaces that can serve many applications. The foundation class libraries in some C++ environments are examples of this effect. Increased reuse of existing software --- libraries of interface implementations --- reduces initial development costs. It also reduces maintenance costs, because more of an application rests on well-tested implementations of general-purpose interfaces.
【原译】: 然而,一旦掌握了基于接口的设计方法,就能够在服务于众多应用程序的通用接口基础上建立 应用程序,从而加速开发.在一些C++环境中的基础类库就体现了这种效果.增加对现有软件的 重用—接口实现库,能够减少初始开发成本,同时还能减少维护成本,因为应用程序的更多部分 都建立在经过良好测试的通用接口的实现之上.
【单句对比1】: 【原译】在服务于众多应用程序的通用接口基础上建立应用程序 【原文】building upon a foundation of general-purpose interfaces that can serve many applications 【我译】在(适合多种应用的)通用接口的基础上创建应用程序
【单句对比2】: 【原译】因为应用程序的更多部分都建立在经过良好测试的通用接口的实现之上 【原文】because more of an application rests on well-tested implementations of general-purpose interfaces 【我译】因为不止一个应用程序依赖这些“通用接口的(经过充分测试的)实现”。
|
|
此评论对你有用
没用
|
| |
|
无题
- 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)当中隐含的信息”所污染,反过来也是一样。
|
|
此评论对你有用
没用
|
| |
|
无题
- pastorale 财富等级:
|
今天闲来无事,将前言的原文与译文作一对比,结果大吃一惊,发现几乎每一段都有误译。当然,我自己的译文也未必正确,请大家批评指教。 ================================================================================ 前言第三段 【原文】: This book advocates a design methodology based on interfaces and their implementations, and it illustrates this methodology by describing 24 interfaces and their implementations in detail. These interfaces span a large part of the computing spectrum and include data structures, arithmetic, string processing, and concurrent programming. The implementations aren't toys --- they're designed for use in production code. 【As described below, the source code is freely available.】
【原译】: 本书提倡的是一种基于接口及其实现的设计方法,并且通过对24个接口及其实现的描述详细地演示了 这种方法.这些接口涉及到计算机领域的很多知识,其中包括数据结构.算法.字符串处理和并发程序. 这些实现并不是简单的玩具—它们是为在产品代码中使用而设计的.
【单句对比1】: 【原译】其中包括数据结构.算法.字符串处理和并发程序 【原文】include data structures, arithmetic, string processing, and concurrent programming. 【我译】其中包括数据结构、算术运算、字符串处理和并发(concurrent)编程。
|
|
此评论对你有用
没用
|
| |
|
无题
- pastorale 财富等级:
|
今天闲来无事,将前言的原文与译文作一对比,结果大吃一惊,发现几乎每一段都有误译。当然,我自己的译文也未必正确,请大家批评指教。 ================================================================================ 前言第二段 【原文】: I'm as guilty as the next programmer: lcc, a compiler for ANSI/ISO C written by Chris Fraser and myself, was built from the ground up. (lcc is described in C.W. Fraser and D. R. Hanson, A Retargetable C Compiler: Design and Implementation, Addison-Wesley, 1995.) A compiler exemplifies the kind of application for which it possible to use standard interfaces and to create interfaces that are useful elsewhere. Examples include interfaces for memory management, string and symbol tables, and list manipulation. But lcc uses only a few routines from the standard C library, and almost none of its code can be used directly in other applications.
【原译】: 我和下一代程序员一样感到心虚:lcc(ChrisFraser和我给ANSI/ISO C编写的编译器)是建立在一定 的背景之上的(在《A Retargetable C Compiler: Design and Implementation》一书中有关于lcc的描述, Addison-Wesley,1995).编译器展示了这样一种应用程序,该应用程序可以使用标准接口,并且能够 创建在其他地方也可以使用的接口.这类程序的其他例子还有内存管理.字符串和符号表以及链表操作 等等.但是lcc仅使用了很少的标准C库函数的例程,并且几乎没有代码能够直接应用到其他应用程序中.
【单句对比1】: 【原译】我和下一代程序员一样感到心虚:lcc(Chris Fraser和我给ANSI/ISO C编写的编译器)是 建立在一定的背景之上的 【原文】I'm as guilty as the next programmer: lcc, a compiler for ANSI/ISO C written by Chris Fraser and myself, was built from the ground up. 【我译】我与下面这位程序员一样感到内疚,lcc(我和Chris Fraser编写的 ANSI/ISO C 编译器)是 完全从头开始编写的。
|
|
此评论对你有用
没用
|
| |
|
无题
- pastorale 财富等级:
|
今天闲来无事,将前言的原文与译文作一对比,结果大吃一惊,发现几乎每一段都有误译。当然,我自己的译文也未必正确,请大家批评指教。 ================================================================================ 前言第一段
【原文】: Programmers are inundated with information about application programming interfaces, or APIs. Yet, while most programmers use APIs and the libraries that implement them in almost every application they write, relatively few create and disseminate new, widely applicable, APIs. Indeed, programmers seem to prefer to 'roll their own'; instead of searching for a library that might meet their needs, perhaps because it is easier to write application- specific code than to craft well-designed APIs.
【原译】: 现在程序员都面临着大量的关于应用程序接口(ApplicationProgrammingInterface,API)的信息。 大多数人都会使用API和程序库,并在其所写的每一个应用程序中实现它们,但是很少有人会创建或 发布新的能广泛应用的API.事实上,程序员似乎倾向于循环使用他们自己的东西,而不愿意查找能满 足他们要求的程序库,这或许是因为写特定应用程序的代码要比查找设计好的API容易.
【单句对比1】: 【原译】大多数人都会使用API和程序库,并在其所写的每一个应用程序中实现它们, 【原文】Yet, while most programmers use APIs and the libraries that implement them in almost every application they write, 【我译】绝大多数程序员(在他们编写的程序中)用到了API函数(以及实现这些API函数的程序库)。
【单句对比2】: 【原译】程序员似乎倾向于循环使用他们自己的东西 【原文】programmers seem to prefer to 'roll their own' 【我译】程序员似乎更喜欢自己动手实现所需要的功能
【单句对比3】: 【原译】这或许是因为写特定应用程序的代码要比查找设计好的API容易 【原文】perhaps because it is easier to write application-specific code than to craft well-designed APIs 【我译】这或许是因为“编写针对特定应用的代码”要比“编写精心设计(well-designed)的API”容易得多。
|
|
此评论对你有用
没用
|
| |
|
无题
- amstrongest 财富等级:
|
|
刚才看了四个译者的作品,前三个都翻译了两到三本书,风格也都不相同,从java到.NET到delphi到jbuilder最后的居然还翻译了photoshop,机械为什么还不知道译者的重要性?一本不厚的书难道需要四个译者?难道请一个合格的译者真的那么难?
|
|
此评论对你有用
没用
|
| |
|
无题
- wyy_622 财富等级:
|
|
翻译的可真不怎么样!第十六页第五行“使得stack.h可以被包含多次?”我怎么觉得结合上下文的意思是为了不使他被包含多次呀!另外觉得文字太不通顺了,看得别扭,有关C的书还是请裘老师来翻译吧,程序设计实践就翻的很不错。建议出版社赶快出影印,以免误人子弟,中国教育本来就不怎么样,经不起在搞这些了。
|
|
此评论对你有用
没用
|
| |
|
无题
- amstrongest 财富等级:
|
书没有看过,但看到了amazon上面myan的评价,哈哈~ 摘录如下:
Reviewer: Mike Meng from Beijing, China I have been a C and C++ programmer for 5 years, and is regarded as an professional C and C++ programmer. After scanning this book, I think I should re-estimate my C skill.
In one word, this book is the most advanced C book I've read, it presents lots of wonderful techniques and ideas, and more, all the things are very useful. For examples:
* Use standard C's setjmp/longjmp to implement WIn32 SEH-like exception handling machanism.
* Very detailed and smart memory management solution.
* All the data structures and utilities in well-defined, reusable format: atoms, tables, sets, vectors(dynamic arrays), rings, strings, arithmetric with any precisions, thread library... everything you need to build a whole new system.
I'd say that once you master each of those things (this means read and re-read until understanding occur, as Fransis Glassborow said ), you will be an outstanding programmer in any circumstance, and can be full of confidence to accept any programming challenge.
The only thing I complain is about the source code. The source code presenting style in this book is relative strange and difficult to catch. I tried to type the code into my PC, and found it's a unpleasent work. Fortunately, the all source can be download from the book's web page, so, I still gave 5 stars.
|
|
此评论对你有用
没用
|
| |
|
无题
- mengyana 财富等级:
|
书的确是好书,值得每一个严肃的C程序员认真研究。不过当年我在Amazon上的评价言过其实了。应该说完全掌握了这本书中的技术,可以在系统开发领域大展拳脚了。放在更高层的应用开发领域里,这本书的价值有限。但是对于培养一个优秀程序员的作用,仍然值得称道。
事后来看,这本书对我来讲最大的作用是让我看到的C抽象能力的极致,看到了它的局限性。
|
|
此评论对你有用
没用
|
| |
|
无题
- pastorale 财富等级:
|
从前三章试读来看,翻译比较中规中矩,语句通顺,技术上没看出什么问题。给5星 第17页,“接口通常说明的是不可检查的运行期错误(unchecked runtime error)、可检查的运行期错误(checked runtime error)以及异常(exception)情况。” 我认为checked runtime error应译为“受检查的运行期错误”、unchecked runtime error应译为“未(经)检查的运行期错误”。
|
|
此评论对你有用
没用
|
| |
|
|
|