WhichAI
← All tasks

Coding

Write code from scratch

Build a new feature, script or component from a description.

Used an AI for “Write code from scratch”? Add your take.

Vote head-to-head

Community ranking

from coding, reasoning, speed · 1 rating for this task
  1. ★
    ChatGPT
    OpenAI
    Mostly overall rating
    6.8
    —
  2. 2
    Claude
    Anthropic
    From ability ratings1 rating for this task
    6.6
    —
  3. 3
    Gemini
    Google
    Mostly overall rating
    6.5
    —
  4. 4
    Copilot
    Microsoft
    Mostly overall rating
    5.2
    —
  5. 5
    Meta AI
    Meta
    Mostly overall rating
    5.0
    —
  6. 5
    Grok
    xAI
    Mostly overall rating
    5.0
    —
  7. 5
    DeepSeek
    DeepSeek
    Mostly overall rating
    5.0
    —
  8. 5
    Perplexity
    Perplexity AI
    Mostly overall rating
    5.0
    —
  9. 5
    Mistral
    Mistral AI
    Mostly overall rating
    5.0
    —

Start with this prompt

Written for this task. Fill in the bracketed parts.

Write [what it should do] in [language/framework].

Constraints:
- [runtime, versions, libraries I can and can't use]
- [performance or size limits that matter]

Handle the error cases, don't just cover the happy path. Add comments only
where the reasoning isn't obvious from the code. When you're done, tell me what
you'd test first and what you'd expect to break under load.

Try another task