Machine coding round
Build a working widget (typeahead, kanban, star rating, folder tree) in 60-90 minutes with clean state and edge cases. Standard at Indian product companies.
The mental model
The machine-coding round is a 60–90 minute exam whose real question is: can you ship a working, edge-case-handled UI widget under a timer, with clean state, while narrating your decisions? It is not "do you know React" — it is "given a spec and a clock, do you produce something that runs, handles the tricky cases, and reads like code a teammate could maintain."
The analogy: a cooking-show timed challenge. You are not judged on inventing a new cuisine; you are judged on getting a complete, correct dish plated before the buzzer. The chef who spends 40 minutes perfecting the garnish and serves a raw centre fails. The one who cooks the protein through, seasons it, and plates something coherent — then garnishes if time remains — wins. Machine coding rewards the same instinct: get it running end to end first, handle the edge cases that prove you thought, then polish. An incomplete-but-working widget with clean state beats a beautiful half that does not run.
Why this exists — what it filters for. Take-home projects can be outsourced and whiteboard DSA does not resemble the job. Machine coding is the closest proxy to the daily work: you get an ambiguous spec, you scope it, you build a real interactive thing, and you make a hundred small state and edge-case decisions under pressure. It filters out people who can talk about React but freeze when asked to build a typeahead, and people who build the happy path and never consider the empty state, the loading state, the race, or the keyboard user. Indian product companies (Flipkart, Swiggy, Meesho tier) treat it as the decisive round precisely because it is hard to fake.
The organising principle: working, then correct, then clean, then pretty — in that order, and know where the buzzer will catch you. Most failures are running out of time on the happy path because the candidate started with CSS.
- Deep dive
- Internal architecture
- Real-world use cases
- Best practices
- Common mistakes
- Performance
- Security
- Production troubleshooting
- Advantages & disadvantages
- Alternatives
- Interview expectations
- Interview questions
- Facts to remember
- Cheat sheet
- Quick revision