Settings

Theme

What is the largest source code you've seen on a single file?

4 points by Leustad 8 years ago · 4 comments · 1 min read


What is the largest source code you seen/worked on in a single file in terms of line numbers. Give us examples plz.

w8w00rd 8 years ago

I do js so its rare to see a LOC over a few Ks, largest I've seen was about 15K. I know google and facebook have >100K LOC client side JS projects when compiled, I doubt those are in native JS though.

Piskvorrr 8 years ago

There's Adminer, which is some hundreds of kB in a single file...but that's a feature of the build: after packing eeeeverything into one file, it's supposed to be deployed like that; development happens on many sensible-sized files.

I seriously doubt anyone actually edits files over 10 K lines nowadays, even though a script might pack the result into a much larger one.

(Back When Dinosaurs Reigned The Earth, I've worked on a monolithic script of about 50 K lines, but that was just as convenient as you would imagine)

atticusberg 8 years ago

The first company I worked for had a 10k line java file that comprised ~90% of their codebase

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection