2024-06-16 01:13
What is the largest number of lines you've seen in a function within a codebase?
I once came across an old function (likely 2 decades old) that had over 3000 lines.
New rules were added every few months, causing the code to grow larger and larger.
Eventually, the function became so large that only one developer knew what it did.