# Why do so many Successful indie games completely violate standard coding rules we all learn as an indie Devs (OOP, SRP, Clean Code)? — retained record

> Retained reddit record from reddit:gamedev.

Canonical: https://highsignal.app/data/records/6c157954190e3aa2

[← sources](https://highsignal.app/data)


source: [reddit](https://highsignal.app/data/reddit) (reddit:gamedev)  published 2026-11-03 15:40 ingested 2026-11-04 02:38

[original source ↗](https://www.reddit.com/r/gamedev/comments/1xmwabt/why_do_so_many_successful_indie_games_completely/)

## retained text



```
Hey everyone.

I’ve been looking into the code and scripts of some successful indie games recently, and it's crazy how almost all of them are completely different from standard software engineering rules. They don't follow principles like **OOP** and **SRP**, and most of them look like tightly coupled spaghetti code.

Take *Hollow Knight: Silksong* as an example. The main player controller script (`HeroController.cs`) is a massive, tightly coupled class that contains a lot of functionality and features, clearly violating SRP. Its thousands of lines of code handle physics, combat, audio, and state logic all tightly wrapped together, completely breaking the Single Responsibility Principle (SRP) and the principles of Object Oriented Programming (OOP). We see the exact same thing in other successful indie games, like the player script in *Celeste*, and *Stardew Valley* is full of massive, messy scripts.

Despite breaking almost every "clean code" rule, these games are mechanically flawless and absolute masterpieces of game feel.

Why do you think this happens so often in successful indie games? Is strict architectural decoupling actually a trap that gets in the way of finding the fun and success for a game? I'm so confused about how we all, as indie devs, learn those rules thinking that we will make cleaner code with them, but the reality is almost every successful indie game doesn't follow those strict rules that much. Also, computers and players won't care if the code is clean or not; players care about the fun in the game and computers care about the performance of the game.
```



document fetched 2026-11-04 00:25 · canonical https://reddit.com/r/gamedev/comments/1xmwabt/why_do_so_many_successful_indie_games_completely
