Archives For book

I’m a pretty big fan of Scrivener, a writing application for Macs (there is a Windows version currently in beta). For about six months now I’ve been using Scrivener to write my newsletter, and a JavaScript book I’ve been working on for some time will be the first book I’ve written using it. There’s something about Scrivener that just works for me, first and foremost, that I’m able to keep everything about a project—the writing, references, notes, etc.—in one place. As with any good piece of software, though, I’ve got a nagging feeling in the back of my mind that I’m not using Scrivener to its fullest potential. And by that I mean I’m absolutely convinced that I could be using Scrivener better.

For this reason, I was quite happy to see the release of the book “Take Control of Scrivener 2“. I haven’t read it yet (ironically, I’m waiting to complete the book I’m currently working on first), but it’s high on my “to-read” list. Just scanning the 22-page sample that’s available, this looks like a good, fast resource. And at $10 (US) for the book, it’s a steal.

I’m happy to say that I should (hopefully) be finishing the first draft of the fourth edition of my “PHP and MySQL for Dynamic Web Sites: Visual QuickPro Guide” this week. Today I’ll finish one of the new chapters, introducing jQuery. The chapter’s a bit longer than I had originally hoped (30+ pages), but I think it works very well.

The chapter begins with a discussion of jQuery and JavaScript, and a sidebar on the best development tools to assist in your JavaScript programming (or, more importantly, debugging). Then the chapter shows how to incorporate the jQuery library and how to do a simple test of it. Next, you’ll learn how to select page elements using jQuery, and write an HTML form for the example to follow. After that is coverage of event handling and DOM manipulation, which will round out the example.

The first specific example is a widget cost calculator (similar to one done in PHP earlier in the book), with JavaScript performing the calculations and jQuery being used to show and hide error messages, change the classes assigned to elements, and update the content of the page.

The chapter concludes with several pages on Ajax. That specific example is a login form, with a server-side PHP script validating the login data, and jQuery updating the page appropriately.

I think the chapter presents a good introduction to jQuery, within the context of the entire book. Thanks to the new “Review and Pursue” section, many ideas for where to learn more or to practice what you’ve just learned are suggested.

As I said, I should be submitting this chapter today. Over the week I’ll finish the last remaining chapter: another new one introducing Object-Oriented Programming in PHP. After that, there’s just the appendix and introduction, neither of which will take much time. So I’ll have the first draft of the book done by the end of the month, and I’ve already completed seven chapters of the rewrites. I think the new edition is turning out well, and I’ll be happy to have it complete and on its way to the printer in July!

In this edition…

Continue Reading…

In this edition…

Continue Reading…

Having written 20 books, numerous articles, 260 blog postings, and 38 newsletters (at the time of this writing), it’s probably safe to say that I qualify as a “writer” by now. Once you’ve gone past your first million words, I think the label applies. Over the past few months I’ve happened to speak with several different people, sharing what I’ve learned about writing, and there’s one insight that seems to be the most intriguing and useful to those that aren’t accustomed to sitting at their computer for hours on end trying to put two good paragraphs together: writing is the least important step in the writing process. Continue Reading…