Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Backbone.js Patterns and Best Practices
  • Table Of Contents Toc
Backbone.js Patterns and Best Practices

Backbone.js Patterns and Best Practices

By : Swarnendu De
4.3 (9)
close
close
Backbone.js Patterns and Best Practices

Backbone.js Patterns and Best Practices

4.3 (9)
By: Swarnendu De

Overview of this book

Table of Contents (19 chapters)
close
close
Backbone.js Patterns and Best Practices
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
2
Precompiling Templates on the Server Side
4
Index

Understanding why unit testing is important


If you already know the benefits of testing and follow the best practices while developing your JavaScript apps, you can skip this section. If you still wonder why you should actually test your application while you are already writing clean and maintainable code, the following are a few reasons to consider:

  • Testing is never a waste of time. You do not need to run your code repeatedly to see whether it works or not. You can run all the test cases at once to see whether everything is functioning as expected. Testing gives you the confidence that your code is working fine.

  • Unit tests are really fast to create and fast to run too.

  • Update your code without worry. Your test will tell you whether the function is working as it is expected to or not. You will find this very helpful, especially when you work in a team.

  • Once you start writing unit tests for your code, you will soon find that you are writing more modular, flexible, and testable code than you...

CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Backbone.js Patterns and Best Practices
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon