"Link baiting" to sell a book is a kind of tie-in, just like sound track albums and toys. If what you say is true, then this post is an example of the pop culture it depicts. That would be pleasingly self-referential.
Alas, it isn't true. I wrote a different post yesterday, one about the I Combinator in CoffeeScript. That one was a deliberate tie-in to my book. Some of the feedback I got from /r/javascript was that the idioms were unfamiliar to the JavaScript culture, which provoked this post.
So yes, I do write posts with the thought of promoting my book, but no, this wasn't one of them. But yes, as long as I'm writing a post I include a link to my book. Why not? I read a lot of posts with advertisements on them. Why advertise someone else's dream?