A project with a single 11,000-line code file
31–40 of 346 posts
Re: A project with a single 11,000-line code file
#32Re: A project with a single 11,000-line code file
#33https://github.com/microsoft/TypeScript/blob/main/src/compil...
Does anyone know why and how they maintain it?
Re: A project with a single 11,000-line code file
#34EDIT: I'll go even further. Programmers who don't like long files are probably using the scrollbar to navigate around the file. Vim saves me from that bad habit.
Re: A project with a single 11,000-line code file
#35Re: A project with a single 11,000-line code file
#36Re: A project with a single 11,000-line code file
#37That beats the 1000 lines inside a single if {} block that I once found. (The conditional in that if {} always evaluated to true).
var a = true;
if(a == true) then return true;
else if(a == false) then return false;
Or something like that.
Re: A project with a single 11,000-line code file
#38If well done, single file projects are not bad. They save a lot boilerplate code. It is also easier to find things, since it is all in the same file. EDIT: I'll go even further. Programmers who don't like long files are probably using the scrollbar to navigate around the file. Vim saves me from that bad habit.
Re: A project with a single 11,000-line code file
#39This thread made me realize that it's better to have a working profitable project with bad code, than a perfect unfinished project, with meticulously chosen design patterns.
Afraid of being judged for bad code, I could not start until I had the right architecture.
I'm glad I read this.
This is developers therapy.
Re: A project with a single 11,000-line code file
#40It's main file is 88kloc Fortran 77, started in the eighties, still actively developed.
https://www.iap.kit.edu/corsika/index.php
Currently a rewrite in c++ is underway.