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 ...

Get Learning Apex Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.