Upload
sirar-salih
View
227
Download
3
Tags:
Embed Size (px)
DESCRIPTION
Citation preview
ONE FRAMEWORK TO RULE THEM ALL
SIRAR SALIH
SOFTWARE ENGINEER
About me
C++
2D Games Algorithms
C#.NET
Desktop appsWeb apps
HTML 5JavaScript
Web apps
About me
HTML enhanced for web apps!
GET (once)
POST (later)
From wikipedia
• Directives– Powerful, Angular-only feature– Simplify DOM manipulation by reusable custom functionality
• Data binding– Models
• Controllers– Behavior– Avoid DOM manipulation
• Form validation– Easy client-side validation
• Localization– Filter directives
• Testability– Designed to be testable– Easy dependency injection
• +++
«With great power, comes great responsibility.» – Uncle Ben
• Module– Sub-modules
• Controller
• Directive
• Service– Data
• Service– Data
Demo time!
Best Practices
Naming Conventions
• File naming– mainCtrl.js– mainSvc.js– mainDirective.js
• JavaScript – mainController– mainService– mainDirective
• HTML– <main-directive></main-directive>
Design Patterns
• Feature Pattern– Break into feature folders
Design Patterns
• Enterprise Pattern– Break into component folders
Design Patterns
• App Pattern– Break into module folders
TDD All the Way
«With great power, comes great responsibility.» – Uncle Ben
• Jasmine
«With great power, comes great responsibility.» – Uncle Ben
• Jasmine
«With great power, comes great responsibility.» – Uncle Ben
• Jasmine
«With great power, comes great responsibility.» – Uncle Ben
• Karma test runner
«With great power, comes great responsibility.» – Uncle Ben
• Karma test runner
«With great power, comes great responsibility.» – Uncle Ben
• Karma coverage (Istanbul plugin)
«With great power, comes great responsibility.» – Uncle Ben
• Karma coverage (Istanbul plugin)
Test Automation
«With great power, comes great responsibility.» – Uncle Ben
«With great power, comes great responsibility.» – Uncle Ben
• Grunt
«With great power, comes great responsibility.» – Uncle Ben
• Karma TeamCity (TeamCity plugin)
«With great power, comes great responsibility.» – Uncle Ben
• Karma TeamCity (TeamCity plugin)
«With great power, comes great responsibility.» – Uncle Ben
• Karma TeamCity (TeamCity plugin)
«With great power, comes great responsibility.» – Uncle Ben
• Karma coverage (Istanbul plugin)
Thank you / Questions?
Blog: http://sirars.com/ • [email protected] / [email protected]• @SirarSalih