Dopamine AI Prompt Library
Open search
Menu
Submitted by
devon_builds34 prompts

ColdFusion Coding Standards for CFC Files

ColdFusion Coding Standards for CFC component and application patterns

Added Nov 26, 2026

Prompt

coldfusion-coding-standards-for-cfc-files.mdMarkdown · 25 lines · about 320 tokens
# ColdFusion Coding Standards for CFC Files
- Use CFScript where possible for cleaner syntax.
- Avoid using deprecated tags and functions.
- Follow consistent naming conventions for variables and components.
- Use `cfqueryparam` to prevent SQL injection.
- Escape CSS hash symbols inside <cfoutput> blocks using ##
# Additional Best Practices
- Use `this` scope for component properties and methods when appropriate.
- Document all functions with purpose, parameters, and return values (use Javadoc or similar style).
- Use access modifiers (`public`, `private`, `package`, `remote`) for functions and variables.
- Prefer dependency injection for component collaboration.
- Avoid business logic in setters/getters; keep them simple.
- Validate and sanitize all input parameters in public/remote methods.
- Use `cftry`/`cfcatch` for error handling within methods as needed.
- Avoid hardcoding configuration or credentials in CFCs.
- Use consistent indentation (2 spaces, as per global standards).
- Group related methods logically within the component.
- Use meaningful, descriptive names for methods and properties.
- Avoid using `cfcomponent` attributes that are deprecated or unnecessary.
- Use ternary operators where possible
- Ensure consistent tab alignment.

About this prompt

Content type
Code
Industries
Software Development
Models
GitHub Copilot
Languages
English
Length
25 lines, about 320 tokens
Added
Nov 26, 2026
License
MIT (Copyright GitHub, Inc.)
Request takedown
devon_builds34 prompts
Profile

More from devon_builds

View all

Accessibility Standards

Comprehensive web accessibility standards based on WCAG 2.2 AA, with 38+ anti-patterns, legal enforcement context (EAA, ADA Title II), WAI-ARIA patterns, and framework-specific fixes for modern web frameworks and libraries.

Dataverse SDK for Python - Agentic Workflows Guide

# Dataverse SDK for Python - Agentic Workflows Guide ## ⚠️ PREVIEW FEATURE NOTICE **Status**: This feature is in **Public Preview** as of December 2025 **Availability**: General Availability (GA) date TBD **Documentation**: Complete implementation details forthcoming This guide covers the conceptual framework and planned capabilities for building agentic workflows with the Dataverse SDK f

Search & AI Optimization Expert

Expert guidance for modern search optimization: SEO, Answer Engine Optimization (AEO), and Generative Engine Optimization (GEO) with AI-ready content strategies

Devils Advocate

I play the devil's advocate to challenge and stress-test your ideas by finding flaws, risks, and edge cases

SQL Development

Guidelines for generating SQL statements and stored procedures