|
You are here |
evanfields.net | ||
| | | | |
ezyang.github.io
|
|
| | | | | The Rule of Three in software says that you should be willing to duplicate a piece of code once, but on the third copy you should refactor. This is a refinement on DRY (Don't Repeat Yourself) accounting for the fact that it might not necessarily be obvious how to eliminate a duplication, and waiting until the third occurrence might clarify. (See also The Wrong Abstraction.) LLMs love to duplicate code. Think about how, absent any other prompting, if you ask an LLM to modify a program, it will spit out a new copy of the program with the changes requested. For an LLM to decide to refactor code to remove duplication requires a moment where the LLM proactively decides to go out of their way to do some cleanup. (Actually, Sonnet 3.7 also has some of this inclinat... | |
| | | | |
blog.andrewshell.org
|
|
| | | | | Strategies for thinking, learning, and productivity. | |
| | | | |
jamubc.github.io
|
|
| | | | | Bridge Gemini models with Claude Desktop | |
| | | | |
iferminm.gitlab.io
|
|
| | | More than writing code | ||