2 ms·
Copying and pasting code multiple times creates spaghetti code. Why does copying CSS multiple times (once for each component) not also create spaghetti code?
by wccrawford 8y ago
Copying and pasting code multiple times creates spaghetti code.
Why does copying CSS multiple times (once for each component) not also create spaghetti code?
Many elements share style in a normal webpage. Font, for example. Having to specify the font in every file seems crazily redundant.
And if you separate that out into a separate file that gets included in many places, you lose all the other benefits like "painless maintenance".