Items related to Head First Java 2e: 2nd Edition (A Brain Friendly Guide)

Head First Java 2e: 2nd Edition (A Brain Friendly Guide) - Softcover

 
9780596009205: Head First Java 2e: 2nd Edition (A Brain Friendly Guide)

Synopsis

Learning a complex new language is no easy task especially when it s an object-oriented computer programming language like Java. You might think the problem is your brain. It seems to have a mind of its own, a mind that doesn't always want to take in the dry, technical stuff you're forced to study.

The fact is your brain craves novelty. It's constantly searching, scanning, waiting for something unusual to happen. After all, that's the way it was built to help you stay alive. It takes all the routine, ordinary, dull stuff and filters it to the background so it won't interfere with your brain's real work--recording things that matter. How does your brain know what matters? It's like the creators of the Head First approach say, suppose you're out for a hike and a tiger jumps in front of you, what happens in your brain? Neurons fire. Emotions crank up. Chemicals surge.

That's how your brain knows.

And that's how your brain will learn Java. Head First Java combines puzzles, strong visuals, mysteries, and soul-searching interviews with famous Java objects to engage you in many different ways. It's fast, it's fun, and it's effective. And, despite its playful appearance, Head First Java is serious stuff: a complete introduction to object-oriented programming and Java. You'll learn everything from the fundamentals to advanced topics, including threads, network sockets, and distributed programming with RMI. And the new. second edition focuses on Java 5.0, the latest version of the Java language and development platform. Because Java 5.0 is a major update to the platform, with deep, code-level changes, even more careful study and implementation is required. So learning the Head First way is more important than ever.

If you've read a Head First book, you know what to expect--a visually rich format designed for the way your brain works. If you haven't, you're in for a treat. You'll see why people say it's unlike any other Java book you've ever read.

By exploiting how your brain works, Head First Java compresses the time it takes to learn and retain--complex information. Its unique approach not only shows you what you need to know about Java syntax, it teaches you to think like a Java programmer. If you want to be bored, buy some other book. But if you want to understand Java, this book's for you.

"synopsis" may belong to another edition of this title.

About the Author

Kathy Sierra has been interested in learning theory since her days as a game developer (Virgin, MGM, Amblin'). More recently, she's been a master trainer for Sun Microsystems, teaching Sun's Java instructors how to teach the latest technologies to customers, and a lead developer of several Sun certification exams. Along with her partner Bert Bates, Kathy created the Head First series. She's also the original founder of the Software Development/Jolt Productivity Award-winning javaranch.com, the largest (and friendliest) all-volunteer Java community.

Bert Bates is a 20-year software developer, a Java instructor, and a co-developer of Sun's upcoming EJB exam (Sun Certified Business Component Developer). His background features a long stint in artificial intelligence, with clients like the Weather Channel, A&E Network, Rockwell, and Timken.

Excerpt. © Reprinted by permission. All rights reserved.

Chapter 2 A Trip to Objectville

I was told there would be objects. In chapter 1, we put all of our code in the main() method. That’s not exactly object-oriented. In fact, that’s not object-oriented at all. Well, we did use a few objects, like the String arrays for the Phrase-O-Matic, but we didn’t actually develop any of our own object types. So now we’ve got to leave that procedural world behind, get the heck out of main (), and start making some objects of our own. We’ll look at what makes object-oriented (OO) development in Java so much fun. We’ll look at the difference between a class and an object. We’ll look at how objects can give you a better life (at least the programming part of your life. Not much we can do about your fashion sense). Warning: once you get to Objectville, you might never go back. Send us a postcard.

Chair Wars
(or How Objects Can Change Your Life)

Once upon a time in a software shop, two programmers were given the same spec and told to "build it". The Really Annoying Project Manager forced the two coders to compete, by promising that whoever delivers first gets one of those cool Aeron™ chairs all the Silicon Valley guys have. Larry, the procedural programmer, and Brad, the OO guy, both knew this would be a piece of cake.

Larry, sitting in his cube, thought to himself, "What are the things this program has to do? What procedures do we need? And he answered himself, "rotate and playSound." So off he went to build the procedures. After all, what is a program if not a pile of procedures?

Brad, meanwhile, kicked back at the café and thought to himself, "What are the things in this program... who are the key players?" He first thought of The Shapes. Of course, there were other objects he thought of like the User, the Sound, and the Clicking event. But he already had a library of code for those pieces, so he focused on building Shapes. Read on to see how Brad and Larry built their programs, and for the answer to your burning question, "So, who got the Aeron?

In Larry’s cube
As he had done a gazillion times before, Larry set about writing his Important Procedures. He wrote rotate and playSound in no time.

rotate(shapeNum) {
// make the shape rotate 360º
}
playSound(shapeNum) {
// use shapeNum to lookup which
// AIF sound to play, and play it

At Brad’s laptop at the cafe
Brad wrote a class for each of the three shapes

Larry thought he’d nailed it. He could almost feel the rolled steel of the Aeron beneath his...

But wait! There’s been a spec change.
"OK, technically you were fi rst, Larry," said the Manager, "but we have to add just one tiny thing to the program. It’ll be no problem for crack programmers like you two."

"If I had a dime for every time I’ve heard that one", thought Larry, knowing that specchange-no-problem was a fantasy. "And yet Brad looks strangely serene. What’s up with that?" Still, Larry held tight to his core belief that the OO way, while cute, was just slow. And that if you wanted to change his mind, you’d have to pry it from his cold, dead, carpal-tunnelled hands

Back in Larry’s cube
The rotate procedure would still work; the code used a lookup table to match a shapeNum to an actual shape graphic. But playSound would have to change. And what the heck is a .hif fi le?

playSound(shapeNum) {
// if the shape is not an amoeba,
// use shapeNum to lookup which
// AIF sound to play, and play it
// else
// play amoeba .hif sound
}

It turned out not to be such a big deal, but it still made him queasy to touch previously-tested code. Of all people, he should know that no matter what the project manager says, the spec always changes.

At Brad’s laptop at the beach
Brad smiled, sipped his margarita, and wrote one new class. Sometimes the thing he loved most about OO was that he didn’t have to touch code he’d already tested and delivered. "Flexibility, extensibility,..." he mused, reflecting on the benefits of OO

Larry snuck in just moments ahead of Brad.
(Hah! So much for that foofy OO nonsense). But the smirk on Larry’s face melted when the Really Annoying Project Manager said (with that tone of disappointment), "Oh, no, that’s not how the amoeba is supposed to rotate..."

Turns out, both programmers had written their rotate code like this:
1) determine the rectangle that surrounds the shape
2) calculate the center of that rectangle, and rotate the shape around that point.

But the amoeba shape was supposed to rotate around a point on one end, like a clock hand.

"I’m toast." thought Larry, visualizing charred Wonderbread™. "Although, hmmmm. I could just add another if/else to the rotate procedure, and then just hard-code the rotation point code for the amoeba. That probably won’t break anything." But the little voice at the back of his head said, "Big Mistake. Do you honestly think the spec won’t change again?"

"About this title" may belong to another edition of this title.

  • PublisherO′Reilly
  • Publication date2005
  • ISBN 10 0596009208
  • ISBN 13 9780596009205
  • BindingPaperback
  • LanguageEnglish
  • Edition number2
  • Number of pages720

Buy Used

Condition: Fair
This copy has clearly been enjoyedâ"expect...
View this item

FREE shipping within U.S.A.

Destination, rates & speeds

Other Popular Editions of the Same Title

9781600330001: Head First Java

Featured Edition

ISBN 10:  1600330002 ISBN 13:  9781600330001
Publisher: Oreilly & Associates Inc, 2006
Softcover

Search results for Head First Java 2e: 2nd Edition (A Brain Friendly Guide)

Seller Image

Sierra, Kathy; Bates, Bert
Published by O'Reilly Media, 2005
ISBN 10: 0596009208 ISBN 13: 9780596009205
Used Softcover

Seller: Dream Books Co., Denver, CO, U.S.A.

Seller rating 5 out of 5 stars 5-star rating, Learn more about seller ratings

Condition: acceptable. This copy has clearly been enjoyedâ"expect noticeable shelf wear and some minor creases to the cover. Binding is strong, and all pages are legible. May contain previous library markings or stamps. Seller Inventory # 4EKGU9006TBC_ns

Contact seller

Buy Used

£ 3.31
Convert currency
Shipping: FREE
Within U.S.A.
Destination, rates & speeds

Quantity: 1 available

Add to basket

Stock Image

Sierra, Kathy; Bates, Bert
Published by O'Reilly Media, 2005
ISBN 10: 0596009208 ISBN 13: 9780596009205
Used Paperback

Seller: Your Online Bookstore, Houston, TX, U.S.A.

Seller rating 5 out of 5 stars 5-star rating, Learn more about seller ratings

Paperback. Condition: Fair. Seller Inventory # 0596009208-4-25768077

Contact seller

Buy Used

£ 3.48
Convert currency
Shipping: FREE
Within U.S.A.
Destination, rates & speeds

Quantity: 1 available

Add to basket

Stock Image

Sierra, Kathy; Bates, Bert
Published by O'Reilly Media, 2005
ISBN 10: 0596009208 ISBN 13: 9780596009205
Used Paperback

Seller: Orion Tech, Kingwood, TX, U.S.A.

Seller rating 5 out of 5 stars 5-star rating, Learn more about seller ratings

Paperback. Condition: Good. Seller Inventory # 0596009208-3-24709757

Contact seller

Buy Used

£ 3.48
Convert currency
Shipping: FREE
Within U.S.A.
Destination, rates & speeds

Quantity: 2 available

Add to basket

Stock Image

Sierra, Kathy; Bates, Bert
Published by O'Reilly Media, 2005
ISBN 10: 0596009208 ISBN 13: 9780596009205
Used Paperback

Seller: Your Online Bookstore, Houston, TX, U.S.A.

Seller rating 5 out of 5 stars 5-star rating, Learn more about seller ratings

Paperback. Condition: Good. Seller Inventory # 0596009208-3-19058885

Contact seller

Buy Used

£ 3.48
Convert currency
Shipping: FREE
Within U.S.A.
Destination, rates & speeds

Quantity: 2 available

Add to basket

Stock Image

Sierra, Kathy; Bates, Bert
Published by O'Reilly Media, 2005
ISBN 10: 0596009208 ISBN 13: 9780596009205
Used Paperback

Seller: Orion Tech, Kingwood, TX, U.S.A.

Seller rating 5 out of 5 stars 5-star rating, Learn more about seller ratings

Paperback. Condition: Fair. Seller Inventory # 0596009208-4-24370934

Contact seller

Buy Used

£ 3.48
Convert currency
Shipping: FREE
Within U.S.A.
Destination, rates & speeds

Quantity: 1 available

Add to basket

Seller Image

Sierra, Kathy; Bates, Bert
Published by O'Reilly Media, 2005
ISBN 10: 0596009208 ISBN 13: 9780596009205
Used Softcover

Seller: Reliant Bookstore, El Dorado, KS, U.S.A.

Seller rating 4 out of 5 stars 4-star rating, Learn more about seller ratings

Condition: good. This book is in good condition with very minimal damage. Pages may have minimal notes or highlighting. Cover image on the book may vary from photo. Ships out quickly in a secure plastic mailer. Seller Inventory # RDV.0596009208.G

Contact seller

Buy Used

£ 3.54
Convert currency
Shipping: FREE
Within U.S.A.
Destination, rates & speeds

Quantity: 1 available

Add to basket

Stock Image

Sierra, Kathy; Bates, Bert
Published by O'Reilly Media, 2005
ISBN 10: 0596009208 ISBN 13: 9780596009205
Used paperback

Seller: Jenson Books Inc, Logan, UT, U.S.A.

Seller rating 4 out of 5 stars 4-star rating, Learn more about seller ratings

paperback. Condition: Good. This item shows signs of wear from consistent use, but it remains in good condition and works perfectly. All pages and cover are intact , but may have aesthetic issues such as small tears, bends, scratches, and scuffs. Spine may also show signs of wear. Pages may include some notes and highlighting. May include "From the library of" labels. Satisfaction Guaranteed. Seller Inventory # 4BQG530043G4_ns

Contact seller

Buy Used

£ 3.72
Convert currency
Shipping: FREE
Within U.S.A.
Destination, rates & speeds

Quantity: 1 available

Add to basket

Stock Image

Sierra, Kathy; Bates, Bert
Published by O'Reilly Media, 2005
ISBN 10: 0596009208 ISBN 13: 9780596009205
Used Paperback

Seller: ThriftBooks-Atlanta, AUSTELL, GA, U.S.A.

Seller rating 5 out of 5 stars 5-star rating, Learn more about seller ratings

Paperback. Condition: Very Good. No Jacket. May have limited writing in cover pages. Pages are unmarked. ~ ThriftBooks: Read More, Spend Less 3. Seller Inventory # G0596009208I4N00

Contact seller

Buy Used

£ 5.07
Convert currency
Shipping: FREE
Within U.S.A.
Destination, rates & speeds

Quantity: 1 available

Add to basket

Stock Image

Sierra, Kathy; Bates, Bert
Published by O'Reilly Media, 2005
ISBN 10: 0596009208 ISBN 13: 9780596009205
Used Paperback

Seller: ThriftBooks-Atlanta, AUSTELL, GA, U.S.A.

Seller rating 5 out of 5 stars 5-star rating, Learn more about seller ratings

Paperback. Condition: Good. No Jacket. Pages can have notes/highlighting. Spine may show signs of wear. ~ ThriftBooks: Read More, Spend Less 3. Seller Inventory # G0596009208I3N00

Contact seller

Buy Used

£ 5.07
Convert currency
Shipping: FREE
Within U.S.A.
Destination, rates & speeds

Quantity: 3 available

Add to basket

Stock Image

Sierra, Kathy; Bates, Bert
Published by O'Reilly Media, 2005
ISBN 10: 0596009208 ISBN 13: 9780596009205
Used Paperback

Seller: ThriftBooks-Dallas, Dallas, TX, U.S.A.

Seller rating 5 out of 5 stars 5-star rating, Learn more about seller ratings

Paperback. Condition: Very Good. No Jacket. May have limited writing in cover pages. Pages are unmarked. ~ ThriftBooks: Read More, Spend Less 3. Seller Inventory # G0596009208I4N00

Contact seller

Buy Used

£ 5.07
Convert currency
Shipping: FREE
Within U.S.A.
Destination, rates & speeds

Quantity: 1 available

Add to basket

There are 51 more copies of this book

View all search results for this book