The title says it all. In general, is it better to have multiple small files linked together, or one large file?
At least in the web, I know that you should have one or very few CSS stylesheets, to better control the style across different pages and all. As for HTML, it's pretty logically one per page. But what about JS?
And most importantly, the main point of my question is, what about other environments and other languages? Does this depend on the language or the goal? If so, what are some examples or cases where one method is better than the other?
Regardless of which is better, is it defined just by convention, or is it because of performance?
BTW, this is first post, so I'm sorry if I missed something, and please let me know!
There are a lot of people who love both JS and UX/CSS. If we stop labeling people just as “JS developers” or “UX developers”, we can achieve a ceasefire in the current “JS vs. CSS” war and achieve a mutually benefiting peace.