Test-Driven JavaScript Development

Author: Christian Johansen
Publisher: Addison Wesley, 2010
Pages: 600
ISBN: 978-0321683915
Aimed at: Intermediate Javascript developers
Rating: 4.5
Pros: Good explanations of advanced topics
Cons: Assumes a lot of prior knowledge
Reviewed by: Ian Elliot

 

Covers a range of advanced Javascript topics, often abandoning the topic of testing.

Author: Christian Johansen
Publisher: Addison Wesley, 2010
Pages: 600
ISBN: 978-0321683915
Aimed at: Intermediate Javascript developers
Rating: 4.5
Pros: Good explanations of advanced topics
Cons: Assumes a lot of prior knowledge
Reviewed by: Ian Elliot

The only problem with this book is that it isn't really focused on Test-Driven Javascript Development.  It ranges over topics that could be classified as "advanced Javascript". This isn't necessarily a bad thing and I have to say that I enjoyed reading this book.

Banner

It starts off looking at automated testing and test-driven development and the whole of Part I - 69 pages is more or less a mini-book on the topic. It does a good job of selling the idea of test driven development but at the end of the day it doesn't really give you the information you need to implement the idea. It doesn't explain or recommend a single way to do the job. At the end you might be left wishing you could implement test driven development but not really having a clear idea how to go about it.

Part II of the book more or less forgets test driven development and goes into the details of Javascript from a programmer's point of view. Here we are introduced to all of the advanced ideas and some of the strange ways that Javascript has of doing things - functions, closure, this, context, prototypal inheritance and so on. At over 150 pages this is a large chunk of the book and dwarfs the section introducing testing.

Part III returns to test driven development with a look at real world issues. Topics covered include the observer pattern, coping with browser differences, Comet, Node.js and TDD and the DOM. This is all really interesting material but you don't feel that it is focused on testing. Part IV does rather better in this respect as it is on testing patterns - mocking and stubbing - and writing good unit tests.

At the end of the book I felt I'd learned a lot about Javascript and a little about the testing approach to building programs. However I didn't feel that I was on top of the TDD approach and would probably need another book or some additional help. There were also points in the book where a little too much was taken for granted. Some of the examples aren't easy to work out especially if you are a beginner. However overall this is a really good book on Javascript that you can return to often. Highly recommended.


Banner


Lean DevOps

Author: Robert Benefield
Publisher: Addison-Wesley
Pages: 368
ISBN: 978-0133847505
Print:  0133847500
Kindle: B0B126ST43
Audience: Managers of devops teams
Rating: 3 for developers, 4.5 for managers
Reviewer: Kay Ewbank

The problem this book sets out to address is that of how to deliver on-demand se [ ... ]



Software Architecture In Practice

Author: Len Bass, Dr. Paul Clements and Rick Kazman
Publisher: Addison-Wesley Professional
Pages: 464
ISBN: 978-0136886099
Print: 0136886094
Kindle: B094CPJ96B
Audience: Software architects
Rating: 4.5
Reviewer: Kay Ewbank

This is the fourth edition of a book widely regarded as a classic since its firs [ ... ]


More Reviews

Last Updated ( Sunday, 14 November 2010 )