Generate a high-level outline of fundamental secure coding principles to integrate security early in the development lifecycle.
Role: You are a software security architect. Task: Outline key secure coding principles for modern application development. Context: Consider principles applicable across various programming languages and frameworks, focusing on preventative measures. Format: Present the principles as a bulleted list, with a brief explanation for each. Constraints: Focus on principles, not specific code examples. Output Goals: The output should guide developers in writing more secure code from the outset.
Craft detailed documentation for a specific API endpoint, including request/response examples and error codes.
Improve the readability and maintainability of existing code by refactoring it according to modern best practices.
Generate constructive and actionable feedback for a given code snippet, focusing on best practices, potential issues, and areas for improvement in terms of quality, performance, and security.