Skip to content
Preptima
mediumCodingDesignMidSeniorStaff

You may use an AI coding assistant in the machine-coding round. What do you still write yourself, and what do you ask it for?

Write the domain model, the interfaces and the code enforcing each invariant yourself, because the grader scores them and a mid-round change tests them. Hand the assistant bounded boilerplate such as records, an in-memory repository, a driver and test scaffolding, and review every line it returns.

5 min readUpdated 2026-10-10

Answer

Short answer

Own the design and delegate the typing. In a machine coding round with an AI coding assistant allowed, you still write the domain model, the interfaces and the code that enforces each business invariant, because that is what the grader scores and what a mid-round requirement change will test. Ask the assistant for bounded boilerplate: data classes, an in-memory repository, a command-line driver, parsing and test scaffolding. Then review every line it returns as if a colleague had sent it, and keep enough time for tests and the extension the interviewer will ask for.

Was this answer helpful?

Likely follow-ups

  • The interviewer adds recurring bookings at minute seventy. Which of your files change, and which generated ones do you not touch?
  • The assistant's repository class compiles but silently returns an empty list for unknown rooms. Is that a bug, and how did you find it?
  • Would you show the interviewer your prompts? What would they learn from them?
  • What do you do if the assistant keeps rewriting your interface when asked for an implementation?

Related questions