-
Book Overview & Buying
-
Table Of Contents
Mastering Application Development with Force.com
By :
At the risk of beating a dead horse, I want to again call out unit testing. Salesforce doesn't require unit tests because a Salesforce executive got a bee in his bonnet about platform stability. Tests exist to help you properly architect, engineer, document, and refactor your code. They help you architect your code to handle bulk data situations, complex object interactions, and integrations with third parties. By modeling real-life situations in tests, you know just how the code will actually work. Likewise, unit tests help you engineer your code line-by-line to meet security, data access, and governor requirements. If you find that you cannot easily test something, then you are likely fighting the platform rather than leveraging it. If a design or class is hard to test, take a long, hard look at what your end goal is and how the platform's other tools may help you create this with greater ease. Lastly, tests help document the use...
Change the font size
Change margin width
Change background colour