In this blog post I show how functionality can easily be reused across Backbone.js models, collections and views in a very powerful way. This technique helps decouple code and make each component more focused on its primary task.
Throughout my last project we have had an interesting approach to testing our Backbone.js code. Instead of unit testing each and every bit of the application, we mock out Ajax requests and test that the application works end-to-end.
Introduction Are you working on unmaintainable JavaScript code? Are you afraid to make changes to your 5000+ lines long JS file? If so, you’ve probably not written tests or done TDD. Fear not! Read on, and we will show you how to get started with writing tests and setting up the needed tools. We will [...]
I faggruppen Kvalitet og testing har vi gjennom 4 år diskutert kvalitetsrelaterte temaer. Vi har blant annet vært innom teknikker som TDD og BDD, ulike smidige metoder som Scrum og Kanban, verktøy for testing og kvalitetsheving samt kulturbygging og craftsmanship. Konklusjonen er at kvalitet kan være så mangt. Selv i faggruppen har vi fortsatt hvert [...]
Når man skriver i et dynamisk språk som JavaScript med mye kraft i fingerspissene er det lett å ødelegge det man allerede har fått på plass. QUnit er et lettvektig rammeverk for enhetstesting i JavaScript. Med QUnit kan du blant annet teste asynkron kode og fasilitere automatisert testkjøring. Denne artikkelen forklarer hva QUnit gjør og hvordan man bruker det.
Brian Marick is doing a Clojure tour – and we are so fortunate to have him visit Oslo to hold his “Top-down TDD in Clojure”-course. The course takes place on Friday, September 16th and Saturday 17th. We hope that you will join us!