Tabs vs spaces (Go)?
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.
-
Write a Go function `Reverse(s string) string` that reverses a UTF-8 string. -
Write a Go function that reads a JSON file from disk and unmarshals it into a `Config` struct with `Name` and `Port` fields. -
Write a Go function `WorkerPool(jobs <-chan int, n int)` that spawns n goroutines to process jobs concurrently.
Who said what
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.
“If you're hand-typing spaces in Go instead of letting `gofmt` enforce tabs automatically, you're not just wrong — you're doing extra work to be wrong.”
“If you indent Go with spaces, you’re not expressing style, you’re announcing you’ve never met gofmt—the tool that settled this years ago for people who can read.”
“Spaces disciples are wrong: Go uses tabs because `gofmt` enforces them, and arguing otherwise is just volunteering to be the person who fights the toolchain and loses.”
“Using spaces in Go is just deliberately writing unformatted code until `gofmt` inevitably corrects your mistake.”
Show me the actual code (240 samples)
Claude Sonnet 4.6 — 60 samples click to expand
Write a Go function `Reverse(s string) string` that reverses a UTF-8 string.
## Reverse UTF-8 String in Go
Here's a clean implementation that correctly handles multi-byte UTF-8 characters (runes):
```go
package main
import "fmt"
// Reverse returns the UTF-8 string s reversed.
func Reverse(s string) string {
runes := []rune(s)
left, right := 0, len(runes)-1
for left < right {
runes[left], runes[right] = runes[right], runes[left]
left++
right--
}
return string(runes)
}
func main() {
tests := []string{
"Hello, World!",
"Hello, 世界",
"🙂😎🤩",
"",
"a",
"racecar",
}
for _, s := range tests {
fmt.Printf("Reverse(%q) = %q\n", s, Reverse(s))
}
}
```
### Output
```
Reverse("Hello, World!") = "!dlroW ,olleH"
Reverse("Hello, 世界") = "界世 ,olleH"
Reverse("🙂😎🤩") = "🤩😎🙂"
Reverse("") = ""
Reverse("a") = "a"
Reverse("racecar") = "racecar"
… Write a Go function `Reverse(s string) string` that reverses a UTF-8 string.
## Reverse UTF-8 String in Go
Here's a clean implementation that correctly handles multi-byte UTF-8 characters (runes):
```go
package main
import "fmt"
// Reverse returns the UTF-8 string s reversed.
func Reverse(s string) string {
runes := []rune(s)
left, right := 0, len(runes)-1
for left < right {
runes[left], runes[right] = runes[right], runes[left]
left++
right--
}
return string(runes)
}
func main() {
tests := []string{
"Hello, World!",
"Hello, 世界", // Multi-byte UTF-8 characters
"", // Empty string
"a", // Single character
"racecar", // Palindrome
"🙂🙃😀", // Emojis (4-byte runes)
}
for _, s := range tests {
fmt.Printf("Reverse(%q) = %q\n", s, Reverse(s))
}
}
```
### Output
```
Reverse("Hello, World!") = "!dl
… Write a Go function `Reverse(s string) string` that reverses a UTF-8 string.
## Reverse UTF-8 String in Go
Here's a clean implementation that correctly handles multi-byte UTF-8 characters (runes):
```go
package main
import "fmt"
// Reverse returns the UTF-8 string s reversed rune by rune.
func Reverse(s string) string {
runes := []rune(s)
left, right := 0, len(runes)-1
for left < right {
runes[left], runes[right] = runes[right], runes[left]
left++
right--
}
return string(runes)
}
func main() {
tests := []string{
"Hello, World!",
"Hello, 世界!", // Chinese characters
"Héllo", // accented character
"🙂😎🤩", // emojis
"", // empty string
"a", // single character
}
for _, s := range tests {
fmt.Printf("%-20q => %q\n", s, Reverse(s))
}
}
```
### Output
```
"Hello, World!" => "!dlroW ,
… …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
Write a Go function `Reverse(s string) string` that reverses a UTF-8 string.
```go
func Reverse(s string) string {
runes := []rune(s)
for i, j := 0, len(runes)-1; i < j; i, j = i+1, j-1 {
runes[i], runes[j] = runes[j], runes[i]
}
return string(runes)
}
```
This works for UTF-8 because it reverses by `rune` rather than by byte. Write a Go function `Reverse(s string) string` that reverses a UTF-8 string.
```go
func Reverse(s string) string {
r := []rune(s)
for i, j := 0, len(r)-1; i < j; i, j = i+1, j-1 {
r[i], r[j] = r[j], r[i]
}
return string(r)
}
```
Example:
```go
package main
import (
"fmt"
)
func Reverse(s string) string {
r := []rune(s)
for i, j := 0, len(r)-1; i < j; i, j = i+1, j-1 {
r[i], r[j] = r[j], r[i]
}
return string(r)
}
func main() {
fmt.Println(Reverse("hello")) // olleh
fmt.Println(Reverse("héllo")) // olléh
fmt.Println(Reverse("世界")) // 界世
}
``` Write a Go function `Reverse(s string) string` that reverses a UTF-8 string.
```go
func Reverse(s string) string {
r := []rune(s)
for i, j := 0, len(r)-1; i < j; i, j = i+1, j-1 {
r[i], r[j] = r[j], r[i]
}
return string(r)
}
```
This converts the string to a rune slice so multi-byte UTF-8 characters are reversed correctly. …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
Write a Go function `Reverse(s string) string` that reverses a UTF-8 string.
```go
package main
func Reverse(s string) string {
r := []rune(s)
for i, j := 0, len(r)-1; i < j; i, j = i+1, j-1 {
r[i], r[j] = r[j], r[i]
}
return string(r)
}
```
This works for UTF-8 strings because it converts the string to runes first, so multi-byte Unicode characters are reversed correctly rather than byte by byte. Write a Go function `Reverse(s string) string` that reverses a UTF-8 string.
```go
package main
func Reverse(s string) string {
r := []rune(s)
for i, j := 0, len(r)-1; i < j; i, j = i+1, j-1 {
r[i], r[j] = r[j], r[i]
}
return string(r)
}
```
This works correctly for UTF-8 because it reverses by runes, not bytes. Write a Go function `Reverse(s string) string` that reverses a UTF-8 string.
```go
package main
import "unicode/utf8"
func Reverse(s string) string {
// Fast path for ASCII-only strings.
ascii := true
for i := 0; i < len(s); i++ {
if s[i] >= utf8.RuneSelf {
ascii = false
break
}
}
if ascii {
b := []byte(s)
for i, j := 0, len(b)-1; i < j; i, j = i+1, j-1 {
b[i], b[j] = b[j], b[i]
}
return string(b)
}
// UTF-8 aware reversal by rune.
r := []rune(s)
for i, j := 0, len(r)-1; i < j; i, j = i+1, j-1 {
r[i], r[j] = r[j], r[i]
}
return string(r)
}
```
Example:
```go
fmt.Println(Reverse("hello")) // olleh
fmt.Println(Reverse("こんにちは")) // はちにんこ
fmt.Println(Reverse("a🙂b")) // b🙂a
```
Note: this reverses by Unicode code points (runes), which is the usual meaning of “UTF-8 string reversal” in Go. It does not preserve combine
… …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
Write a Go function `Reverse(s string) string` that reverses a UTF-8 string.
Of course. Here is a Go function `Reverse` that correctly reverses a UTF-8 encoded string by operating on runes, not bytes.
### The Code
```go
package main
import "fmt"
// Reverse returns its argument string reversed rune-wise.
// It correctly handles multi-byte UTF-8 characters.
func Reverse(s string) string {
// Convert the string to a slice of runes.
// This is the key to handling multi-byte characters correctly.
runes := []rune(s)
// Reverse the slice of runes in-place.
// We use a classic two-pointer swap.
for i, j := 0, len(runes)-1; i < j; i, j = i+1, j-1 {
runes[i], runes[j] = runes[j], runes[i]
}
// Convert the slice of runes back to a string and return it.
return string(runes)
}
func main() {
// Example 1: Simple ASCII string
input1 := "hello world"
reversed1
… Write a Go function `Reverse(s string) string` that reverses a UTF-8 string.
Of course. Here is a Go function `Reverse` that correctly reverses a UTF-8 encoded string by operating on runes, not bytes.
### The Code
```go
package main
import "fmt"
// Reverse returns its argument string reversed rune-wise.
// It correctly handles multi-byte UTF-8 characters.
func Reverse(s string) string {
// Convert the string to a slice of runes. This is the key to handling
// multi-byte characters correctly, as each "character" (code point)
// becomes a single element in the slice.
runes := []rune(s)
// Use a classic two-pointer approach to swap runes in-place.
// i starts at the beginning, j starts at the end.
// They move towards the middle, swapping elements as they go.
for i, j := 0, len(runes)-1; i < j; i, j = i+1, j-1 {
// This is the idiomatic Go way to swap t
… Write a Go function `Reverse(s string) string` that reverses a UTF-8 string.
Of course. Here is a Go function `Reverse` that correctly reverses a UTF-8 encoded string by operating on runes, not bytes.
### The Code
```go
package main
import "fmt"
// Reverse returns its argument string reversed rune-wise.
// It correctly handles multi-byte UTF-8 characters.
func Reverse(s string) string {
// Convert the string to a slice of runes. This is the key to handling
// multi-byte characters correctly, as each "character" (code point)
// becomes a single element in the slice.
runes := []rune(s)
// Use a classic two-pointer approach to swap runes in-place.
// i starts at the beginning, j starts at the end.
// They move towards the middle, swapping elements as they go.
for i, j := 0, len(runes)-1; i < j; i, j = i+1, j-1 {
// This is the idiomatic Go way to swap t
… …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 $3.25.
Each output got fed through a fight-specific regex classifier.
For tabs-vs-spaces-go 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.
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 →