Slashdot Mirror


Head First Java

honestpuck writes "Earlier this year I decided to learn Java. I'd spent some time using JavaScript without really getting my hands too dirty but I'd pushed it way to far and realized I needed a bigger hammer. Grabbing a copy of Learning Java, 2nd Edition from O'Reilly I started learning. First problem, I have to admit I've stayed away from object-oriented programming; after all, I've been writing software for nigh on twenty years without it - why make life hard? Sure, I understood the concepts and I'd done a little but never in a language so strongly committed to OO as Java." Read on for honestpuck's review of Head First Java, which he compares in style and content to Learning Java. Head First Java author Bert Bates, Kathy sierra pages 650 publisher O'Reilly rating 8 reviewer Tony Williams ISBN 0596004656 summary Good, offbeat Java tutorial with new approach to learning computer topics

The Good

Of course, you can't learn Java without a good understanding of object-oriented languages. I made fairly heavy going with 'Learning Java' until I decided to dive in head first. Head First Java, that is -- a new book from O'Reilly that has a totally different attitude to teaching than I've seen before in computer books. It also looks like this might be the start of a series from O'Reilly, the website an introduction seem to assume that there will be more 'Head First' titles and I hope so. The style is humorous, full of graphics, cartoons, puzzles, quizzes and crosswords. It reminds me of the textbooks that used to try and teach me geometry and algebra in high school or my daughter's elementary books on Roman and Greek history I purchased for her at the British Museum. The style didn't work to teach me much algebra and geometry, but I wasn't anywhere near as motivated. This time, it worked. In a couple of weeks I worked through the book and finally have Java skills where I can branch off and start coding the projects I had in mind (though something more advanced will be required soon.)

In the introduction the authors examine learning and explain why they designed the book as they did. To quote from one section: "Some of the Head First learning principles. Make it visual. Put the words within or near the graphics. Use a conversational and personalized style. Get the learner to think more deeply. Get -- and keep -- the reader's attention. Touch their emotions." They argue that our brain is tuned to novelty, and that their style provides the novelty to keep your brain turned on. They also provide ten tips for good learning. That's one thing that seems to set this book apart from most other computer books, they say they think of their reader as a learner and indeed that's the way you are treated by the book. You can start to get a feel for their ideas by visiting headfirst.oreilly.com, a site devoted to the series. You can also grab a couple of example chapters from the books web page, which also has the usual marketing info, table of contents and errata.

The Bad

When compared to Learning Java the coverage is not as good. Head First really only covers the basics, up to and including creating a GUI with SWING and then touches a number of others; Learning Java goes on to explore, with a fair depth, network programming, web programming, servlets, applets, Java Beans, XML and other topics that are only touched on briefly in Head First. If the style of learning does not suit you then this will be an incredibly irritating and useless book, I'd give it a try first, though. If it isn't for you then the style of Learning Java might be better.

Conclusion

When you get down to it, though, the only way to really decide on the worth of a tutorial is to decide how well it teaches. Head First Java excels at teaching. OK, I thought it was silly, I had a hard time making myself do the exercises, fill out the crosswords and solve the puzzles. Then I realized that I was thoroughly learning the topics as I went through the book. Learning Java was doing the same job, but the dry traditional method wasn't doing as well. Both books are well written, designed and constructed -- the style of Headfirst Java just made learning, well, easier.

It would seem to me that the 'Head First' approach is going to work wonderfully for the more 'beginner' topics, books for introducing you to a new style of programming, a new language or a radically different operating system or application. So if you're looking for a book to introduce you to Java then I can recommend Head First Java. Now if I could only find a book as good to introduce me to Common Lisp.

You can purchase Head First Java from bn.com. Slashdot welcomes readers' book reviews -- to see your own review here, read the book review guidelines, then visit the submission page.

10 of 327 comments (clear)

  1. ASLFKDJOIEWQUHASDFJLNBLKASOIUREASLDKFJQOIERUYVDBJ! by Anonymous Coward · · Score: -1, Offtopic

  2. YOU ARE MOST LIKELY A GAY HOMOSEXUAL FAGGOT by Anonymous Coward · · Score: -1, Offtopic

    If you are reading this, you are most likely.

    • GAY
    • A HOMOSEXUAL
    • A FAGGOT
    • POSSIBLY A NIGGER

    Now you know.

  3. #TSAU IS EMPTY! JOIN GNAA NOW! by Anonymous Coward · · Score: -1, Offtopic
    Join GNAA Today! GNAA (GAY NIGGER ASSOCIATION OF AMERICA) is the first organization which
    gathers GAY NIGGERS from all over America and abroad for one common goal - being GAY NIGGERS.

    Are you GAY?
    Are you a NIGGER?
    Are you a GAY NIGGER?

    If you answered "Yes" to any of the above questions, then GNAA (GAY NIGGER ASSOCIATION OF AMERICA) might be exactly what you've been looking for!
    Join GNAA (GAY NIGGER ASSOCIATION OF AMERICA) today, and enjoy all the benefits of being a full-time GNAA member.
    GNAA (GAY NIGGER ASSOCIATION OF AMERICA) is the fastest-growing GAY NIGGER community with THOUSANDS of members all over United States of America. You, too, can be a part of GNAA if you join today!

    Why not? It's quick and easy - only 2 simple steps!

    First, you have to obtain a copy of GAY NIGGERS FROM OUTER SPACE THE MOVIE and watch it.

    Second, you need to join the official GNAA irc channel #GNAA on EFNet, and apply for membership.
    Talk to one of the ops or any of the other members in the channel to sign up today!

    If you are having trouble locating #GNAA, the official GAY NIGGER ASSOCIATION OF AMERICA irc channel, you might be on a wrong irc network. The correct network is EFNet, and you can connect to irc.secsup.org or irc.isprime.com as one of the EFNet servers.

    If you have mod points and would like to support GNAA, please moderate this post up.



    This post brought to you by a proud member of GNAA
    ________________________________________________
    | ______________________________________._a,____ |
    | _______a_._______a_______aj#0s_____aWY!400.___ |
    | __ad#7!!*P____a.d#0a____#!-_#0i___.#!__W#0#___ |
    | _j#'_.00#,___4#dP_"#,__j#,__0#Wi___*00P!_"#L,_ |
    | _"#ga#9!01___"#01__40,_"4Lj#!_4#g_________"01_ |
    | ________"#,___*@`__-N#____`___-!^_____________ |
    | _________#1__________?________________________ |
    | _________j1___________________________________ |
    | ____a,___jk_ GAY_NIGGER_ASSOCIATION_OF_AMERICA_|
    | ____!4yaa#l___________________________________ |
    | ______-"!^____________________________________ |
    ` _______________________________________________'

  4. you disgust me by Anonymous Coward · · Score: -1, Offtopic

    posting these silly trolls while kim jong il is preparing a war that will claim millions of lives

  5. stupid moderator! by Anonymous Coward · · Score: -1, Offtopic

    there won't be much freedom left when seoul and tokyo are reduced to ash! it will be the end of democracy and you DARE to mod me down because i'm not talking about fucking java or whatever???

    that is rather shortsighted first you came for me but tomorrow they might come for you!

    imagine!

  6. Re:I'd like to take this oppertunity.. by malocchio · · Score: 0, Offtopic

    fine then, but when I'm fired i will show my boss this thread, which by Slashdot's merritable reputation for increasing productivity, will excuse my slacking off.

    Perhaps i will respond to that challenge with the undefined class.. :)

  7. Get head? by The_Shadows · · Score: 0, Offtopic



    If you don't know Java, get head.

    Ladies, for the geek in your life, give them head.

    Too... many... bad puns!

  8. JavaScript by bigredswitch · · Score: 0, Offtopic

    "I'd spent some time using JavaScript without really getting my hands too dirty but I'd pushed it way to far and realized I needed a bigger hammer"JavaScript is a great deal more capable than most people think...

    <shameless_plug>Just take a look at my Manic Miner conversion, a 20 level game entirely in JavaScript - it works in most browsers.</shameless_plug> Then take a look over at JavaScript Games.

    --
    After about three months of relentless Willy action I reckon I'm now as good as when I was 10.
  9. moderator is cowardly beast by Anonymous Coward · · Score: -1, Offtopic

    you will be the cause of human extinction within 50 years

    atleast have the guts to show yourself

  10. IOUEYRHDSJFHSKHJABSJHGKSHRIUWEYRUEHUYERJHDJSFHKSD! by Anonymous Coward · · Score: -1, Offtopic