IMPLICIT CONVENTIONS: __ double underscore method prefixes denote private methods _ single underscore method prefixes denote protected methods
RUN: open index.html under gorkana-test root directory in a browser
REQUIREMENTS:
- No external libraries are allowed (including JQuery, underscore etc)
- Needs to support Firefox and Chrome browsers (latest versions)
ASSUMPTIONS:
- The description is always unique (otherwise more complex logic to support multiple items with the same description is needed
TODO:
- Full QUnit test coverage (using Sinon.js for mocks / stubs / spies) is required
- Values in the view layer should be always updated from changes coming from the model only, but don't have time to implement
- Add require js and order plugin for it
- Choose on which is the preferred objects / class structure within the company and refactor as appropriate:
- Object Literal Pattern / Singleton
- Module Pattern
- Constructor Pattern
- Other forms of Classical / Prototypal Inheritance structures TBC
- More explicit directory structure inside the view could be added - e.g. view/page to hold basketView.js and view/partials - to hold itemCountView.js and itemView.js or others