The Artima Developer Community
Sponsored Link

Java Buzz Forum
Why the "Elements of Java Style" book drives me crazy

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic    
Flat View: This topic has 0 replies on 1 page
Mats Henricson

Posts: 55
Nickname: matsh
Registered: May, 2003

Mats Henricson is interested in too much
Why the "Elements of Java Style" book drives me crazy Posted: Jun 26, 2003 4:49 AM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Mats Henricson.
Original Post: Why the "Elements of Java Style" book drives me crazy
Feed Title: Code:Q
Feed URL: http://sedoparking.com/search/registrar.php?domain=®istrar=sedopark
Feed Description: Mats Henricson's weblog
Latest Java Buzz Posts
Latest Java Buzz Posts by Mats Henricson
Latest Posts From Code:Q

Advertisement


I have skimmed this book, written by Alan Vermeulen, Scott Ambler and a few other people. It contains programming guidelines for Java programming, and it is just so sloppy, or outright meaningless. Here's a bunch of examples from that book:

3. Do it right the first time.

Uh? Oh, now I know exactly what to do!

5. Indent nested code.

Wow! That is revolutionary!

9. Use meaningful names.

Oh, my, I was thinking of using meaningless names!

29. Qualify field variables with "this" to distinguish them from local variables.

To this I say: Get an IDE instead. They do it for free.

33. Keep comments and code in synch.

Why would anyone NOT do that?

46. Establish and use a fixed ordering for Javadoc tags.

Now, they're really concentrating on important stuff...

61. Avoid the use of end-line comments.
62. Explain local variable declarations with an end- line comment.


Now, where were the reviewers of this book?

68. Build concrete types from native types and other concrete types.

Sounds really recursive to me. Nasty nasty.

93. Use threads only where appropriate.

Thanks! Very helpful.

94. Avoid synchronization.

Bummer. It looked quite useful to me.

100. Use lazy initialization.

Oh, really. Always?

102. Reinitialize and reuse objects to avoid new object construction.
103. Leave optimization for last.


That means I can ignore 102 till I ship, right?

107. Maximize abstraction to maximize stability.

Someone has read too much OO theory...

Sorry for the rant. That book drives me crazy...

Read: Why the "Elements of Java Style" book drives me crazy

Topic: ctl+shift+v in IDEA Previous Topic    

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use