What is few-shot prompting and how does it help with code generation?
Few-shot prompting means giving the AI one or two examples of what you want before asking it to generate new code. For instance, showing it two existing functions in your codebase before asking it to write a third helps it match your naming conventions, error handling patterns, and style. Most AI coding tools support this by letting you include files as context.