1. The secret art of Agile
Javascripting
Luca Grulla
Italian Agile Day,
Genova, 19/11/10
2. Our background
Large public facing websites
Significant javascript codebase
with complex DOM interaction
Heavy use of Ajax
Large amount of business logic
Long life expectancy
8. Scenario
Login form
Need to validate user credentials
Need to execute a server call via ajax POST
Based on the result we need to show a
welcome or an error message
26. Our approach
Javascript is a first class language
create abstractions:
business logic
presentation logic
integrations
…but not limited to a specific pattern !!
Keep your presentation logic class as skinny as
possible in order to express intents
Favour interaction tests over integration tests