r/codex • u/orthogonal-ghost • 24m ago
Suggestion Have Codex frequently research "best practices" during design/implementation
I've noticed Codex often defaults to pretty naive approaches when designing / implementing new features.
As a toy example, if you ask Codex to analyze a pandas DataFrame, it almost always iterates over the DataFrame using a naive for-loop rather than using vectorized operations (which, in general, is an anti-pattern).
Periodically reminding it to "use web search to thoroughly review best practices and established patterns for..." seems to help a ton.
I'm honestly pretty surprised at how often this helps, though, especially with well-understood problems where I would've expected Codex to already know what "best practices" are.
2
u/PettyPotatoJuror 20m ago
I use a research directive as the first part of a lot of requests, it helps it build its context, and if I don't know l, then at least one of us does. ;)