# The real errors behind our programming language stick fight

> Each language in the stick fight loses to a real error message. Here is what each one means, with its source.

Source: https://fullbytedeveloper.com/blog/programming-language-bugs-explained
Published here: 2026-11-17

In the stick fight video, six languages fight over one question and each one goes down to an error you may have seen in your own terminal. Every error on screen is a real message or behaviour, except one class name I made up, which I point out below. This page says what each one means and links the source.

## JavaScript: "1" + 1 is "11"

The `+` operator does two jobs: numeric addition and string concatenation [1]. If one side is a string, the other side is turned into a string and joined, so `"1" + 1` gives `"11"`. That is the block JavaScript throws at Python.

```js
"1" + 1 // "11"
1 + 1   // 2
```

## JavaScript: undefined is not a function

JavaScript's charged special fizzles with `TypeError: undefined is not a function`. MDN lists this family of errors as `TypeError: "x" is not a function`: you called something that is not a function, often because a name was misspelled or a value was `undefined` [2]. The exact wording differs between engines.

## Python: import antigravity and IndentationError

`import antigravity` is a real module in CPython's standard library. It opens the xkcd comic about Python in your browser [4]. Python's loss is just as real: `IndentationError` is the base class for syntax errors caused by wrong indentation [3]. In the video, an extra indent shows up as a floor tile pushed one step to the right, and Python's heel catches it.

## Java: the long class name and the GC pause

Java swings a hammer named `AbstractFighterStrategyFactoryBean`. The name is ours, built after a real Spring class, `AbstractSingletonProxyFactoryBean` [5]. Then Java freezes in mid-swing: garbage collection can pause the application, and Oracle's tuning guide frames the goal as performing well with pauses of modest frequency and duration [6].

## Go: concurrent map writes

`go fight()` starts a goroutine, so Go splits into four. They all grab the same thing at once and the program dies. The Go 1.6 release notes say the runtime detects concurrent misuse of maps, prints a diagnosis and crashes the program [7]. The message you see is `fatal error: concurrent map writes`.

## Rust and C++: E0502 and the segfault

When C++ grabs Rust's blade, the borrow checker stops it: E0502 means a value already borrowed with one mutability was borrowed again with a different one [8]. C++ then stabs where Rust used to be, which is a dangling pointer in our version, and the process dies with `Segmentation fault (core dumped)`. `SIGSEGV` is the signal for an invalid memory reference [9].

## The giant AI and its context window

The giant is a made-up character, not a product. Its weak spot is a real limit: a model only reads a fixed number of tokens at once. OpenAI's model page lists a context window of 1,047,576 tokens for GPT-4.1, one of its API models [10]. In the video, the languages feed it junk until the meter passes 1M, and it forgets why it was fighting.

If one of these messages shows up in your own terminal, the linked page above is where to start reading.

Send this to the friend who laughed at the stick fight video and wants to know each error.

## Sources

1. [MDN: Addition (+)](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Addition)
2. [MDN: TypeError: "x" is not a function](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Errors/Not_a_function)
3. [Python docs: built-in exceptions (IndentationError)](https://docs.python.org/3/library/exceptions.html)
4. [CPython source: Lib/antigravity.py](https://raw.githubusercontent.com/python/cpython/main/Lib/antigravity.py)
5. [Spring Framework Javadoc: AbstractSingletonProxyFactoryBean](https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/aop/framework/AbstractSingletonProxyFactoryBean.html)
6. [Oracle: Java SE 21 garbage collection tuning, introduction](https://docs.oracle.com/en/java/javase/21/gctuning/introduction-garbage-collection-tuning.html)
7. [Go 1.6 release notes (runtime: concurrent misuse of maps)](https://go.dev/doc/go1.6)
8. [Rust error index: E0502](https://doc.rust-lang.org/error_codes/E0502.html)
9. [Linux man-pages: signal(7) (SIGSEGV)](https://man7.org/linux/man-pages/man7/signal.7.html)
10. [OpenAI API docs: GPT-4.1 model page](https://platform.openai.com/docs/models/gpt-4.1)
