Force.com Design Patterns - Part 2
Learn about common (and not-so-common) design patterns on the Force.com platform, with in-depth tutorials of actual applications
What you'll learn
Part 2 of this course covers test design patterns, Visualforce architecture and JavaScript Remoting using Knockout.js to demonstrate real-time data binding from DOM to SObject. It concludes with a unique Apex design pattern that's tailor made for the Force.com platform called the Flow Factory. This stateful pattern organizes the business logic of a conceptual flow chart by leveraging both the Strategy and the Factory Method design patterns while adding a few twists of its own.
Table of contents
- Introduction 1m
- Unit Test Benefits 1m
- General Recommendations 3m
- Centralize Data Creation 2m
- Demo: Centralized Test Data Creation 1m
- Apex System Methods 1m
- System.Test.loadData 1m
- Demo: Loading Test Data From Static Resources 1m
- Testing Callouts 1m
- Mock Callouts 2m
- Demo: HttpCalloutMock 2m
- Demo: StaticResourceCalloutMock 1m
- Demo: MultiStaticResourceCalloutMock 2m
- Deploying to Production 2m
- Soft Assert 1m
- Instructive Static Resources 3m
- Soft Assert Code 1m
- Static Resource Code 2m
- Calling getItemEntry() 1m
- Demo: Soft Assert and Disable Tests 4m
- Introduction 1m
- Visualforce Overview 1m
- MVC Architecture 3m
- Page Requests 2m
- Get Requests 3m
- Postback Requests 2m
- Anatomy of a Page 3m
- Visualforce VS HTML 3m
- Component IDs 3m
- Iterating Component IDs 1m
- Custom Components 2m
- JavaScript Remoting 3m
- Knockout.js (MVVM) 2m
- Membership Levels 1m
- Demo: Membership Levels 2m
- Demo: Code Walkthrough 10m
- Introduction 1m
- The Problem 6m
- Design Patterns 1m
- Strategy Pattern 2m
- Simple/Static Factory 1m
- Factory Method 1m
- Stateful Flow Factory 3m
- Flow Factory Demo Overview 1m
- Membership Level Flow 1m
- Unsubscribe Flow 1m
- Demo: Flow Factory 2m
- Demo: Code Walkthrough (FlowFactory.cls) 2m
- Demo: Code Walkthrough (MembershipLevelFlow.cls) 4m
- Demo: Code Walkthrough (UnsubscribeFlow.cls) 2m
- Demo: Code Walkthrough (FlowFactoryDemoController.cls) 2m
- Demo: Code Walkthrough (FlowFactoryDemo.page) 1m
- Force.com Design Patterns Conclusion 1m