★ Petty Evals
formatting

Trailing commas in JavaScript?

NO-TRAILING
4 no-trailing

Unanimous. Anyone disagreeing with this in 2026 needs to log off.

The exact prompts I used (3 variants)

Each model got each prompt 20 times (2 temperatures × 10 runs). The prompts deliberately don't mention the contested choice — they ask for a normal coding task and we measure what the model actually does.

  1. Write a JavaScript module that exports a config object with five fields: host, port, timeout, retries, and debug. Use realistic default values.
  2. Write a JavaScript function that returns an array of weekday names starting from Monday. Format the array literal on multiple lines.
  3. Write a JavaScript function that returns an object mapping HTTP status codes (200, 301, 404, 500) to short human-readable labels.

Who said what

Claude Sonnet 4.6
claude-sonnet-4-6
NO-TRAILING
60% confidence (95% CI: 47–71%)
GPT-5.4
gpt-5.4
NO-TRAILING
65% confidence (95% CI: 52–76%)
GPT-5.4 mini
gpt-5.4-mini
NO-TRAILING
73% confidence (95% CI: 61–83%)
Gemini 2.5 Pro
gemini-2.5-pro
NO-TRAILING
60% confidence (95% CI: 47–71%)

The pundit panel.

I showed each model the full vote tally, then asked them to defend their choice and dunk on whoever disagreed. Receipts attached.

Claude Sonnet 4.6
voted NO-TRAILING

“If you're still omitting trailing commas in 2026, enjoy your filthy, noisy diffs where every array addition touches two lines instead of one.”

GPT-5.4
voted NO-TRAILING

“If you’re still pushing TRAILING commas into multi-line JavaScript arrays and objects, congratulations on optimizing for diff noise and parser-era superstition instead of clean, intentional code.”

GPT-5.4 mini
voted NO-TRAILING

“Trailing-comma cultists in NO-TRAILING arrays and objects are just writing junk diffs and pretending readability improved; the clean, final-element-last style is the only sane default.”

Gemini 2.5 Pro
voted NO-TRAILING

“That TRAILING comma proves you don't grasp its purpose: it's a separator, not a sad, dangling ornament on a finished list.”

Show me the actual code (240 samples)
Claude Sonnet 4.6 — 60 samples click to expand
variant 0 · temp 0 · run 0 · → no-trailing
Prompt

Write a JavaScript module that exports a config object with five fields: host, port, timeout, retries, and debug. Use realistic default values.

Response (first 800 chars)
```javascript
/**
 * Application configuration module.
 *
 * Values can be overridden via environment variables:
 *   APP_HOST     – hostname or IP of the target service
 *   APP_PORT     – port number
 *   APP_TIMEOUT  – request timeout in milliseconds
 *   APP_RETRIES  – number of retry attempts on failure
 *   APP_DEBUG    – enable verbose debug logging ("true" / "false")
 */

const config = {
  /** Hostname or IP address of the remote service. */
  host: process.env.APP_HOST ?? "localhost",

  /** Port the service listens on. */
  port: parseInt(process.env.APP_PORT ?? "3000", 10),

  /** Maximum time (ms) to wait for a response before aborting. */
  timeout: parseInt(process.env.APP_TIMEOUT ?? "5000", 10),

  /** How many times to retry a failed request before giving up. */
  retries:
…
variant 0 · temp 0 · run 1 · → no-trailing
Prompt

Write a JavaScript module that exports a config object with five fields: host, port, timeout, retries, and debug. Use realistic default values.

Response (first 800 chars)
```javascript
/**
 * Application configuration module.
 *
 * Provides a centralized config object with sensible defaults.
 * Values can be overridden via environment variables.
 */

const config = {
  /**
   * Hostname or IP address of the target server.
   * @type {string}
   */
  host: process.env.APP_HOST || "localhost",

  /**
   * Port number the server listens on.
   * @type {number}
   */
  port: parseInt(process.env.APP_PORT, 10) || 3000,

  /**
   * Request timeout in milliseconds before giving up.
   * @type {number}
   */
  timeout: parseInt(process.env.APP_TIMEOUT, 10) || 5000,

  /**
   * Number of times to retry a failed request before throwing an error.
   * @type {number}
   */
  retries: parseInt(process.env.APP_RETRIES, 10) || 3,

  /**
   * Whether to enable verbose debu
…
variant 0 · temp 0 · run 2 · → no-trailing
Prompt

Write a JavaScript module that exports a config object with five fields: host, port, timeout, retries, and debug. Use realistic default values.

Response (first 800 chars)
```javascript
/**
 * Application configuration module.
 *
 * Provides a centralized config object with sensible defaults.
 * Values can be overridden via environment variables.
 */

const config = {
  /**
   * Hostname or IP address of the target server.
   * @type {string}
   */
  host: process.env.APP_HOST || "localhost",

  /**
   * Port number the server listens on.
   * @type {number}
   */
  port: parseInt(process.env.APP_PORT, 10) || 3000,

  /**
   * Request timeout in milliseconds before giving up.
   * @type {number}
   */
  timeout: parseInt(process.env.APP_TIMEOUT, 10) || 5000,

  /**
   * Number of times to retry a failed request before throwing an error.
   * @type {number}
   */
  retries: parseInt(process.env.APP_RETRIES, 10) || 3,

  /**
   * Whether to enable verbose debu
…

…and 57 more samples (across 3 prompt variants × 2 temperatures × 10 runs). Full data in the result JSON on GitHub.

GPT-5.4 — 60 samples click to expand
variant 0 · temp 0 · run 0 · → trailing
Prompt

Write a JavaScript module that exports a config object with five fields: host, port, timeout, retries, and debug. Use realistic default values.

Response (first 800 chars)
```javascript
const config = {
  host: 'localhost',
  port: 3000,
  timeout: 5000,
  retries: 3,
  debug: false,
};

export default config;
```
variant 0 · temp 0 · run 1 · → trailing
Prompt

Write a JavaScript module that exports a config object with five fields: host, port, timeout, retries, and debug. Use realistic default values.

Response (first 800 chars)
```javascript
const config = {
  host: 'localhost',
  port: 3000,
  timeout: 5000,
  retries: 3,
  debug: false,
};

export default config;
```
variant 0 · temp 0 · run 2 · → trailing
Prompt

Write a JavaScript module that exports a config object with five fields: host, port, timeout, retries, and debug. Use realistic default values.

Response (first 800 chars)
```javascript
const config = {
  host: 'localhost',
  port: 3000,
  timeout: 5000,
  retries: 3,
  debug: false,
};

export default config;
```

…and 57 more samples (across 3 prompt variants × 2 temperatures × 10 runs). Full data in the result JSON on GitHub.

GPT-5.4 mini — 60 samples click to expand
variant 0 · temp 0 · run 0 · → trailing
Prompt

Write a JavaScript module that exports a config object with five fields: host, port, timeout, retries, and debug. Use realistic default values.

Response (first 800 chars)
```javascript
// config.js
export default {
  host: "localhost",
  port: 3000,
  timeout: 5000,
  retries: 3,
  debug: false,
};
```
variant 0 · temp 0 · run 1 · → no-trailing
Prompt

Write a JavaScript module that exports a config object with five fields: host, port, timeout, retries, and debug. Use realistic default values.

Response (first 800 chars)
```js
// config.js
export default {
  host: "localhost",
  port: 3000,
  timeout: 5000,   // milliseconds
  retries: 3,
  debug: false
};
```
variant 0 · temp 0 · run 2 · → trailing
Prompt

Write a JavaScript module that exports a config object with five fields: host, port, timeout, retries, and debug. Use realistic default values.

Response (first 800 chars)
```javascript
// config.js
const config = {
  host: "localhost",
  port: 3000,
  timeout: 5000, // ms
  retries: 3,
  debug: false,
};

export default config;
```

If you want, I can also provide a CommonJS version (`module.exports = config`).

…and 57 more samples (across 3 prompt variants × 2 temperatures × 10 runs). Full data in the result JSON on GitHub.

Gemini 2.5 Pro — 60 samples click to expand
variant 0 · temp 0 · run 0 · → no-trailing
Prompt

Write a JavaScript module that exports a config object with five fields: host, port, timeout, retries, and debug. Use realistic default values.

Response (first 800 chars)
Of course! Here is a JavaScript module that exports a configuration object with realistic default values.

This example uses the standard ES Module (`export`/`import`) syntax.

### `config.js`

```javascript
/**
 * @file Application configuration.
 * @description Exports a configuration object with default settings for the application.
 * These values can be overridden by environment variables or other configuration methods.
 */

/**
 * @typedef {object} AppConfig
 * @property {string} host - The hostname or IP address to connect to.
 * @property {number} port - The port number to connect to.
 * @property {number} timeout - The request timeout in milliseconds.
 * @property {number} retries - The number of times to retry a failed request.
 * @property {boolean} debug - A flag to enable or d
…
variant 0 · temp 0 · run 1 · → trailing
Prompt

Write a JavaScript module that exports a config object with five fields: host, port, timeout, retries, and debug. Use realistic default values.

Response (first 800 chars)
Of course. Here is a JavaScript module that exports a configuration object with realistic default values.

This example uses the modern ES Modules (`export`/`import`) syntax, which is standard in modern JavaScript development for both browsers and Node.js.

### `config.js`

```javascript
/**
 * @file Application configuration.
 * @description Exports a configuration object with default settings for the application.
 * These values are typically used for connecting to a service or an API.
 */

/**
 * @typedef {object} AppConfig
 * @property {string} host - The hostname or IP address of the server to connect to.
 * @property {number} port - The port number on the host.
 * @property {number} timeout - The request timeout in milliseconds.
 * @property {number} retries - The number of times to 
…
variant 0 · temp 0 · run 2 · → trailing
Prompt

Write a JavaScript module that exports a config object with five fields: host, port, timeout, retries, and debug. Use realistic default values.

Response (first 800 chars)
Of course. Here is a JavaScript module that exports a configuration object with realistic default values.

This example uses the modern ES Modules (`export`/`import`) syntax, which is standard in modern JavaScript development for both browsers and Node.js.

### `config.js`

```javascript
/**
 * @file Application configuration.
 * @description Exports a configuration object with default settings for the application.
 * These values are typically used for connecting to a service or an API.
 */

/**
 * @typedef {object} AppConfig
 * @property {string} host - The hostname or IP address of the server to connect to.
 * @property {number} port - The port number on the host.
 * @property {number} timeout - The request timeout in milliseconds.
 * @property {number} retries - The number of times to 
…

…and 57 more samples (across 3 prompt variants × 2 temperatures × 10 runs). Full data in the result JSON on GitHub.

How I did this (the actual nerd shit)

For each of 4 models I ran 3 prompt variants at two temperatures (0.0 and 0.7), 10 runs each — 240 code samples total, cost $2.03.

Each output got fed through a fight-specific regex classifier. For trailing-commas-js the classifier looks for the specific signal in the output (see the source — there's one function per fight, ~30 lines each). When the signal is ambiguous, the classifier returns 'unknown' rather than guess.

Each model's vote = its modal classification across 60 runs. Confidence = Wilson 95% CI. Verdict = majority across models (ties reported as ties). Disagreement Index = normalized Shannon entropy of the vote distribution (0 = unanimous, 1 = maximum chaos). Leaderboard sorts by this.

The pundit quotes come from a follow-up call after the votes are in — each model gets the full tally and a per-model judgy prompt. I never edit the quotes.

Full walkthrough: the methodology page. Source: GitHub.

Got a pettier debate?

Open a PR with a new fight. I'll run it across all four models, write up the verdict, and add your name to the byline.

Submit via PR →