20
My Figma file hit 1,000 components before I even noticed
I was just cleaning up old pages and the count popped up, which is wild because I started with maybe 20. Anyone else have a library that just quietly exploded on them?
3 comments
Log in to join the discussion
Log In3 Comments
the_viola2mo ago
Started with 20 and ended up at a thousand. That's like a 50 times increase without even trying. My biggest file only has about 300 and I thought that was out of control. You must have some serious nested stuff going on.
4
the_gray2mo ago
How deep does the nesting even go? I hit a point where my own code feels like a maze and I have to start drawing maps. It always begins with just one more condition or wrapper that seems harmless. Then you blink and you're scrolling for ten minutes to find where a function actually starts. That's when you know you've lost the plot.
8
alicebarnes1mo ago
My old team lead used to call that "code drift." He said once a file crosses 500 lines, it's basically a lawless territory where no one remembers the original purpose. I read a blog post that suggested breaking things at 200 lines max, but good luck sticking to that when you're in the middle of fixing a bug. How do you even start untangling a thousand line file without wanting to rewrite the whole thing?
4