Join Sara Morgan for an in-depth discussion in this video Using the exercise files, part of Improving Visualforce Performance.
- All lynda.com members have access to the Exercise Files used in the developer courses. To access these files, go to the Exercise Files area, and look for the ZIP file to download right to your Desktop. The Exercise Files are organized by chapter, and start with Chapter 02. You should see a folder for each chapter, and within that folder there are sub-folders for any videos that are associated with Exercise Files. For this course, we're going to be working with Visualforce pages, and the code for each page is just a regular text based file that you can open with any text based editor.
The markup code used to create the page is located in a file with a .page file extension, and the apex controller code is located in a file with a .cls file extension, such as what you see here. All sample code files will be text based, and therefore can be opened with any text based editor, such as Notepad+++, which you see here. And you can go ahead and copy the code directly from there, and bring it into the online development tool, which I will talk about later.
And for Salesforce, that's Force.com Developer Console. And you can go in, and immediately create a page here. Name it. And then paste the code from the Exercise File, and click Save.
- Reducing and eliminating view states
- Evaluating SOQL for efficiency
- Using Workbench and the Query Plan tool to evaluate queries
- Reducing use of action tags through Visualforce remoting
- Working with the StandardSetController class
- Using static resources