Andropov
Site Champ
- Joined
- Nov 8, 2021
- Posts
- 713
Mine is ~12k lines (8.5k lines of Swift and 1.8k lines of Metal) and it's already a pain to change or refactor some parts of it. I'll take that as my cue to spend some time cleaning code upSince the project is starting to sneak up on the 20k LOC mark, cleaning it up while fixing bugs seems like a good idea.
Fun story: I worked at a place (for just five days, I quit after seeing the code) that 'managed' a project with 90k lines of code for an iPad app that was relatively small. Turns out, every line of code was copy-pasted tens to hundreds of times throughout the code, often inside switch statements that spanned thousands of lines of code. I didn't even believe it was posible to write that much code that bad. It was WILD.
Most of the bugs they wanted fixed were features that literally had disappeared because someone had implemented something in a switch, then copy-pasted it to all other switch cases throughout the codebase that looked similar, and inadvertently pasted over a different implementation, effectively removing the feature from the code.