Book Image

Learning Apex Programming

Book Image

Learning Apex Programming

Overview of this book

Table of Contents (17 chapters)
Learning Apex Programming
Credits
Foreword
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Your component library


Although we don't spend much time writing comments in our code in this book, it's definitely a best practice to do so. This is especially true for Visualforce components because they are designed for reusability. If you and your colleagues don't want to reinvent the wheel, then you need to provide descriptive information about your components. Fortunately, there's a built-in Description attribute in components just for this purpose. You can access this Description attribute on the metadata of the component. In case you don't remember from Chapter 1, Apex Assumptions and Comparisons, the metadata for a file is accessed in the IDE via the Metadata tab at the bottom of the editor, as shown in the following screenshot:

Once you've provided a useful description for all of your components, you and your fellow developers can browse through the list of components from inside the Force.com GUI, as follows:

  1. Click on the Setup link at the top of the Force.com GUI.

  2. Navigate to Developer...