News for hackers. Stuff that matters.
Re:Implementing single-file web components by Tade0 on Monday March 23, 2020 @11:54AM (#22665212)
Over which you have to navigate by opening, closing, switching tabs etc.

I frequently find myself overwhelmed with the sheer number of files such a convention generates.

But the strengths of the single-file approach reveal themselves when you have a lot of small components - it enables you to just glance at a file and immediately know what's going on.

Also it puts a psychological barier against large, bloated components.

Re:Implementing single-file web components by woodrowbarlow on Monday March 23, 2020 @12:04PM (#22665292)
> it puts a psychological barrier against large, bloated components

this is the most compelling argument for me... but i still find myself having to work with overly-large components written by others. and that's when i end up doing lots and lots of scrolling and losing my place.

i guess that's the difference. single-file components are superior iff you have good team rigor around component size.