IDEA: Source code is - markdown of prompt that created the file (the...
IDEA:
Source code is
- markdown of prompt that created the file (the specification)
- markdown of prompt for unit testing the file (testing plan)
- markdown of prompt to code view the file (quality standards)
- etc
- the source code
Generic prompts ("please write unit tests for this file") perform poorly even with smart bots. If you mention ANYTHING irrelevant, the bot will work it into the result.
Self-replies
e.g. "Bot, please use pathlib.Path instead of str if necessary. Use tmp_path for temporary files, if necessary"
Bot: <while testing code with no need for filesystem anything, it writes an unnecessary file to tmp_path because it felt compelled to>
Leave out the text on pathlib.Path? It uses str for every #!#$@$ path because that is what 90% of internet text does.