Buy Used
Used - Very Good See details
$4.02 & eligible for FREE Super Saver Shipping on orders over $25. Details

or
Sign in to turn on 1-Click ordering.
 
   
Have one to sell? Sell yours here
Java 2 Performance and Idiom Guide
 
See larger image
 
Tell the Publisher!
I'd like to read this book on Kindle

Don't have a Kindle? Get your Kindle here, or download a FREE Kindle Reading App.

Java 2 Performance and Idiom Guide [Hardcover]

Craig Larman (Author), Rhett Guthrie (Author)
4.2 out of 5 stars  See all reviews (23 customer reviews)


Available from these sellers.


Textbook Student FREE Two-Day Shipping for Students. Learn more

Formats

Amazon Price New from Used from
Hardcover --  
Paperback --  

Book Description

0130142603 978-0130142603 September 16, 1999 1st
It's one thing to write Java programs that run. It's another to write elegant Java programs that deliver exceptional performance. For that, you need a profound understanding of Java idioms and style: That's what Java 2 Performance and Idiom Guide delivers: a complete guide to more than 100 Java best practices you'd otherwise have to learn the hard way -- and might never learn! Coverage includes best practices for using the Java language; best practices idioms associated with the key Java libraries; and the patterns and idioms of concurrent programming. The book offers the best coverage of Java performance optimization ever published. You'll learn how to organize Java packages for maximum effectiveness and maintainability; how to test object-oriented Java code; and much more. Larman and Guthrie have bundled a career's worth of Java insight into a single 240-page book -- and every Java developer will benefit from owning a copy.


Editorial Reviews

Amazon.com Review

Written for the working Java programmer, the Java 2 Performance and Idiom Guide provides many tips for improving the efficiency (and readability) of your Java code. It provides a useful reference that will benefit any serious Java developer.

The most notable thing about this book is that it provides a real-world perspective on what does and doesn't work for optimizing Java. (The authors' advice is sometimes counterintuitive, and as Java compilers and environments have improved, outguessing the compiler has become a tricky business.) This book is organized into sections based on the likely effect of the suggested optimizations (from "major-moderate" to "minor" improvements). The authors test their code (and provide benchmark numbers) to back up what they say.

Advice on limiting object creation and remote calls, as well as proper class design for custom classes (especially the implementation custom equals() methods and using object factories) are absolutely invaluable here. The authors also look at how to choose the correct Java 2 collection class for your needs. Included in the discussion are several software patterns and "idioms" (language-specific tips), which can lead to more efficient and reusable designs. With a section on naming conventions, this book also promotes good programming style as well as more efficient code.

As a grab bag of hints for writing better code, the Java 2 Performance and Idiom Guide offers something for almost any Java developer. It demonstrates the authors' considerable experience in real-world projects to show some workarounds for problems that you will sometimes encounter when putting Java into the field for the first time, as well as some leading-edge thinking about efficient class design. --Richard Dragan

Topics covered: Java performance and optimization overview; hardware and memory performance hints; Sun HotSpot JVM; server-side performance issues; optimization hints for algorithms, collections, strings, and object creation; patterns; idioms for designing custom classes; dynamic classloading; constructors and object factories; concurrency hints; resource bundling and internationalization tips; exceptions; interfaces; inner classes and constructors; packaging; testing hints (white-box and unit testing); Java naming conventions; and Java coding style.

From the Back Cover

Thank you for considering the Java 2 Performance and Idiom Guide. The goal of this book is to document the common idioms and optimization techniques that experienced Java developers should know. The topics are presented specifically for Java 2, including coverage of features such as the Collections Framework and the HotSpot JVM.

High Performance Java-write fast code

Our goal is to help catapult the beginner or intermediate Java developer over the chasm of performance pitfalls the Java platform challenges us with. Thus, the book includes a broad introduction to optimizing for speed and space, including:

  • Design level optimization principles
  • Environment and tool strategies
  • Algorithm and data structure strategies
  • Language and library specific optimization techniques.

Idioms in Java-write code fast

There are a wide variety of "tricks of the Java trade" or idioms that experienced Java developers apply to develop solid code. Like design patterns, coding idioms provide out-of-the-box solutions for many problems. Unlike design patterns, these idioms are very close to code and therefore take maximum advantage of the Java language and libraries. They include:

  • Idiomatic usage of particular JDK classes and APIs, such as the Reflection API.
  • Concurrency idioms to create thread-safe code
  • Packaging and application structure idioms
  • Naming and coding style idioms

Product Details

  • Hardcover: 299 pages
  • Publisher: Prentice Hall PTR; 1st edition (September 16, 1999)
  • Language: English
  • ISBN-10: 0130142603
  • ISBN-13: 978-0130142603
  • Product Dimensions: 9.2 x 7.1 x 1.1 inches
  • Shipping Weight: 1.8 pounds
  • Average Customer Review: 4.2 out of 5 stars  See all reviews (23 customer reviews)
  • Amazon Best Sellers Rank: #2,503,148 in Books (See Top 100 in Books)

More About the Authors

Discover books, learn about writers, read author blogs, and more.

 

Customer Reviews

23 Reviews
5 star:
 (13)
4 star:
 (4)
3 star:
 (3)
2 star:
 (3)
1 star:    (0)
 
 
 
 
 
Average Customer Review
4.2 out of 5 stars (23 customer reviews)
 
 
 
 
Share your thoughts with other customers:
Most Helpful Customer Reviews

11 of 11 people found the following review helpful:
5.0 out of 5 stars If you want to know more than the syntax, buy this book., October 14, 1999
This review is from: Java 2 Performance and Idiom Guide (Hardcover)
This book was very reminiscent of Effective C++. It allows a developer who is experienced, but just moving to Java, to get a jump start on how to effectively use the language. Even though most of the information was familiar to me, I wish I would have had a book like this when I began using Java. A great distillation of experience!

Erik

Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


17 of 19 people found the following review helpful:
3.0 out of 5 stars Moderately useful, January 21, 2000
By A Customer
This review is from: Java 2 Performance and Idiom Guide (Hardcover)
This book is moderately useful if you are relatively new to Java -- with two months of active work in a Java environment most everything in it should seem like common sense. For a beginner just after learning the language syntax, I would recommend it. For someone with, say, a years experience -- given the price -- this book would be a waste of money. Since that's pretty much a match with the authors' claims, I don't fault the book for that. My only real complaint is that the performance section is just plain weak.

One word of warning: this book should not under any circumstances be compared to the Scott Meyers C++ books. Those books are really indispensible no matter what your level of experience and deal in depth with language issues that are not obvious and often new features of the language standard.

Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


9 of 9 people found the following review helpful:
4.0 out of 5 stars Good quick read, June 23, 2000
This review is from: Java 2 Performance and Idiom Guide (Hardcover)
This book is not highly organized, reading more like an almanac than a textbook, but I think that is a plus here. I bought the book for the performance section, and picked up a couple things that only a guru would pick up on their own (e.g. the fact that Strings recalc their hash key every time). By cruising through all the points it helps reinforce your existing knowlege of to-do's and not to-do's, as well as comparing tradeoffs of similar choices. I ended up with some added confidence for my "common sense" programming practices, and some very valuable insight in some unfamiliar areas.

The downside is that this hardcover book is expensive for it quantity of content, and doesn't lend itself well to revisions. I actually like the brevity and white space, but I was able to browse the entire performance section is about 90-min. A perfect handbook! A pricy textbook.

I would have preferred to buy a cheap paperback version that might benefit from yearly revisions (like The Java Developer's Almanac), especially since I'm sure new revelations of performance tuning will materialize as the Java language matures and grows. Also, the book only covers general Java performance, touching on RMI, AWT, and Collections, but really staying close to the java.lang package... I'm sure there is a lot that could have been covered in specific API's (Java 2D, 3D, JDBC, etc.)

Overall this book is a keeper! Strong praise since even after being very picky about spending my book money I still end up trashing 50% of the books I buy.

I look forward to future expanded (and cheaper) editions.

Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No

Share your thoughts with other customers: Create your own review
 
 
 
Most Recent Customer Reviews











Only search this product's reviews



Suggested Tags from Similar Products

 (What's this?)
Be the first one to add a relevant tag (keyword that's strongly related to this product).
 
(86)
(12)
(25)

Your tags: Add your first tag
 

Sell a Digital Version of This Book in the Kindle Store

If you are a publisher or author and hold the digital rights to a book, you can sell a digital version of it in our Kindle Store. Learn more

Customer Discussions

This product's forum
Discussion Replies Latest Post
No discussions yet

Ask questions, Share opinions, Gain insight
Start a new discussion
Topic:
First post:
Prompts for sign-in
 


Active discussions in related forums
Search Customer Discussions
Search all Amazon discussions
   
Related forums



So You'd Like to...


Create a guide


Look for Similar Items by Category


Look for Similar Items by Subject