Maintain clean code organization by eliminating unnecessary abstractions and preventing codebase fragmentation. This applies both at the component level and module level:
Maintain clean code organization by eliminating unnecessary abstractions and preventing codebase fragmentation. This applies both at the component level and module level:
// Don't do this:
function InstallationInfo({ children }) {
return <Npm2Yarn>{children}</Npm2Yarn>;
}
// Do this instead:
<Npm2Yarn>{content}</Npm2Yarn>
// Don't do this:
"utils/is_openai_tool": "utils/is_openai_tool",
// Do this instead:
// Add to existing related module like "language_models/base"
This approach reduces code complexity, improves maintainability, and makes the codebase easier to navigate and understand.
Enter the URL of a public GitHub repository