mirror of
https://github.com/Pythagora-io/gpt-pilot.git
synced 2026-01-09 21:27:53 -05:00
Coding rules prompt tweak to prevent code duplication.
This commit is contained in:
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user