《Effective Java》封面

Effective Java

Joshua Bloch · 初版 2001 年

172人推荐
243位读者提及
287次提及

为什么值得读

  • 坦率指出语言深层的丑陋缺陷与坑点
  • 传授规避臃肿标准库的干净代码法则
  • 书中实践经验已融入主流社区规范

Hacker News 上怎么说

  • ……遇到特定问题时我会翻一翻,但平时我更多是细细品味(我那本在两年背包旅行后卖掉了,当时我发誓再也不写代码了……哎呀!)。《Effective Java》(还有 C++ 那本)简直就是从业者的江湖秘笈。里面的教导已经被整个语言社区吸收融合了,你在各种代码库里都能看到。我的建议是学着用你最顺手的编辑器配合 TAGS 文件,然后去……

    …something I flip through when facing particular problems, but generally I savor it (ended up selling my copy after my 2 year backpacking trip, back when I swore I'll never write software again .. oops!) Effective Java (C++) are practitioner lore. Their teachings have been subsumed by the language community and you can see it in code bases. My advice is to learn to use your favorite editor with a TAGS file, then go…

  • ……方法(现在靠接口的 default method 算是能绕过这点,能用了)。Java 本质上就是门没什么强烈主见的语言,得靠严谨的实践才能驾驭好(参见 Joshua Bloch 的《Effective Java》),但除此之外它绝对不算太烂,你完全能用它写出非常健壮、易读的代码。如果这篇文章的……我也会愿意花更多时间读一读。

    …methods (sort of can workaround this now get this now with default interface methods). Java is basically just a really un-opinionated language that requires careful practices to wield it properly (see Effective Java by Joshua Bloch) but other than that it isn't a completely terrible language and you can write some really robust, easy to read code with it. I would also have a lot more time for this article if the…

  • 满满的回忆啊。虽然写得不算太好,但如果你深陷那种极其独特的 Java / C# 地狱,里面的大部分建议还是很中肯的。2001 年出的那本《Effective Java》,对于任何还没读过的 Java 程序员来说,绝对仍然是“必读”神作之一。在书里,Joshua Bloch 从一开始就说得非常透彻,把 Java 骨子里那些丑陋的瑕疵全摊开来讲了……

    Oh the memories. It's not very well written but most advices are sound if you're stuck in that very particular Java / C# hell. The book "Effective Java" (from 2001) still has to one the "must read" for any Java programmer that didn't read it. In it Joshua Bloch has always been very clear, from the start, about all the deeply ingrained ugly Java warts…

  • ……http://hg.openjdk.java.net/jdk7/jdk7/jdk/file/00cd9dc3c2b5/s... 不过话说回来,Java 标准库极其庞大,而且里面充斥着大量历史包袱(cruft)。要想写出干净的 Java,你真得避开标准库的大部分东西(去读读 Josh Bloch 的《Effective Java》),然后补充几个关键的缺失组件(比如用 Guava)。Golang 在这方面真的很独特,你读它的标准库就能学会 Go。那代码写得又漂亮又直白。它的标准库……

    …http://hg.openjdk.java.net/jdk7/jdk7/jdk/file/00cd9dc3c2b5/s... But of course the Java standard library is immense and has a lot of cruft in it. To write clean Java you really need to avoid much of the standard library (read Effective Java by Josh Bloch) and add a few important missing parts (use Guava). Golang is really unique in that regard. You can learn Go by reading the standard library. It is beautiful, linear code. The library is…

  • ……peer。但我对那个模式的理解是,核心在于不能让其他对象把指向你 peer 的引用给拐跑了,而这恰恰就是这里翻车的原因。(题外话:Josh Bloch 的《Effective Java》和《Java 解惑》都写得太棒了。不管你用什么语言,都值得一读。)

    …peers'. My understanding of that pattern, however, is that the key is not letting some other object walk off with a reference to your peer, which is exactly what has gone wrong here. (Aside: Josh Bloch's Effective Java & Java Puzzlers are fantastic. They are worth reading for programmers who use any language.)

  • ……单凭这一点就让它成了更具吸引力的应用开发平台。框架选择极多,而且没有 vendor lock-in(厂商锁定),简直完胜。如果你真心想学好,赶紧去买一本 Joshua Bloch 写的《Effective Java》——绝对是市面上最牛的 Java 通用教材,没有之一。

    …alone makes it a much more attractive platform to build apps on. The number of choices in terms of frameworks + no vendor lock in makes it a winner. If you're serious about learning it pick up a copy of Effective Java by Joshua Bloch -- by far the best general Java book out there.

正在加载完整评论……

键盘快捷键

/
聚焦搜索框
j / k
下一本 / 上一本
Enter
打开选中的书
Esc
关闭 / 返回
g h
回到首页
g b
值得读精选
g t
历史总榜
g r
上升最快
g l
我的书架
?
显示本帮助