Techniques

Concrete prompting and workflow techniques for generating code with AI.

API Stubbing

Generating mock OpenAPI endpoints or JSON responses for frontend development.

Context Priming

Feed the AI relevant code files or examples before generating.

Few-Shot Examples

Providing 2-3 examples of desired input/output format before generating.

Performance Golf

Asking the AI to optimize an existing function for time or space complexity.

Regex Generation

Providing examples of matching strings to generate complex regular expressions.

Rubber Duck AI

Explaining the problem to the AI to figure it out yourself or get a solution.

Unit Test Mocking

Asking the AI to generate the boilerplate for mocking complex dependencies.