|
October 05, 2016
Debunk the myth that JavaScript is not easily testable. Whether you use Node.js, Express, MongoDB, jQuery, AngularJS, or directly manipulate the DOM, you can test-drive JavaScript. Venkat shows you how in Test-Driving JavaScript Applications: Rapid, Confident, Maintainable Code, now in print and shipping from pragprog.com/book/vsjavas.
And since it's October, there's a new issue of PragPub Magazine. Read on and check it out!
Test-Driving JavaScript Applications: Rapid, Confident, Maintainable Code
Design and code JavaScript applications with automated tests. Writing meaningful tests is a skill that takes learning, some unlearning, and a lot of practice, and with this book, you'll hone that skill. Fire up the editor and get hands-on through practical exercises for effective automated testing and designing maintainable, modular code.
Start by learning when and why to do manual testing vs. automated verification. Focus tests on the important things, like the pre-conditions, the invariants, complex logic, and gnarly edge cases. Then begin to design asynchronous functions using automated tests. Carefully decouple and mock out intricate dependencies such as the DOM, geolocation API, file and database access, and Ajax calls to remote servers.
Step by step, test code that uses Node.js, Express, MongoDB, jQuery, and AngularJS. Know when and how to use tools such as Chai, Istanbul, Karma, Mocha, Protractor, and Sinon. Create tests with minimum effort and run them fast without having to spin up web servers or manually edit HTML pages to run in browsers. Then explore end-to-end testing to ensure all parts are wired and working well together.
Don't just imagine creating testable code, write it.
Now in print and shipping from pragprog.com/book/vsjavas.
October PragPub Magazine
This month in PragPub we’re featuring an excerpt from a new book by John Whitington. A Machine Made this Book: Ten Sketches of Computer Science introduces key topics in computer science to the literate lay reader. “What exactly is a computer program, what and how does it calculate, and how can we build one? Can we compress information to make it easier to store and quicker to transmit? How do newspapers print photographs with grey tones using just black ink and white paper?”
John knows his stuff: he’s the founder of a company that builds software for electronic document processing and he has taught Computer Science at Queens’ College, Cambridge.
Although the book is aimed at novices, the treatment is serious and deep. It would be an enjoyable read for any programmer, a useful tool to have at hand when explaining computer science topics to novices, and a fine example of writing about technology. We think you’ll enjoy his deep dive into the history and technology of reproducing grey tones that we’ve excerpted here.
Also in this issue: Andy Lester shares his thoughts on how to do estimates when you absolutely have to do estimates, Marcus Blankenship talks about the fundamental importance of good personal relationships in software teams and how to foster them, Johanna Rothman explains why technical debt can be a distracting and damaging metaphor, Antonio Cangiano rounds up the latest technical books, and Mike summarizes the tech news of the past month.
And that’s not all: that series on Ted Nelson and Xanadu returns, and we have a puzzle for you to solve. We hope you enjoy this October issue.
Now available from theprosegarden.com.
Upcoming Author Appearances2016-10-06 Jared Richardson,
StarWest (Anaheim)
2016-10-17 Johanna Rothman,
PNSQC, Portland, OR
2016-10-19 Johanna Rothman,
PNSQC, Portland, OR
2016-10-19 Andrew Hunt,
Agile PDX
Did You Know?
Please note our ebooks do not contain any Digital Restrictions Management, and have always been DRM-free. For us, "DRM Free" means "freedom": you should own the books you've paid for. On whatever device is handy—your laptop, iThingy, Blueberry, you name it. We think ideas should outlast any device you put them on.
And you can always come back and re-download your books when needed, using your account on pragprog.com. We're here to make your life easier.
Don't Get Left Out
Are your friends jealous that you get these spiffy email newsletters and they don't? Clue them in that all they need to do is create an account on pragprog.com (email address and password is all it takes) and select the checkbox to receive newsletters.
Are you following us on Twitter and/or Facebook? Here's where you can find us and keep up with the latest news and commentary, and occasional discounts:
Tell your friends! Tweet this
Follow us on Twitter: @pragprog, @pragpub, Andy Hunt @PragmaticAndy.
Andy Hunt
Publisher, Pragmatic Bookshelf
Books • eBooks • PragPub Magazine • Audiobooks and Screencasts PragProg.com
Manage your subscription using your account, or permanently unsubscribe here. Sent by the Pragmatic Programmers, LLC. • 9650 Strickland Rd Ste 103-255• Raleigh NC 27615
|