erick's blog

javascript the good parts Douglas Crockford1 of Yahoo! has just published an excellent new book titled Javascript: The Good Parts.

Another Book On Javascript?!

The nice thing about this book is that it is not just another manual on ECMAScript, but rather a terse description of JavaScript that "scrapes away the most horrendous features to reveal a subset of JavaScript that's more reliable, readable, and maintainable". The book covers more than the obvious topics like syntax and "global variables are evil" (though that is mentioned ad nauseam) - so you can be assured that this one isn't just a kiddy read.

Crockford's major theme of the book (and an excellent one IMHO) is that behind all the crust, fluff, and awkward features of JavaScript there is an elegant subset of truly excellent features in the language. The point being that by strictly adhering to only this subset we can make usable, extensible, manageable software that will have much greater durability than software produced using the ugly parts. I felt Crockford did a very nice job at hammering his points home about his take on the bad parts without sounding preachy in regards to coding style. Only in one of the appendices does he go into detail regarding his preferred style of coding, and even expressing these opinions he does so with sound arguments.

Who's it for?

If terms like "inheritance" and "closure" invoke images of coming to grips with your wealthy aunt Sally's passing, then this probably isn't the book for you. The book's value lies with the seasoned programmer that is experienced mainly in classical OOP or procedural programming. That programmer is the one who will find this book useful in coming to grips with the paradigm shift necessary to work with JavaScript rather than struggle with it. If you're one who finds yourself using JavaScript libraries like jQuery and Prototype but are confused as to what Object.extend and jQuery.extend are actually doing behind the scenes then you'll definitely want to purchase a copy. Plus, unlike those 1100 useless pages of Sams: Teach Yourself J2EE in 21 Days that have been sitting on my bookshelf since mid 20032, this book is sure to be one that you'll actually read. At a mere 100 pages or so (plus 40 pages of appendices), the book is quickly digestible and even more importantly, it's immediately applicable. You will notice your code improving in front of your eyes from the moment you get through the chapters on object literal notation and functions - chapters 3 & 4 respectively. Even if you are one who already know the basics of the language, simple things about JSON, and function scope - then you will still most certainly find use in the Crockford's demystifying coverage of a few of JavaScripts most popular object inheritance patterns.

So if, like my former self, you use JavaScript on a regular basis without a strong notion of how to do it "the JavaScript way", then I highly suggest giving this book a quick read. I promise that it will be time well spent.

  1. For those who don't know who Doug Crockford is, he's the guy who wrote JSLint, along with many other invaluable JS tools
  2. I should probably consider myself lucky that I never found those 21 days to give to J2EE

Hi Everyone,

It's been a few weeks since our last release but now we're back from the Holidays and we've begun working on new features again. This week we have just a few minor changes for you as most of our development efforts are being focused on a few larger projects to be announced later ;)

Anyway, today we've made a quick fix for a bug we saw pop up on our Groups page in IE 7.0 when users were attempting to create a new group.

The second update we're releasing today is the ability for account administrators to check the all the SIP registration details for registered phones. To do so:

  1. navigate to the user's page
  2. open the details for a specific user by clicking on that user's name
  3. under "Maintenance" you will see the SIP Phone status as either "offline" or the number of currently registered phones for that user. If any phones are registered click "show details" to view the registration details for the user.

You will see registration information similar to the following for each registered device.

registration details

applicationWe have a new application for you this week!

Meet the Announcement application. Essentially this little guy is for playing a recording to an incoming caller and then forwarding them on to another address in your onSIP PBX. "How would I use this?" I'm glad you asked. Would you like to let your callers hear your hours of operation and then return to the main attendant menu or play a nice welcome message to incoming callers before sending them to a user or a queue, well here's your opportunity. To add an Announcement application, go to the Apps page and click "Create New Application", click on the Announcements image and all the details are explained there.

Being ever vigilant here at Junction Networks, we are always adding new features to our products and services. From now on we will be using our blog as a means of updating you with our latest additions, enhancements, and occasional bug fixes for our products and web portals.

Coming off of Thanksgiving week, we have a modest list of updates which include:

  1. onSIP PBX Configuration View - see a complete view of your onSIP setup indexed by extension, phone number or address. Navigate to the "Account" page and click the "View current PBX config" link in order to see your printable report.
  2. inhibit double form submission - our DOM guru has rewritten our ajax form handlers to only allow forms to be submitted once. This fixes a minor bug we were seeing where users may have accidentally clicked "save" twice while submitting a form.

Stay tuned for more updates.

Syndicate content