ColdFusion components (otherwise known as CFCs)
- powerful feature of ColdFusion MX that allows developers to introduce object oriented programming techniques
- collection of functions that relate to a given entity,
- like for example, a Customer.
- You could create a customer.cfc that is responsible for the programming logic regarding your customer records. (CRUD functionality)
Benefits
Security
- You can restrict access to a ColdFusion component and it’s functions
Performance
- ColdFusion Components are faster.
- They are compiled.
Extensibility
- It can share methods with other ColdFusion components.
Reusability
- Standalone piece of code that accepts input and provides output.
- Once you’ve called a component in a page, you can reuse it without having to call it again in that page.
