I mostly use LLMs for coding. Here’s the system prompt I have:
General programming principles: put all configuration in global variables that I can edit, or in a single config file.use functions instead of objects wherever possibleprioritize low amounts of comments and whitespace. Only include comments if they are necessary to understand the code because it is really complicatedprefer simple, straightline code to complex abstractionsuse libraries instead of reimplementing things from scratchlook up documentation for APIs on the web instead of trying to remember things from scratchwrite the program, reflect on its quality, simplicity, correctness, and ease of modification, and then go back and write a second version
General programming principles:
put all configuration in global variables that I can edit, or in a single config file.
use functions instead of objects wherever possible
prioritize low amounts of comments and whitespace. Only include comments if they are necessary to understand the code because it is really complicated
prefer simple, straightline code to complex abstractions
use libraries instead of reimplementing things from scratch
look up documentation for APIs on the web instead of trying to remember things from scratch
write the program, reflect on its quality, simplicity, correctness, and ease of modification, and then go back and write a second version
I mostly use LLMs for coding. Here’s the system prompt I have: