From c4d5125699a283dfeb10589d58b6b6c01f30589d Mon Sep 17 00:00:00 2001 From: Goran Peretin Date: Mon, 1 Jul 2024 11:43:33 +0000 Subject: [PATCH] Coding rules prompt tweak to prevent code duplication. --- core/prompts/partials/coding_rules.prompt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/prompts/partials/coding_rules.prompt b/core/prompts/partials/coding_rules.prompt index b1eca9cb..a1536690 100644 --- a/core/prompts/partials/coding_rules.prompt +++ b/core/prompts/partials/coding_rules.prompt @@ -22,7 +22,7 @@ Consider these examples to guide your approach and thought process: ---end_of_examples--- ## Rule 4: Coding principles -Write high-quality code, first organize it logically with clear, meaningful names for variables, functions, and classes. Aim for simplicity and adhere to the DRY (Don't Repeat Yourself) principle to avoid code duplication. Ensure your codebase is structured and modular for easy navigation and updates. +Write high-quality code, first organize it logically with clear, meaningful names for variables, functions, and classes. Aim for simplicity and adhere to the DRY (Don't Repeat Yourself) principle to avoid code duplication. Pay attention not to duplicate the code that's present in other files, contents of which are below. Ensure your codebase is structured and modular for easy navigation and updates. If the instructions have comments like `// ..add code here...` or `# placeholder for code`, instead of copying the comment, interpret the instructions and output the relevant code.