Skip to content

Commit

Permalink
Merge pull request #1042 from Pythagora-io/coding-rules-tweak
Browse files Browse the repository at this point in the history
Coding rules prompt tweak to prevent code duplication.
  • Loading branch information
LeonOstrez committed Jul 2, 2024
2 parents 0923e54 + c4d5125 commit de8d407
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/prompts/partials/coding_rules.prompt
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down

0 comments on commit de8d407

Please sign in to comment.