【原书评内容】 Maybe OK for newbies
Unfortunately I am disappointed with this book. I guess I had high hopes that it was going to provide a lot of information that I didnt know and principles (backed by examples) that would help me learn some really valuable exception handling patterns.
Im not sure who the intended audience is. The book is probably ok if you are relatively new to Java and its exception handling features, but on the whole it did not add much to my skill set. But then there are also a couple of sections that reference concepts from Servlets/JSP and EJB, so if you are a newbie you might be confused.
In my opinion most of the book covers basic topics that you will already know or just as easily get from the API docs. For example, chapters 7-9 (130 pp.) talks about 'core' Java classes, Collections, I/O, distributed APIs, and J2EE. It describes the various types of exceptions that can occur and what they mean. Unless you dont know how to read the javadocs, there is no new, useful info there.
It also seems to lack focus throughout. Too much of the book covers material outside of the scope of exceptions. For example, it discusses common software patterns and then just throws in a couple of sentences about exception handling to tie it back in. However, for the most part the exception handling techniques are not described well enough and lack thorough, concrete examples.
I wish the author would have made chapter 12, exception handling patterns, the bulk of the book. Then maybe I would feel closer to the books claims of 'Master application-wide exceptyion handling startegies' and 'Learn proven design patterns for handling exceptions in code'.
Maybe I was just expecting too much. After reading the books description I was expecting something like 'Core J2EE Patterns' for the exception realm - something that would get me excited about applying a bunch of new patterns/techniques. But I really got a book of general information.
If you already have a solid grasp on exceptions (e.g. concepts like chaining, when to handle vs declare, custom application exceptions, multi-tier environments, etc) then I dont recommend this book.
【翻译内容】 也许仅仅适合初学者
很不幸,我对这本书感觉很失望。也许是应为期望值过大,想着此书会提供很多我不知道的信息以及有价值且能帮助我学习异常处理(exception handling)模式的原理(并且还会通过例题来解释)。
我不确定作者是打算给那一类的读者写的。虽然这本书对JAVA及其异常处理特征的初学者来说还算适用,但总得来说我从中并没有得到什么太大的长进。而且书中有几节是参考Servlets/JSP 与 EJB 的概念,这对初学者来说似乎有点杂乱无章。
我认为书中的大部分内容包括的要么就是你很可能已经知道的,要么就是从API文档中轻而易举就能掌握的几个基本话题。比如,第七章至第九章(130页)讲的是关于JAVA的那几个核心(core)类,Collections, I/O, Distributed API, 以及J2EE。 书中还描述了多个可能出现的异常种类的含义。除非你不会看javadoc,否则此书中没有什么新的,有用的信息。
整本书看上去还缺乏焦点。有太多的内容都超出了异常处
|