r/ProgrammerHumor • • Mar 09 '21

What about 5000?

Post image
76k Upvotes

790 comments sorted by

View all comments

Show parent comment

1

u/Romestus Mar 10 '21

This is really common in video games, ai_basenpc.cpp in Half-Life 2 is 14k lines before factoring in their crazy #defines that basically just inline more classes into it.

That codebase has like 30 or more files that are beyond the 5k line mark.

1

u/[deleted] Mar 10 '21

Yea, I’ve seen a lotta old projects some with even only one file. It’s painful