+ Implements all three requested endpoints concisely.
- It lacks validation for missing or invalid titles.
a Continue Coding Assistant. You are a skilled programmer with expertise in multiple programming languages and frameworks.
| Category | Development › Coding |
|---|---|
| Tags | ReviewingDraftingDeveloperCode |
Act as a Continue Coding Assistant. You are a skilled programmer with expertise in multiple programming languages and frameworks.
Your task is to assist in continuing the development of a codebase or project.
You will:
- Review the existing code to understand its structure and functionality.
- Provide suggestions and write code snippets to extend the current functionality.
- Ensure the code follows best practices and is well-documented.
Rules:
- Use ${language:JavaScript} unless specified otherwise.
- Follow ${codingStyle:Standard} coding style guidelines.
- Maintain consistent indentation and code comments.
- Only use libraries that are compatible with the existing codebase.This coding assistant role is useful for continuing interrupted development work. It defaults to JavaScript and limits libraries to those compatible with the existing codebase.
ChatGPT is the most direct and well-sized. Gemini is robust but overextended, while [C] is missing and cannot be meaningfully assessed.
+ Implements all three requested endpoints concisely.
- It lacks validation for missing or invalid titles.
+ Provides validation, status codes, and clear usage notes.
- It is verbose and adds unrequested toggle behavior.
| Criterion | ChatGPT | Gemini | Leader |
|---|---|---|---|
| Instruction following | 10 | 9 | ChatGPT +11% |
| Accuracy | 9 | 8 | ChatGPT +13% |
| Specificity | 9 | 9 | Tie |
| Structure | 9 | 9 | Tie |
| Right length | 10 | 7 | ChatGPT +43% |
Scored 1–10 by gpt-5.6-sol with model names hidden (2026-09-25). This is an AI review, not a measurement.
We gave three models the same input and copied their answers unedited. Each ran in its CLI (an agent harness), and answers in the ChatGPT or Claude apps or on the web may differ. Outputs are in Korean.
[Pasted material]
할일 관리 REST API를 만들고 있어. 기존 코드는 아래와 같아.
const express = require('express');
const app = express();
app.use(express.json());
let todos = [];
let nextId = 1;
app.get('/todos', (req, res) => res.json(todos));
app.post('/todos', (req, res) => {
const todo = { id: nextId++, title: req.body.title, done: false };
todos.push(todo);
res.status(201).json(todo);
});
app.listen(3000);
여기에 수정(PUT), 삭제(DELETE), 완료 처리(PATCH) 엔드포인트를 추가해서 이어서 작성해줘.const express = require('express');
const app = express();
app.use(express.json());
let todos = [];
let nextId = 1;
app.get('/todos', (req, res) => {
res.json(todos);
});
app.post('/todos', (req, res) => {
const todo = {
id: nextId++,
title: req.body.title,
done: false
};
todos.push(todo);
res.status(201).json(todo);
});
// 할 일 수정
app.put('/todos/:id', (req, res) => {
const id = Number(req.params.id);
const todo = todos.find(item => item.id === id);
if (!todo) {
return res.status(404).json({ message: '할 일을 찾을 수 없습니다.' });
}
todo.title = req.body.title;
res.json(todo);
});
// 할 일 완료 처리
app.patch('/todos/:id', (req, res) => {
const id = Number(req.params.id);
const todo = todos.find(item => item.id === id);
if (!todo) {
return res.status(404).json({ message: '할 일을 찾을 수 없습니다.' });
}
todo.done = true;
res.json(todo);
});
// 할 일 삭제
app.delete('/todos/:id', (req, res) => {
const id = Number(req.params.id);
const todoIndex = todos.findIndex(item => item.id === id);
if (todoIndex === -1) {
return res.status(404).json({ message: '할 일을 찾을 수 없습니다.' });
}
todos.splice(todoIndex, 1);
res.status(204).send();
});
app.listen(3000, () => {
console.log('서버가 3000번 포트에서 실행 중입니다.');
});
PUT /todos/:id는 제목을 수정하고, PATCH /todos/:id는 해당 할 일을 완료 상태로 변경하며, DELETE /todos/:id는 삭제합니다.
| 12-Month AI and Computer Vision Roadmap for Defense Applications | |
| 2046 Puzzle Game Challenge | |
| 21st.dev component prompt | |
| 3D FACTORY | |
| 3D FPS Game |