出版社: Addison-Wesley Professional
副标题: Traps, Pitfalls, and Corner Cases
出版年: 2005
页数: 312
定价: $39.99
装帧: Paperback
ISBN: 9780321336781
内容简介 · · · · · ·
"Every programming language has its quirks. This lively book reveals oddities of the Java programming language through entertaining and thought-provoking programming puzzles." --Guy Steele, Sun Fellow and coauthor of The Java(t) Language Specification "I laughed, I cried, I threw up (my hands in admiration)." --Tim Peierls, president, Prior Artisans LLC, and member of the JS...
"Every programming language has its quirks. This lively book reveals oddities of the Java programming language through entertaining and thought-provoking programming puzzles." --Guy Steele, Sun Fellow and coauthor of The Java(t) Language Specification "I laughed, I cried, I threw up (my hands in admiration)." --Tim Peierls, president, Prior Artisans LLC, and member of the JSR 166 Expert Group How well do you really know Java? Are you a code sleuth? Have you ever spent days chasing a bug caused by a trap or pitfall in Java or its libraries? Do you like brainteasers? Then this is the book for you! In the tradition of Effective Java(t), Bloch and Gafter dive deep into the subtleties of the Java programming language and its core libraries. Illustrated with visually stunning optical illusions, Java(t) Puzzlers features 95 diabolical puzzles that educate and entertain. Anyone with a working knowledge of Java will understand the puzzles, but even the most seasoned veteran will find them challenging. Most of the puzzles take the form of a short program whose behavior isn't what it seems. Can you figure out what it does? Puzzles are grouped loosely according to the features they use, and detailed solutions follow each puzzle. The solutions go well beyond a simple explanation of the program's behavior--they show you how to avoid the underlying traps and pitfalls for good. A handy catalog of traps and pitfalls at the back of the book provides a concise taxonomy for future reference. Solve these puzzles and you'll never again fall prey to the counterintuitive or obscure behaviors that can fool even the most experienced programmers.
作者简介 · · · · · ·
JOSHUA BLOCH是Google的首席工程师,以及获得过Jolt最畅销奖的《高效Java编程语言指南(Effective Java Programming Language Guide)》(Addson-Wesley,2001)一书的作者。他之前是Sun Microsystems的杰出工程师和Transarc的资深系统设计师。Josh领导了大量的Java平台特性的设计与实现工作,包括JDK 5.0中的语言增强和获奖的Java集合框架。他拥有卡耐基.梅隆大学计算机科学的博士学位。 NEAL GAFTER是Google的软件工程师和Java的传道者。他之前是Sun Microsystems的资深员工工程师,在那里他领导了Java编译器的开发工作,并且通过5.0版实现了1.4版中的Java语言特性。Neal曾经是C++标准委员会的成员,他在Sun M...
JOSHUA BLOCH是Google的首席工程师,以及获得过Jolt最畅销奖的《高效Java编程语言指南(Effective Java Programming Language Guide)》(Addson-Wesley,2001)一书的作者。他之前是Sun Microsystems的杰出工程师和Transarc的资深系统设计师。Josh领导了大量的Java平台特性的设计与实现工作,包括JDK 5.0中的语言增强和获奖的Java集合框架。他拥有卡耐基.梅隆大学计算机科学的博士学位。 NEAL GAFTER是Google的软件工程师和Java的传道者。他之前是Sun Microsystems的资深员工工程师,在那里他领导了Java编译器的开发工作,并且通过5.0版实现了1.4版中的Java语言特性。Neal曾经是C++标准委员会的成员,他在Sun Microsystems、Microtec Research和Texas Instruments时领导了C和C++编译器的开发工作。他拥有罗彻斯特大学计算机科学的博士学位。
目录 · · · · · ·
Introduction
Expressive Puzzlers
Puzzle 1: Oddity
Puzzle 2: Time for a Change
Puzzle 3: Long Division
· · · · · · (更多)
Introduction
Expressive Puzzlers
Puzzle 1: Oddity
Puzzle 2: Time for a Change
Puzzle 3: Long Division
Puzzle 4: It's Elementary
Puzzle 5: The Joy of Hex
Puzzle 6: Multicast
Puzzle 7: Swap Meat
Puzzle 8: Dos Equis
Puzzle 9: Tweedledum
Puzzle 10: Tweedledee
Puzzlers with Character
Puzzle 11: The Last Laugh
Puzzle 12: ABC
Puzzle 13: Animal Farm
Puzzle 14: Escape Rout
Puzzle 15: Hello Whirled
Puzzle 16: Line Printer
Puzzle 17: Huh?
Puzzle 18: String Cheese
Puzzle 19: Classy Fire
Puzzle 20: What's My Class?
Puzzle 21: What's My Class, Take 2
Puzzle 22: Dupe of URL
Puzzle 23: No Pain, No Gain
Loopy Puzzlers
Puzzle 24: A Big Delight in Every Byte
Puzzle 25: Inclement Increment
Puzzle 26: In the Loop
Puzzle 27: Shifty i's
Puzzle 28: Looper
Puzzle 29: Bride of Looper
Puzzle 30: Son of Looper
Puzzle 31: Ghost of Looper
Puzzle 32: Curse of Looper
Puzzle 33: Looper Meets the Wolfman
Puzzle 34: Down for the Count
Puzzle 35: Minute by Minute
Exceptional Puzzlers
Puzzle 36: Indecision
Puzzle 37: Exceptionally Arcane
Puzzle 38: The Unwelcome Guest
Puzzle 39: Hello, Goodbye
Puzzle 40: The Reluctant Constructor
Puzzle 41: Field and Stream
Puzzle 42: Thrown for a Loop
Puzzle 43: Exceptionally Unsafe
Puzzle 44: Cutting Class
Puzzle 45: Exhausting Workout
Classy Puzzlers
Puzzle 46: The Case of the Confusing Constructor
Puzzle 47: Well, Dog My Cats!
Puzzle 48: All I Get Is Static
Puzzle 49: Larger Than Life
Puzzle 50: Not Your Type
Puzzle 51: What's the Point?
Puzzle 52: Sum Fun
Puzzle 53: Do Your Thing
Puzzle 54: Null and Void
Puzzle 55: Creationism
Library Puzzlers
Puzzle 56: Big Problem
Puzzle 57: What's in a Name?
Puzzle 58: Making a Hash of It
Puzzle 59: What's the Difference?
Puzzle 60: One-Liners
Puzzle 61: The Dating Game
Puzzle 62: The Name Game
Puzzle 63: More of the Same
Puzzle 64: The Mod Squad
Puzzle 65: A Strange Saga of a Suspicious Sort
Classier Puzzlers
Puzzle 66: A Private Matter
Puzzle 67: All Strung Out
Puzzle 68: Shades of Gray
Puzzle 69: Fade to Black
Puzzle 70: Package Deal
Puzzle 71: Import Duty
Puzzle 72: Final Jeopardy
Puzzle 73: Your Privates Are Showing
Puzzle 74: Identity Crisis
Puzzle 75: Heads or Tails?
More Library Puzzlers
Puzzle 76: Ping Pong
Puzzle 77: The Lock Mess Monster
Puzzle 78: Reflection Infection
Puzzle 79: It's a Dog's Life
Puzzle 80: Further Reflection
Puzzle 81: Charred Beyond Recognition
Puzzle 82: Beer Blast
Puzzle 83: Dyslexic Monotheism
Puzzle 84: Rudely Interrupted
Puzzle 85: Lazy Initialization
Advanced Puzzlers
Puzzle 86: Poison-Paren Litter
Puzzle 87: Strained Relations
Puzzle 88: Raw Deal
Puzzle 89: Generic Drugs
Puzzle 90: It's Absurd, It's a Pain, It's Superclass!
Puzzle 91: Serial Killer
Puzzle 92: Twisted Pair
Puzzle 93: Class Warfare
Puzzle 94: Lost in the Shuffle
Puzzle 95: Just Desserts
Catalog of Traps and Pitfalls
Notes on the Illusions
References
Index
· · · · · · (收起)
喜欢读"Java Puzzlers"的人也喜欢 · · · · · ·
Java Puzzlers的书评 · · · · · · ( 全部 11 条 )

Be careful with Java

a very interesting book
这篇书评可能有关键情节透露
从当当网上买的,翻看了很多次,对其中的大部分puzzler已经熟悉了。 作者在preface中郑重建议: 大家先思考自己的答案,然后运行代码看真实答案,一般来说,你想的和程序运行结果是不会相同的,而且程序结果往往会让你百思不得其解。这正是这本书的魅力所在。 这些puzz... (展开)
Java Puzzlers

大师之作!凡是用java的都应该看!


Java Traps and Pitfalls
> 更多书评 11篇
论坛 · · · · · ·
puzzler 43,不甚解 | 来自kruce | 2006-11-10 16:29:05 | |
脑筋急转弯 | 来自Jean | 9 回应 | 2006-11-09 16:13:32 |
这本书的其他版本 · · · · · · ( 全部5 )
-
人民邮电出版社 (2006)8.5分 327人读过
-
人民邮电出版社 (2010)8.8分 101人读过
-
人民邮电出版社 (2006)8.4分 22人读过
-
人民邮电出版社 (2006)暂无评分
以下书单推荐 · · · · · · ( 全部 )
- 从码熊到码雄之路 (不在服务区)
- 程序员必读书单 (White)
- 计算机 (Iinoku)
- Java程序员必读书目 (Reed Lin)
- java (adam)
谁读这本书? · · · · · ·
二手市场
· · · · · ·
- 在豆瓣转让 有294人想读,手里有一本闲着?
订阅关于Java Puzzlers的评论:
feed: rss 2.0
0 有用 Raid 2016-10-14 18:01:28
比较偏门的一些pitfall, 实用性没有Effective Java高, 但是是有着难得价值的预防针
1 有用 figure9 2018-09-30 11:15:54
Am I the only one that feels some examples are too "artificial" to be practical in this book?
0 有用 自言自语 2018-12-23 14:27:00
章节碎片化,每个都很小。很多章节五分钟就读完。适合茶歇,乘车挤地铁时拿了看看。
0 有用 applewood 2011-06-05 14:46:18
短小,经典。java之父对java语法的给出的小tip
0 有用 wscanf 2016-02-01 17:56:59
茶余饭后,功力略长。
0 有用 自言自语 2018-12-23 14:27:00
章节碎片化,每个都很小。很多章节五分钟就读完。适合茶歇,乘车挤地铁时拿了看看。
1 有用 figure9 2018-09-30 11:15:54
Am I the only one that feels some examples are too "artificial" to be practical in this book?
0 有用 springz 2018-04-12 10:28:26
和大拿的其他书一样,几乎一直在告诫读者:注意基础,规范地写代码,少炫技。就感觉像读一本武功秘籍,读着读着,书中就浮现出八个大字:重剑无锋,大巧不工。 扣一颗星是因为感觉为了凑够每章10个例子,有一些章节有一些题感觉质量不高。
0 有用 chiyahoho 2018-02-16 23:42:06
很多坑都是打竞赛的时候遇到过的,读起来就比较快,一天就看完了,很薄的一本书
1 有用 Jackon 2017-03-13 13:19:15
老板说,答对里面的一道题,工资涨一千.