Categories
JavaScript Writing

My latest, and last, book for O’Reilly

I said a few years back that when Node.js released version 1.0, I’d issue an update for my book, Learning Node. Little did I know that waiting for Node.js 1.0 was like waiting for Godot, but in JavaScript.

I did try to do an update on the first edition of Learning Node earlier this year, but the changes were just too significant. So many of the modules I covered are no longer supported, Express 4.0 happened, and then there’s that Node.js/io.js thing, and skipping version 1, altogether. The first edition of Learning Node just can’t be updated, in place. The only solution was a new edition. It’s also a good time to do a new edition: there’s more stability in the development of Node.js, and less personal ownership.

I just hit the half-way mark in Learning Node, the second edition. It should be out for early release in January or so. The finished book should be in the market some time around April/May. We took a different direction with this book: smaller, learner, and staying closer to the core of Node.js. I’m very happy with the direction it’s taking. It’s the Learning Node book I probably should have written, way back in Node.js’s infancy.

Of my books, I finished JavaScript Cookbook, second edition earlier in the year, and I’m happy with it. I like the design of the book, and feel it’s nicely comprehensive. A new author has taken over for the Learning JavaScript series, beginning with Learning JavaScript, third edition. I’ve been chatting with O’Reilly about releasing Practical RDF to the public domain. With the second edition of Learning Node on its way to completion, I feel it’s a good time to ease my way out of writing books for O’Reilly, and finally take the plunge to self-publication.

My first book for O’Reilly was Developing ASP Components, published in 2001. It actually hit the Amazon top 100 bestselling books list for a brief moment. In 15 years, we’ve managed to publish 16 books, and I’m proud of all the work we’ve done together. O’Reilly has been a good publisher, and a good company to work with. They’ve always been supportive of my efforts. I’ve enjoyed working with the people, including, and especially, my long-time editor, and friend, Simon St. Laurent.

Categories
JavaScript Writing

JavaScript Cookbook 2nd Edition: Live and Personal

JavaScript Cookbook cover

The second edition of the JavaScript Cookbook just went live at O’Reilly. If you’re wondering why I haven’t been writing about technology as much lately, it’s because I was saving all my tech writing mojo for the book.

We went a somewhat different path with the second edition. I spent a lot less time on syntax, and a lot more on JavaScript in use. When I wrote my first book on JavaScript, in the dark ages that was the mid-1990s, syntax was about all you had with JavaScript. Now, JavaScript is everywhere. It’s the programming language that ate the world.

Well, nibbled the world. JavaScript is still that friendly, approachable language, even with the new ECMAScript additions. JavaScript has never roared; it’s meowed and purred its way into our lives. Good kitty. Nice kitty. Here, have a closure.

In the new edition of JavaScript Cookbook, I covered JavaScript in the browser, and re-visited our old friends (Ajax and the JS objects), yes. But I also spent a considerable time covering JavaScript in the server, in the cloud, and in our mobile devices. The only environment I didn’t cover is the open source hardware, DIY, wearable world, and that’s because I feel these need more preliminary introductions to the environment, so you don’t do something like fry your new Raspberry Pi. Or Computer. Or shirt.

I will never join with those who are critical of JavaScript. I have always had fun with this language. There’s just so much you can do with it.

Categories
Books Writing

Writing from the bleeding edge

One of the challenges writing a book on technology is not only do you need to put words together in some form of coherent, possibly even interesting, manner, but you also have to understand the underlying technology enough to be able to explain it to others.

You can’t just “talk” about the technology, you have to understand it.

Not a problem, except when you’re getting into bleeding edge technology, like some of the ECMAScript 6 objects I’m covering in the second edition of my JavaScript Cookbook.

All you can do is work with the object, work with the object, and work with the object until you go from, “I hate this object. I hate this object. I really f**king hate this object” to, “Oh hey, this object isn’t so bad.”

Then you can write about it in the book.

Categories
Books JavaScript

JavaScript, not a ‘real language’

Simon St. Laurent and I have been discussing that exciting upcoming conference, DHTMLConf.

Party like golden sparkles following the mouse cursor is cool again!

If you’re going to JSFest, how can you not go to DHTMLConf? This is a conference celebrating a time when all of the technologies we take so seriously now, were fun!

Simon is going, and is taking along a copy of his old Dynamic HTML book he managed to find. That made me dig around online for anything on my old books, including my Dynamic HTML book (1998), as well as my earlier (1996) JavaScript How-To.

I had to laugh when I saw the marketing blurb attached to the JavaScript How-To book at Amazon:

JavaScript is the ultimate in web eye-candy. It is not a real programming language such as Java, and it isn’t really essential for web site development, but it sure is a lot of fun for tinkerers.

Categories
Books Critters

Sharing photos

Ringling Brothers: The Greatest Show in Court book coverThe photo for my newest book comes from Shutterstock. It’s not a perfect photo. It’s a little dark, a little blurry and out of focus. But no other image worked for the book. When I saw it, I knew this was the image I wanted for my cover. Authors get funny that way, which is why publishers rarely let us anywhere near the cover.

Thankfully, O’Reilly’s Director of Brand Management and expert on all things book covers, Edie Freedman, kindly volunteered to help me pummel the photo into shape. She also helped educate me on what makes a good book cover. For instance, I didn’t know about needing to leave space on all sides of the cover page. I also wasn’t aware that when you’re a relatively unknown author, as I am, you want to put your name at the top of the page; get a little name recognition going. She helped polish away many of the photo’s distractions, and find a font that, I think, really makes the cover snap—especially in smaller sizes, which is what shows up on Amazon pages.

The cover image is probably the only photo I’ll be using from Shutterstock in my book. Most of the images will come from the court case and investigations the book covers. The others are coming from photos at Flickr made freely available for use with a Creative Commons license. You can use a photo in a book, as illustration, if the CC license permits noncommercial use.

Some of the photos are from folks who have attended the Ringling Brothers circus or the associated animal walks. Others, though, come from the Circus collection of the Boston Public Library. This wonderful institution has not only uploaded extraordinary graphics and photos to its Flickr account, it kindly allows people like me to use the photos in a non-commercial setting (such as within a book for editorial or illustrative purposes). My favorite set of theirs is, of course, the one related to the circus.

I’ve always been reluctant about the Creative Commons license, not the least of which, the licenses are a bit confusing. For instance, it took me the longest time to figure out that using a photo as illustration within a book that isn’t focused on selling said photo is not a commercial use of the photo. Or at least, that’s the interpretation I’ve seen most frequently given, and the one I’m sticking with.

I can now see, though, why having a licensing scheme such as the Creative Commons is so helpful. It wasn’t necessary to have older photos and circus posters in the book…but the added color and history makes it more lively.

Old circus poster

I was so grateful to the Boston Public Library that I decided to upload all of my photos to my new Flickr account and offer them for use. The CC license I picked is very open, other than I restrict commercial use because I don’t have model releases for people and buildings and don’t want to hassle with the potential content copyright issues.

I’ve already had one of my photos used in a Missouri Department of Tourism pamphlet, for illustrative purposes. I don’t claim to be the best photographer in the world, and most of my photos are ordinary. But you never know when one of your photos might help someone, so I just uploaded them all, let folks use them or not.