In weniger als einer Minute können Sie mit dem Lesen von Effective Java Programming Language Guide auf Ihrem Kindle beginnen. Sie haben noch keinen Kindle? Hier kaufen.

An Ihren Kindle oder ein anderes Gerät senden

 
 
 

Kostenlos testen

Jetzt kostenlos reinlesen

An Ihren Kindle oder ein anderes Gerät senden

Lesen Sie Bücher auf Ihrem Computer oder auf anderen Mobilgeräten mit unseren GRATIS Kindle Lese-Apps.
Effective Java Programming Language Guide
 
 

Effective Java Programming Language Guide [Kindle Edition]

Joshua Bloch
4.5 von 5 Sternen  Alle Rezensionen anzeigen (10 Kundenrezensionen)

Digitaler Listenpreis: EUR 40,27 Was ist das?
Kindle-Preis: EUR 30,20 Inkl. MwSt. und kostenloser drahtloser Lieferung über Amazon Whispernet
Sie sparen: EUR 10,07 (25%)

Weitere Ausgaben

Amazon-Preis Neu ab Gebraucht ab
Kindle Edition EUR 30,20  
Taschenbuch --  

Produktbeschreibungen

Amazon.co.uk

You may think you're a hot Java programmer, but you aren't perfect--yet. Josh Bloch is one of the Java core architects and in Effective Java Programming Language Guide provides a Java master class.

Bloch provides 57 items (did he reject "varieties"?) grouped by subject. Each item highlights a "gotcha", expands on best practice or argues for deprecating a common practice. For example, among the gotchas, he points out problems with relying on finalisers, whose implementation varies from one JVM to another and may not run at all under some circumstances.

Best practice also gets a lot of airing. A neat example is not relying on Java's default object serialisation API, which--among other problems--can cause the object to break if you make any changes. This can result in a code maintenance nightmare. In the last category he discusses the string concatenation, "+". Using this can be a hundred times slower than appending to a StringBuffer. No problem for a one-off string but using it repeatedly can cripple performance.

Many of the items discussed are fairly trivial, such as returning zero rather than null for zero length arrays or avoiding the use of floats when you need precise answers--perhaps they were thrown in to make the magic "57"--but despite these Effective Java Programming Language Guide offers a fascinating insight into Java's architecture and solid, easily assimilated guidance on its effective usage.

Unlike most books for programmers, this is one you really will find difficult to put down. Every serious Java programmer should read it. --Steve Patient

Amazon.com

Written for the working Java developer, Joshua Bloch's Effective Java Programming Language Guide provides a truly useful set of over 50 best practices and tips for writing better Java code. With plenty of advice from an indisputable expert in the field, this title is sure to be an indispensable resource for anyone who wants to get more out of their code.

As a veteran developer at Sun, the author shares his considerable insight into the design choices made over the years in Sun's own Java libraries (which the author acknowledges haven't always been perfect). Based on his experience working with Sun's best minds, the author provides a compilation of 57 tips for better Java code organized by category. Many of these ideas will let you write more robust classes that better cooperate with built-in Java APIs. Many of the tips make use of software patterns and demonstrate an up-to-the-minute sense of what works best in today's design. Each tip is clearly introduced and explained with code snippets used to demonstrate each programming principle.

Early sections on creating and destroying objects show you ways to make better use of resources, including how to avoid duplicate objects. Next comes an absolutely indispensable guide to implementing "required" methods for custom classes. This material will help you write new classes that cooperate with old ones (with advice on implementing essential requirements like the equals() and hashCode() methods).

The author has a lot to say about class design, whether using inheritance or composition. Tips on designing methods show you how to create understandable, maintainable, and robust classes that can be easily reused by others on your team. Sections on mapping C code (like structures, unions, and enumerated types) onto Java will help C programmers bring their existing skills to Sun's new language. Later sections delve into some general programming tips, like using exceptions effectively. The book closes with advice on using threads and synchronization techniques, plus some worthwhile advice on object serialization.

Whatever your level of Java knowledge, this title can make you a more effective programmer. Wisely written, yet never pompous or doctrinaire, the author has succeeded in packaging some really valuable nuggets of advice into a concise and very accessible guidebook that arguably deserves a place on most any developer's bookshelf. --Richard Dragan

Topics covered:

  • Best practices and tips for Java
  • Creating and destroying objects (static factory methods, singletons, avoiding duplicate objects and finalizers)
  • Required methods for custom classes (overriding equals(), hashCode(), toString(), clone(), and compareTo() properly)
  • Hints for class and interface design (minimizing class and member accessibility, immutability, composition versus inheritance, interfaces versus abstract classes, preventing subclassing, static versus nonstatic classes)
  • C constructs in Java (structures, unions, enumerated types, and function pointers in Java)
  • Tips for designing methods (parameter validation, defensive copies, method signatures, method overloading, zero-length arrays, hints for Javadoc comments)
  • General programming advice (local variable scope, using Java API libraries, avoiding float and double for exact comparisons, when to avoid strings, string concatenation, interfaces and reflection, avoid native methods, optimizing hints, naming conventions)
  • Programming with exceptions (checked versus run-time exceptions, standard exceptions, documenting exceptions, failure-capture information, failure atomicity)
  • Threading and multitasking (synchronization and scheduling hints, thread safety, avoiding thread groups)
  • Serialization (when to implement Serializable, the readObject(), and readResolve() methods)

Produktinformation

  • Format: Kindle Edition
  • Dateigröße: 533 KB
  • Seitenzahl der Print-Ausgabe: 272 Seiten
  • Verlag: Prentice Hall; Auflage: 1 (9. Oktober 2007)
  • Verkauf durch: Amazon Media EU S.à r.l.
  • Sprache: Englisch
  • ASIN: B000OZ0N5I
  • Text-to-Speech (Vorlesemodus): Aktiviert
  • Durchschnittliche Kundenbewertung: 4.5 von 5 Sternen  Alle Rezensionen anzeigen (10 Kundenrezensionen)

  •  Ist der Verkauf dieses Produkts für Sie nicht akzeptabel?

Mehr über den Autor

Joshua Bloch
Entdecken Sie Bücher, lesen Sie über Autoren und mehr

Besuchen Sie die Seite von Joshua Bloch auf Amazon

Tags

 (Was ist das?)
Bei einem Tag handelt es sich um ein Schlagwort, das zum Produkt passt.
Tags erleichtern allen Kunden die Suche und die Sortierung ihrer Lieblingsprodukte.
 

Kundenrezensionen

Die hilfreichsten Kundenrezensionen
8 von 8 Kunden fanden die folgende Rezension hilfreich
Von "aanneck"
Format:Taschenbuch
The books content opened my eyes on several technics that I just didnt know, never ever seen used in any programm. Reading this book felt like reading my introductionary book on java 2 years ago... a whole new world opened before my eyes. Before I read this book, I thought I was an expirienced java programmer... but afterwards I knew there is still a lot to learn... ;) Apart from the content, the structure of this book is great too. Every chapter is complete and can be read on its own. This is great after the first read if you just wan to re-read a special issue. This book is a permanent part of my desk enviroment and I use it every day. If you don't have this book yet, go buy it!
War diese Rezension für Sie hilfreich?
21 von 23 Kunden fanden die folgende Rezension hilfreich
Tiefe einblicke in Java 2. März 2002
Format:Taschenbuch
Endlich mal wieder ein Buch, dass sich nicht nur mit irgendwelchen Hochtrabenden Luftblasen beschäftigt, sondern die immer stiefmütterlich behandelten Basics aufs Korn nimmt.

Die hier 57 vorgestellten Items sollte jeder Java Programmierer beherzigen. Außerdem gibt es viele Tipps wo versteckte Fallstricke lauern. Das Buch hilft wirklich "Industry Strength" Java zu schreiben. Würdiger Nachfolger des "Idiom Guide"!

Fazit: Must have ...
P.S.: Deutsche Übersetzung nur nutzen, wenn man sehr leidensfähig ist

War diese Rezension für Sie hilfreich?
5 von 5 Kunden fanden die folgende Rezension hilfreich
Von Ein Kunde
Format:Taschenbuch
This book asks to have good knowledge about the Java programming language. It gives valuable hints for developing programs. It is not a tutorial nor is it another book about algorithms or how to tune your methods for the last nanosecond.
This book covers many topics, and as it is with a good book, it is much to short. I wait for Volume 2 that covers another 100 items how to develop efficient.
War diese Rezension für Sie hilfreich?
Die neuesten Kundenrezensionen
Binsenweisheiten
Von diesem Buch hätte ich mehr erwartet. Viele der Tipps sind mit etwas gesundem Menschenverstand und/oder Programmiererfahrung selbstverständlich. Lesen Sie weiter...
Veröffentlicht am 13. November 2008 von logic7
wirklich effektiv
obwohl das buch schon ein wenig älter ist und die aktuellen änderungen in der sprache-java dort leider noch nicht enthalten sind, sollte es dennoch in keinem... Lesen Sie weiter...
Veröffentlicht am 30. August 2007 von peter schröder
Pflichtlektüre für jeden Java Programmierer
Bei diesem Buch handelt es sich definitiv um eine Pflichtlektüre für jeden (angehenden) Java Programmierer. Lesen Sie weiter...
Veröffentlicht am 9. Januar 2007 von Klaus M.
Disign-Patterns wiederholt
Das Buch hält meines Erachtens nach nicht so ganz das, was der Titel verspricht. Es wird viel zu sehr auf die Design-Patterns eingegangen, wobei an einigen Stellen zwar... Lesen Sie weiter...
Am 25. September 2002 veröffentlicht
Every serious Java programmer should read this
"If constructors would build buildings like programmers write programs, the first woodpecker that came along would destroy civilization. Lesen Sie weiter...
Am 8. Juli 2002 veröffentlicht
super!
ein tolles buch für jemanden der schon ein wenig java kann. vor allem für leute die bibliotheken entwerfen ein muß. Lesen Sie weiter...
Veröffentlicht am 28. September 2001 von Markus Jais
Tolles Buch über "richtiges" Java
Dieses Buch enthält sehr viele Beispiele mit "Seiteneffekten" und deren Lösungen. Man könnte diese als Design Patterns auf Code-Ebene beschreiben. Lesen Sie weiter...
Veröffentlicht am 8. August 2001 von Thorsten Weber
Kundenrezensionen suchen
Nur in den Rezensionen zu diesem Produkt suchen

Beliebte Markierungen

 (Was ist das?)
&quote;
A second advantage of static factory methods is that, unlike constructors, they are not required to create a new object each time they're invoked. &quote;
Markiert von 5 Kindle-Nutzern
&quote;
The main disadvantage of static factory methods is that classes without public or protected constructors cannot be subclassed. &quote;
Markiert von 4 Kindle-Nutzern
&quote;
A third advantage of static factory methods is that, unlike constructors, they can return an object of any subtype of their return type. &quote;
Markiert von 4 Kindle-Nutzern

Kunden diskutieren

Das Forum zu diesem Produkt
Diskussion Antworten Jüngster Beitrag
Noch keine Diskussionen

Fragen stellen, Meinungen austauschen, Einblicke gewinnen
Neue Diskussion starten
Thema:
Erster Beitrag:
Eingabe des Log-ins
 


Aktive Diskussionen in ähnlichen Foren
Kundendiskussionen durchsuchen
Alle Amazon-Diskussionen durchsuchen
   
Ähnliche Foren


Ähnliche Artikel finden


Anhand des Sachgebietes nach ähnlichen Produkten suchen: