Buy Used
Used - Very Good See details
$4.08 & 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
Essential Java Style: Patterns for Implementation
 
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.

Essential Java Style: Patterns for Implementation [Paperback]

Jeff Langr (Author), Jeff Lnagr (Author)
3.7 out of 5 stars  See all reviews (20 customer reviews)


Available from these sellers.



Book Description

Essential (Prentice Hall) August 16, 1999
With Essential Java Style, developers finally have a Java style guide that offers detailed patterns for real-world implementation. Using real code, not abstract discussion, Jeff Langr brings together scores of today's best implementation solutions for the problems every Java developer faces. By standardizing on these solutions, developers can build Java programs more quickly, efficiently, and reliably -- and make them dramatically easier to maintain. Langr brings together great ideas from many sources, notably the excellent Smalltalk patterns identified in Kent Beck's Smalltalk Best Practice Patterns (Prentice Hall PTR). He presents patterns that cover methods, messages, state, collections, classes, and formatting. Each pattern appears on its own page, with its own name and summary box designed to show exactly which problem is being solved. By standardizing on Langr's Java patterns, development teams solve the key problems of Java development: widely varying code styles that complicate walkthroughs and maintenance; inconsistent and misleading naming; and inefficient techniques for common operations.


Editorial Reviews

Amazon.com Review

Stylebooks are nothing new to the writing trades. Each publication has one; they dictate such things as whether Bob Jones is called "Mr. Jones" or simply "Jones" on second reference. Stylebooks give a publication's writers a consistent sound and make it easier for readers to extract the information they want. Though they're not exactly the same as magazine stories, computer programs are written works too. In Essential Java Style: Patterns for Implementation, Jeff Langr holds forth on a series of Java judgment calls, explaining why he thinks certain approaches are better than others. In his defense of his strategies (patterns, to use object-orientation jargon), Langr takes into account both the human need to read the source code and the design goal of making the program execute speedily and in a resource-efficient way. The approach Langr outlines here should prove useful on large software projects, particularly those that involve multiple team members that need to quickly figure out what the others are doing.

Langr's opinion on the "instanceof" operator is a good example. Generally, he says, "instanceof" is a bad tool to use (in a manner similar to that of a switch statement) for identifying an object's class. It's a resource pig, and multiple tests can be hard to follow in code. It's better, he says, to use polymorphism to endow each of several subclasses with identically named methods, each with a different effect. This is the kind of stuff Java programmers debate all the time, but Essential Java Style makes strong cases for many stock solutions. --David Wall

Topics covered: Patterns for solving programming problems in Java, including those relating to methods, messages, problems of state, data structures, formatting, and execution tweaking.

From the Back Cover

The definitive style guide for writing readable, maintainable Java code

With Essential Java Style, developers finally have a Java style guide that offers detailed patterns for real-world implementation. Using GGD1real code, not abstract discussion, Jeff Langr brings together scores of today's best implementation solutions for the problems every Java developer faces. By standardizing these solutions, developers can build Java programs more quickly, efficiently, and reliably-and above all, make them dramatically easier to maintain.

Langr brings together the most useful ideas from many sources, notably the excellent Smalltalk patterns identified in Kent Beck's Smalltalk Best Practice Patterns (Prentice Hall, ISBN: 0-13-476904-X). The patterns in Essential Java Style cover methods, messages, state, collections, classes, and formatting. Each pattern appears on its own page, with its own name and summary box designed to show exactly which problem is being solved.

Streamline the development processes by using these patterns to eliminate random coding and naming styles that complicate maintenance, overly procedural code that can be difficult to understand, and varying techniques for common operations that are often inefficient.

Essential Java Style will be an invaluable reference for Java developers, managers, and other technical professionals throughout the entire project lifecycle by providing:

  • The industry's best solutions for dozens of common operations
  • Techniques for both JDK 2 and JDK 1.1
  • Detailed coverage of the Java 2 Collections Framework
  • Techniques for making code more understandable without extensive commenting
  • Detailed patterns for real-world implementation
  • Real "best-practices" code for real Java challenges
  • Patterns covered include behavior, state, collections, classes, and formatting
  • The ideal reference for team-based development!

Product Details

  • Paperback: 277 pages
  • Publisher: Prentice Hall PTR; 1st edition (August 16, 1999)
  • Language: English
  • ISBN-10: 0130850861
  • ISBN-13: 978-0130850867
  • Product Dimensions: 8.6 x 5.7 x 0.9 inches
  • Shipping Weight: 1.1 pounds
  • Average Customer Review: 3.7 out of 5 stars  See all reviews (20 customer reviews)
  • Amazon Best Sellers Rank: #2,354,126 in Books (See Top 100 in Books)

More About the Author

I'm the owner of Langr Software Solutions, a provider of software development consulting and training services. I love programming and have been doing it since high school (including 28 years of getting paid to do it). In addition to the three books under my name at Amazon, you'll find a couple chapters from me in Uncle Bob's book Clean Code. I've also written over 100 articles on software development.

Tim Ottinger and I have been loving the feedback on the Agile In a Flash card & book project, but we'd love to hear more from you. If you've found the cards useful, please take a few minutes to post a review at Amazon. Or just blog about it.

I'm always looking to help people. Please feel free to email me with relevant questions.

When not doing software stuff, you'll find me riding my Vulcan 900 Classic, taking dance lessons with my wife, at the gym trying to lose weight, listening to or playing music, or hiking/biking around Colorado Springs.

 

Customer Reviews

20 Reviews
5 star:
 (8)
4 star:
 (4)
3 star:
 (4)
2 star:
 (2)
1 star:
 (2)
 
 
 
 
 
Average Customer Review
3.7 out of 5 stars (20 customer reviews)
 
 
 
 
Share your thoughts with other customers:
Most Helpful Customer Reviews

36 of 39 people found the following review helpful:
3.0 out of 5 stars A SmallTalk book disguised as a Java book, December 10, 1999
By 
Brian Slesinsky (San Francisco, CA) - See all my reviews
This review is from: Essential Java Style: Patterns for Implementation (Paperback)
This book was written by an ex-SmallTalk programmer and works best as an opinionated perspective on Java from the SmallTalk programmer's point of view. Langr does a fair amount of complaining about things he believes are not as well done in Java as in Smalltalk, and while I don't always agree, it's an interesting discussion.

However, one gets the impression that he took a list of patterns that work well in SmallTalk and reimplemented them in Java, rather than coming up with a list of best practices specifically for Java. Some patterns are so awkward in Java that Langr admits to it and doesn't recommend them -- so why mention them at all?

Far too much space is devoted to collections. Most of the recommendations about collections are not really patterns at all, but rather a recapitulation of the API - do we really need a recommendation to use the Stack class to implement a stack? Much tedium could have been avoided simply by recommending that Java developers review the Java collection classes occasionally to avoid inadvertently reinventing the wheel.

In contrast, there's no discussion of multithreading. Java's assumption of threads everywhere is where it differs most from other languages. Many design patterns are changed in the presence of multithreading - the pattern of method calls determines how much work is done atomically and how objects get locked, so refactoring methods is not simply a matter of style.

So, while the book is interesting and brings SmallTalk ideas to a larger audience, it doesn't really work as a definitive style guide for Java.

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


18 of 18 people found the following review helpful:
4.0 out of 5 stars Good concise source of important Java and OO concepts., January 14, 2000
By 
L. Milone "skykeys" (Wallingford, PA USA) - See all my reviews
(REAL NAME)   
This review is from: Essential Java Style: Patterns for Implementation (Paperback)
I come from a similar background as Jeff; COBOL and Smalltalk and I'm just learning Java. The difference between structured/procedural code like COBOL, and true OO code like Smalltalk and Java is significant. I've seen many programmers (including myself) jump to an OO language but still code procedurally. It's a matter of thinking conceptually in objects, and that turns out to be surprisingly difficult for people who have coded procedurally for some time. (This includes Visual Basic, which is not a true OO language). They will think it's OO code, but in reality it isn't, or at least not good OO code.

Jeff's book hightlights the essence of Java from the one-foot level: the actual code. Keeping methods short and sweet is a concept lost on many programmers making the jump to OO. Thinking in terms of patterns of objects interacting with each other is also a change in approach to the way many programmers "intuit" the design of their code.

Learning Java is not as much about learning the syntax as it is about developing object models before you begin coding, and then once you have the model, it's about implementing the methods correctly. I believe Jeff does a nice job of showing us what well formed OO methods really should look and feel like, as well as creating a style framework on which to base an approach to create consistent, reusable code.

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


17 of 18 people found the following review helpful:
3.0 out of 5 stars Great concepts, great examples, but poorly organized, October 4, 1999
By A Customer
This review is from: Essential Java Style: Patterns for Implementation (Paperback)
Most programming books on the market today cover a particular language, programming technique, or field of computer science. Aside from university texts, which deal with theory, most popular titles deal with practical issues - the nitty-gritty details of day to day software development. They're quick, fast paced, and teach a particular topic, such as Java networking, or JDBC, or Swing/AWT programming. They focus on how to achieve a task, on short-term goals for programmers on the run.

A rarer, but no less important, type of book is one that focuses improving the quality of software development. These type of books usually become industry classics, if written well, and are adopted by universities teaching software engineering classes. But they aren't always relevant to "real-life" software developers, who are often constrained by deadlines and just don't have the time to produce perfectly polished code. The rarest type of book of all is one that combines solid theory, with practical applications. That's the type of book that "Essential Java Style : Patterns for Implementation" attempts to be.

The principle underlying this book is that there are certain ways of writing code that can improve the quality of software, and make it easier to create, modify and debug. The book introduces the reader to the principle of design patterns. Design patterns are reusable templates for software design, that represent tried and true solutions to common problems. Design pattern books have been available for C++ and Smalltalk developers for years - but there has been a shortage of good pattern books for Java. "Essential Java Style" provides real-life code examples in Java, as well as a good discussion of the reasons behind these patterns and how they can aid the software development process.

The patterns are, for the most part, extremely useful and relevant to practical Java programming - though a certain amount of theoretical patterns that will cause an understanding amount of frustration in practical development are also included. My feeling is that some patterns would have been best left out, while others are such a revolutionary idea that every Java programmer should observe them. The challenge, for the reader, is to choose which patterns to adopt, and which to refrain from applying in practice.

While "Essential Java Style : Patterns for Implementation" is an extremely good book for software developers, beginners to design patterns and Java will find the book challenging. In addition, the book suffers from very poor organization -- patterns are not in order, and the reader will have to jump from one to another to gain a thorough understanding. This not withstanding, almost every developer will gain from applying these design patterns to their applications -- not only in the short term, but in the years to come as the application is refined and maintained. The techniques described within "Essential Java Style" : Patterns for Implementation" will most benefit the professional software developer, who is involved in a team project and a medium-to-large-scale software project. -- David Reilly

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



What Other Items Do Customers Buy After Viewing This Item?


Tags Customers Associate with This Product

 (What's this?)
Click on a tag to find related items, discussions, and people.
 
(2)
(2)

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
 

Search Customer Discussions
Search all Amazon discussions
   



So You'd Like to...


Create a guide


Look for Similar Items by Category


Look for Similar Items by Subject