Dopamine AI Prompt Library
Open search
Menu
Submitted by
codebyleah29 prompts

ColdFusion Coding Standards

ColdFusion cfm files and application patterns

Added Nov 26, 2026

Prompt

coldfusion-coding-standards.mdMarkdown · 23 lines · about 290 tokens
# ColdFusion Coding Standards
- 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 ##
- When using HTMX inside <cfoutput> blocks, escape hash symbols (#) by using double hashes (##) to prevent unintended variable interpolation.
- If you are in a HTMX target file then make sure the top line is: <cfsetting showDebugOutput = "false">
# Additional Best Practices
- Use `Application.cfc` for application settings and request handling.
- Organize code into reusable CFCs (components) for maintainability.
- Validate and sanitize all user input.
- Use `cftry`/`cfcatch` for error handling and logging.
- Avoid hardcoding credentials or sensitive data in source files.
- Use consistent indentation (2 spaces, as per global standards).
- Comment complex logic and document functions with purpose and parameters.
- Prefer `cfinclude` for shared templates, but avoid circular includes.
- Use ternary operators where possible
- Ensure consistent tab alignment.

About this prompt

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

More from codebyleah

View all

neo4j-docker-client-generator

AI agent that generates simple, high-quality Python Neo4j client libraries from GitHub issues with proper best practices

Codexer Instructions

Advanced Python research assistant with Context 7 MCP integration, focusing on speed, reliability, and 10+ years of software development expertise

Use Cliche Data in Documentation

Ensure documentation and examples use only generic, cliche placeholder data — never real or sensitive data sourced from local scripts, configuration, task files, or prompt context.

SQL Development

Guidelines for generating SQL statements and stored procedures