Programming Books C Java PHP Python Learn more Browse Programming Books
Test-Driven JavaScript Development (Developer's Library) and over one million other books are available for Amazon Kindle. Learn more
Buy New
$34.91
Qty:1
  • List Price: $54.99
  • Save: $20.08 (37%)
FREE Shipping on orders over $35.
Only 13 left in stock (more on the way).
Ships from and sold by Amazon.com.
Gift-wrap available.
Add to Cart
Want it Tuesday, April 22? Order within and choose One-Day Shipping at checkout. Details
Trade in your item
Get a $11.53
Gift Card.
Have one to sell?
Flip to back Flip to front
Listen Playing... Paused   You're listening to a sample of the Audible audio edition.
Learn more

Test-Driven JavaScript Development (Developer's Library) Paperback

ISBN-13: 978-0321683915 ISBN-10: 0321683919 Edition: 1st

See all 4 formats and editions Hide other formats and editions
Amazon Price New from Used from Collectible from
Kindle
"Please retry"
Paperback
"Please retry"
$34.91
$29.65 $25.74

Free%20Two-Day%20Shipping%20for%20College%20Students%20with%20Amazon%20Student



Frequently Bought Together

Test-Driven JavaScript Development (Developer's Library) + JavaScript Patterns + JavaScript: The Good Parts
Price for all three: $72.30

Buy the selected items together
  • JavaScript Patterns $20.00
  • JavaScript: The Good Parts $17.39

NO_CONTENT_IN_FEATURE

Shop the new tech.book(store)
New! Introducing the tech.book(store), a hub for Software Developers and Architects, Networking Administrators, TPMs, and other technology professionals to find highly-rated and highly-relevant career resources. Shop books on programming and big data, or read this week's blog posts by authors and thought-leaders in the tech industry. > Shop now

Product Details

  • Series: Developer's Library
  • Paperback: 600 pages
  • Publisher: Addison-Wesley Professional; 1 edition (September 19, 2010)
  • Language: English
  • ISBN-10: 0321683919
  • ISBN-13: 978-0321683915
  • Product Dimensions: 9 x 7 x 1.1 inches
  • Shipping Weight: 1.8 pounds (View shipping rates and policies)
  • Average Customer Review: 4.0 out of 5 stars  See all reviews (19 customer reviews)
  • Amazon Best Sellers Rank: #488,944 in Books (See Top 100 in Books)

Editorial Reviews

Review

“A simplified and well-explained book about one of the most underestimated parts of any application life-cycle. Christian Johansen brings real world examples, simple to advanced, and a useful library together in one place. I couldn’t expect more from Test-Driven JavaScript Development. Excellent learning and definitively easy to read.”

—Andrea Giammarchi, lead developer, NOKIA Gate 5 GmbH

 

“A great mix of theory and practical examples makes this a good read for both newcomers to JavaScript/TDD and seasoned JavaScripters wanting to add to their skill set.”

—Jacob Seidelin, freelance web developer, Nihilogic

About the Author

Christian Johansen works for Shortcut AS, a software company focusing on open source technology, Web, and mobile applications. Originally a student in informatics, mathematics, and digital signal processing, he has spent his professional career specializing in Web and front-end development with technologies such as JavaScript, CSS, and HTML. A frequent open source contributor, he blogs about JavaScript, Ruby, and Web development at cjohansen.no.

More About the Author

Discover books, learn about writers, read author blogs, and more.

Customer Reviews

4.0 out of 5 stars
5 star
10
4 star
5
3 star
1
2 star
0
1 star
3
See all 19 customer reviews
As well, it suggests several options for testing tools and frameworks.
C. Flanigan
I highly recommend this book for anyone curious about Test Driven Development, Unit Testing or wishing to better understand and improve their Javascript.
Larry Battle
This material can be pretty dense; I expect to re-read most of the book again at some point.
P. Hodgson

Most Helpful Customer Reviews

13 of 13 people found the following review helpful By P. Hodgson on March 9, 2011
Format: Paperback
I initially picked this up hoping to learn some stuff about the mechanics of unit-testing in javascript, and maybe some stuff about how to organize your javascript in a testable way. I was very pleasantly surprised to find a book which covers way more.

You'll learn about the fundamentals of modern functional javascript. You'll discover that it's not class-based OO and that functions, closures and object literals are your building blocks.

You'll see some neat, slightly mind-bending way of implementing things. A tiny example - why not keep track of whether a stub function has been called by just setting a bool on the stub function itself!

Most of all, you'll see that it's very feasible to develop real grown-up software using a true test-driven-DESIGN approach using javascript. You'll also get the benefit of being walked through a load of deep, hands-on practical examples covering both server-side JS, client-side DOM-based JS. This material can be pretty dense; I expect to re-read most of the book again at some point.
Comment Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback. If this review is inappropriate, please let us know.
Sorry, we failed to record your vote. Please try again
15 of 17 people found the following review helpful By George Jempty on November 25, 2010
Format: Paperback
Unlike the first reviewer I've actually begun reading this book. Based on the first 2.5 chapters I can tell you without reservation that this author is quite knowledgeable about both Javascript and Test-driven development (TDD). Not only is the book technically excellent in this regard, but the author is also not afraid to state his opinion and challenge conventional wisdom, for instance when addressing the oft-misunderstood issue of temporarily hard-coding data to make tests pass. Furthermore, if you have comments or questions about the book in other online forums such as a blog, the author is very quick to respond. Addendum: having pretty much completed the entire book I will add, there is much excellent introductory material regarding Ecmascript 5 included.
1 Comment Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback. If this review is inappropriate, please let us know.
Sorry, we failed to record your vote. Please try again
8 of 8 people found the following review helpful By Jim McGaw on December 3, 2010
Format: Paperback
I'm a Django web developer, and like most of us, the unit test coverage for my projects ends where the client-side code begins. I found this book to be extremely useful in teaching how to create tests for JavaScript. The book uses JsTestDriver, which I had never heard of before the book, but is an amazing cross-browser test runner.

The book is written in three parts. The first is an overview of TDD, the second covers JavaScript as a programming language, and third talks about how to integrate JavaScript testing into a project. The first part is short, and the third is, naturally, the meat of the book. The second part, which introduces JavaScript, seems superfluous given the intended audience. It's a good refresher, but the third part builds upon the second one, so part two can't be skipped. It would have been great if the second and third parts would have been more decoupled.

Besides that, is there any web developer that wouldn't benefit from learning how to treat JavaScript as a real soup-to-nuts programming language?
2 Comments Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback. If this review is inappropriate, please let us know.
Sorry, we failed to record your vote. Please try again
7 of 7 people found the following review helpful By Magnar Sveen on May 13, 2011
Format: Paperback Verified Purchase
Let's be frank: Even if you're not that into test-driven development, this is the book you want.

In this book, Christian displays stunning prowess with the JavaScript language, and he's more than willing to share. You'll learn the intricacies of the language, see best practices for working with the dom, code reuse and object oriented design, functional programming, server-side scripting, and everything done in a test driven fashion.

If you're new to the language, this is the best way to avoid all the outdated advice that plagues many of the other javascript-books. If you're a jQuery ninja, this is your chance to learn that JavaScript has a lot more to offer. And even if you're already a JavaScript expert, I guarantee you'll find a few new useful tricks either way.

And let's not forget: At the end, you'll definitely be into TDD too.
Comment Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback. If this review is inappropriate, please let us know.
Sorry, we failed to record your vote. Please try again
2 of 2 people found the following review helpful By Larry Battle on August 27, 2011
Format: Paperback Verified Purchase
I bought this book to get a deeper understanding of Javascript and to figure out what TDD (Test Driven Development) was. After finishing this book in 2 weeks, I feel that my goals have been accomplished.

Christian Johansen did a excellent job writing Test Driven Javascript Development.
The overall structure is well organized, the code is easy to read with concise explanations and examples are plentiful.

The first part of the book gives you a general overview of TDD and unit testing and code quality tools.
Afterwards, you move on to learning about the basic, advance and future elements of Javascript. Example topics include function creation, binding, different ways to perform inheritance, closure, and ECMAScript 5.

Lastly, the rest of the book is dedicated towards getting you into the mindset of a TDD developer by building small web applications with the author. This means that each section go like this.

Write a test case.
Watch it fail.
Program it to pass.
Re-factor.

I found it amazing what you can do with the Assert, Stub, Mock and Spy functions.

One thing that I've been noticing is that writing test cases takes a LONG time when you first start out as beginner.
Also, I found it hard to avoid testing implementation rather than states and behaviors. But I guess making good test cases comes with experience.

One problem that I faced was that jsTestDriver (the preferred unit testing framework through the book) doesn't work well with jQuery plug-ins. So I ditched it and went with SINON.JS + QUNIT.js. Ever since then I haven't had any problems writing and testing test cases.

I highly recommend this book for anyone curious about Test Driven Development, Unit Testing or wishing to better understand and improve their Javascript.
Comment Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback. If this review is inappropriate, please let us know.
Sorry, we failed to record your vote. Please try again

Product Images from Customers

Most Recent Customer Reviews

Search
ARRAY(0x9bc5fe94)

What Other Items Do Customers Buy After Viewing This Item?