DDJ书评(2004.2):Small Is Still Beautiful(有Pramatic系列哦)

原创 2004年04月08日 09:20:00
Review by Gregory V. Wilson
Copyright (C) Dr. Dobb's Journal, February, 2004

Time to confess: I prefer small books to large ones. In part, it's because my back is getting old and doesn't enjoy lugging 1200-page tomes around. The real reason, however, is that a book is supposed to be a conversation between the author and the reader, and who wants to hang out with anyone who is 1200 pages worth of long-winded?

Andy Hunt and Dave Thomas's two new books are therefore doubly welcome. Not only are they well-written and informative, they are also blessedly short. The first, Pragmatic Unit Testing: In Java with JUnit, tells you everything you need to start testing your Java programs efficiently. The second, Pragmatic Version Control: Using CVS, covers the basics of CVS, and explains how to use it for both personal and team projects. Their exposition and examples are as clear as those in the duo's first book, The Pragmatic Programmer (reviewed here in March 2000), and the pragmatism of the titles can be found on every page. If you understand loops and classes, and are wondering what to learn next, you need look no further than these two books.

Elliotte Rusty Harold's Effective XML: 50 Specific Ways to Improve Your XML is just as practical a book, although you will have to work a little harder to put its advice into practice. His previous book, Processing XML with Java (reviewed here in July 2003), told you everything you would ever need to know about how to deal with XML programmatically. This book looks at XML itself; in particular, it explains which of XML's many features should be used when. For example, Item 12 tells you to store metadata in attributes, then spends six pages explaining why. Item 24 analyzes the strengths and weaknesses of various schema languages (the W3C's XML Schema, DTDs, Schematron, and Relax NG), while Item 38 covers character set encodings. It's all very useful, opinionated, and well informed.

Like Effective XML, Elfriede Dustin's Effective Software Testing: 50 Specific Ways to Improve Your Testing is another entry in Addison-Wesley's growing "Effective" series. It contains a lot of useful ideas, but isn't as directly applicable as Harold's or the Hunt and Thomas pair. The primary reason is that processes (including testing) are intrinsically harder to explain in concrete terms than APIs or data formats.

Mark Graff and Kenneth van Wyk's Secure Coding: Principles and Practices is another good book with the same problem. I have spent most of the last four years working on an access-control and identity-management product, which has made me painfully aware of just how insecure the average program is. Graff and van Wyk offer a lot of useful advice for programmers who want to know what they should be doing, but as with Dustin's book, most of it will be hard for newcomers to the field to translate into practice. "Be kind to maintainers" and "Don't trust web URLs" are good tips, but what exactly do they mean in practice? To be fair, the authors do provide a few snippets of sample code, such as a restricted shell for sendmail, but many more are needed.

The last book on this month's list is David Brackeen's Developing Games in Java. At 970 pages, I'm sure that better page design could have cut its length by a third. That said, I was impressed by how much Brackeen manages to cover, and how well he covers it. The book is clearly aimed at young programmers who know just enough Java to get themselves in trouble. Brackeen patiently works through everything such readers need to know to start building modern multiplayer games, including threading, Swing user interfaces, 3D graphics, and so on. By the midpoint of the book, he is discussing game physics and artificial intelligence; by its end, he is pointing readers at performance profiling and Java Web Start. While it's obviously impossible to do any of these topics real justice in a chapter each, Brackeen does explain the key ideas and show how they relate to one another. If the University of Toronto would let me teach an undergraduate course on game programming, I would probably use this as a textbook.


Pragmatic Unit Testing: In Java with JUnit
Andy Hunt and Dave Thomas
The Pragmatic Programmers, 2003
138 pp., $29.95
ISBN 0974514012

Pragmatic Version Control: Using CVS
Dave Thomas and Andy Hunt
The Pragmatic Programmers, 2003
159 pp., $29.95
ISBN 0974514004

Effective XML: 50 Specific Ways to Improve Your XML
Elliotte Rusty Harold
Addison-Wesley, 2004
304 pp., $44.99
ISBN 0321150406

Effective Software Testing: 50 Specific Ways to Improve Your Testing
Elfriede Dustin
Addison-Wesley, 2003
271 pp., $34.99
ISBN 0201794292

Secure Coding: Principles and Practices
Mark G. Graff and Kenneth R. van Wyk
O'Reilly & Associates, 2003
202 pp., $29.95
ISBN 0596002424

Developing Games in Java
David Brackeen
New Riders, 2004
972 pp., $49.99
ISBN 1592730051

版权声明:本文为博主原创文章,未经博主允许不得转载。

单片机小白学步系列(二)爱上单片机的一万个理由

本文由PurpleSword(jzj1993)原创,转载请注明。原文网址 http://blog.csdn.net/jzj1993   到现在为止,相信大家对单片机已经有了一个基本概念,但是我们...
  • jzj1993
  • jzj1993
  • 2014年09月15日 02:08
  • 2462

android插件化small框架初探(一)

一个项目包涵多个module,且互相独立,没有依赖关系,但是可以相互跳转,方便维护,多个module插在一个app宿主上,这是我理解的插件化。包含公共库插件lib,业务插件module及宿主app(只...
  • androidV
  • androidV
  • 2017年02月06日 14:52
  • 600

学习入门small框架

文章为个人原创总结,请勿随意转发,转发请注明出处!!!
  • u010942946
  • u010942946
  • 2017年03月15日 19:43
  • 277

Excel:函数中的万金油:INDEX+SMALL+IF

Excel里有个号称“万能”的函数组合,这个函数组合就是INDEX+SMALL+IF,很多应用场合都能看到它们的身影。 这个函数的特点是:能提取出满足某条件或某些条件的所有数据,可以一次性返回...
  • 3150379
  • 3150379
  • 2017年02月14日 09:44
  • 2470

使用Small创建iOS工程目录

small.iOS 自定义工程配置
  • dengzhaowensky
  • dengzhaowensky
  • 2016年07月18日 09:52
  • 519

Windows下的webrtc下载与编译

拆腾了好几天,先把我记的记录贴上来
  • free_syj
  • free_syj
  • 2014年09月10日 16:04
  • 4824

Android插件化(使用Small框架)

Android插件化(使用Small框架)框架源码1. Create ProjectFile->New->New Project...1.1 Configure your new project假设宿...
  • cuiran
  • cuiran
  • 2016年01月21日 09:16
  • 15514

安卓旧项目使用Small框架插件化改造踩坑记

我们团队把一个10万行安卓代码的旧项目(电商系统管理台App),使用Small框架做了插件化改造。把项目分成了10多个插件模块,解除了业务模块之间的代码耦合,为业务功能的快速迭代和多团队并行开发做好基...
  • offbye
  • offbye
  • 2016年07月23日 10:14
  • 4864

Android Small插件化框架源码分析[魅族Degao]

small插件化框架源码分析,阐述如何使用和插件加载流程。
  • yueqian_scut
  • yueqian_scut
  • 2016年03月31日 12:48
  • 2809

Android Plugin 插件化技术-Small插件框架

本篇文章只是整理了一些流行的开源插件化技术,其中言论纯属开源作者,不代表本人观点。 一、Small 简介:做最轻巧的跨平台插件化框架 完美内置 所有插件支持内置于宿主包中 高度透明 插件编码、...
  • wangbaochu
  • wangbaochu
  • 2016年01月14日 16:49
  • 9078
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:DDJ书评(2004.2):Small Is Still Beautiful(有Pramatic系列哦)
举报原因:
原因补充:

(最多只允许输入30个字)