Joshua Bloch is a professor at Carnegie Mellon University. He was formerly the chief Java architect at Google, a distinguished engineer at Sun Microsystems, and a senior systems designer at Transarc. He led the design and implementation of numerous Java platform features, including the JDK 5.0 language enhancements and the Java Collections Framework. He holds a Ph.D. in computer science from Carnegie Mellon University and a B.S. in computer science from Columbia University.
The Definitive Guide to Java Platform Best Practices—Updated for Java 9
Java has changed dramatically since the previous edition of Effective Java was published shortly after the release of Java 6. This Jolt award-winning classic has now been thoroughly updated to take full advantage of the latest language and library features. The support in modern Java for multiple paradigms increases the need for specific best-practices advice, and this book delivers.
As in previous editions, each chapter of Effective Java, Third Edition, consists of several “items,” each presented in the form of a short, stand-alone essay that provides specific advice, insight into Java platform subtleties, and updated code examples. The comprehensive descriptions and explanations for each item illuminate what to do, what not to do, and why.
The third edition covers language and library features added in Java 7, 8, and 9, including the functional programming constructs that were added to its object-oriented roots. Many new items have been added, including a chapter devoted to lambdas and streams.
New coverage includes
Functional interfaces, lambda expressions, method references, and streams
Default and static methods in interfaces
Type inference, including the diamond operator for generic types
The @SafeVarargs annotation
The try-with-resources statement
New library features such as the Optional<T> interface, java.time, and the convenience factory methods for collections
##其实目前 Intellij IDEA 的建议中包含了不少。其他收获:不能过度使用 Streams 影响代码可读性,尽量用除了 String 以外其他可用的类型,用primitive 而不用 boxed type,尽量用接口而不是反射,异常一定包含最关键的信息,尽量用 executors,tasks,and streams 而少用线程。
评分 评分##搞得我想对译者进行人身攻击 第16条第47条连大标题都翻译错了。第16条 In public classes,use accessor methods,not public fields。明显是倡议使用访问方法,不要直接暴露成员。结果标题翻译成了要在公有类而非公有域中使用访问方法,匪夷所思。我觉得就算让初中生来翻译结合...
评分 评分书是好书,但是翻译简直不堪卒读,有些地方我估计译者可能自己现在都看不懂。英语水平可以的话还是建议和英文版对比着读,我对比的时候就发现几个容易让读者迷惑的地方。比如在第 37 条的最后一段: 原文是: “In a sense, this item is the inverse of Item 19, which says,...
评分 评分##搞得我想对译者进行人身攻击 第16条第47条连大标题都翻译错了。第16条 In public classes,use accessor methods,not public fields。明显是倡议使用访问方法,不要直接暴露成员。结果标题翻译成了要在公有类而非公有域中使用访问方法,匪夷所思。我觉得就算让初中生来翻译结合...
评分##书是好书,翻译不是特别好
评分##抱歉没有购买正版图书!该书内容同样不太适合完全没有java基础或者是java实战经验较少的同学阅读。与很多偏向编程技巧书籍类似,若没有一定的实战经验,很难去理解作者全书中讲解的奇淫异术,不过新手也可以作为基础知识学习的扩展,不至于“第一份”代码因为缺少太多实战...
本站所有内容均为互联网搜索引擎提供的公开搜索信息,本站不存储任何数据与内容,任何内容与数据均与本站无关,如有需要请联系相关搜索引擎包括但不限于百度,google,bing,sogou 等
© 2025 book.tinynews.org All Rights Reserved. 静思书屋 版权所有