Showing posts with label Jasmine. Show all posts
Showing posts with label Jasmine. Show all posts

Tuesday, 11 February 2014

Model View Presenter on the cheap

There are some really cool JavaScript (JS) frameworks out there that offer Model View Controller (MVC) and Model View Presenter (MVP) to a website. This guide is not here to compete with those but to describe how easy it can be to bring good practise to an existing website with the minimum of fuss and very few additional dependencies.

This example combines straight JS with Jasmine for Test Driven Development (TDD), jQuery for Asynchronous JavaScript And XML (AJAX) and User Interface (UI) manipulation and Maven for building/test-running/minifying.