The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

import-bot (20211) [Avatar] Offline
#1
Re: Re: errata !? -- deja vu
[Originally posted by sorteper]

Well if it was a perfect world -- we'd probably write perfect programs as well
:o) I will try to make a note when I stumble upon further errata.

I managed to find the first (I think) instance of deja vu. Chapter 3, page 72
(bottom 2 lines), page 73 top:

"The Packet class ... </item>" is repeated.

And I stumbled upon these:

Ch.4. p.112 last paragraph before section 4.2.3: "In the interest .. , it
should easy to determine .."

Should probably read: ", it should BE easy to determine .."

Ch.4. p.124 last paragraph: "Clients, on the .. In addition, we can be
authenticated without having established a Jabber XML stream with the server
and having an account on the server."

Should it not read: "In addition, we CAN'T ..."

Ch.4. p.129 listing 4.7: I would say that the for loop's expression should be
not'ed as the loop in the current state will do nothing while the packet is
from "buffy" -- you state, you want the opposite: do nothing until a message
from "buffy" appears. Therefore it should read:

for ( Packet packet = waitFor("message", null);
! packet.getFrom().startsWith("buffy");
packet = waitFor("message",null) ){
// do nothing while message is not from buffy
}
// message from buffy received.

-----------------

until next ..

/lauge
import-bot (20211) [Avatar] Offline
#2
[Originally posted by iainshigeoka]

Hello,

I'm glad you're enjoying the book.

Boy, the duplication errors are embarassing! Our final production on the book
was a bit rushed trying to get it out for JavaOne this year. Unfortunately,
it looks like in our hurry, we missed some things that would normally get
caught in final print reviews. Thanks for mentioning them and I'd appreciate
it if you keep pointing them out as you come across them. We'll hopefully get
a chance to fix them on a second print run...

Oh, and as a note on Jabber, the reason the book is titled "Instant Messaging
in Java" and the byline is "the Jabber protocols" is that there are other
protocols you may want to consider. Peer to peer technologies (gnutella or
jxta) as mentioned in the last chapter are strong contenders that you should
also consider. In addition, application specific protocols exist. For
example in the wireless space, the wireless village protocols
(www.wireless-village.org) may be more appropriate. Jabber is a great
protocol but it is not the best solution for every problem. Just a friendly
reminder as it is easy to get carried away with Jabber...it happens to me
quite often! smilie

-iain
import-bot (20211) [Avatar] Offline
#3
Re: Re: errata !? -- deja vu
[Originally posted by iainshigeoka]

> Well if it was a perfect world -- we'd probably write perfect programs as
well
> :o) I will try to make a note when I stumble upon further errata.

Cool. Thanks for helping make this book better and doing such a great job
of reporting it to us here.

Would you be interested in doing technical reviews in the future? We're
always looking for poeple with a good eye for catching mistakes! If so,
contact me offline (iainshigeoka@yahoo.com) as its getting a bit off topic.

Keep those errata reports coming in!

-iain