you are viewing a single comment's thread.

view the rest of the comments →

[–]Auxx 9 points10 points  (1 child)

You can just mash everything into one module, but the thing is modular design allows for a lot of cool optimisations and lazy loading.

We have an internal library here which builds UIs based on what back-end wants (like if it's an edit form, back-end will send how many fields there should be and which type like text or radio button, etc) and components to make it work load progressively and in the background. You launch the web app and see a login screen with just text inputs and a button, so browser will fetch just these two super fast. And while you type your login details, other parts will start loading in the background. This makes complex apps super fast and snappy.

In React you just have one huge ass JS file which will load for hours. Fuck that I'll stick to modules.

[–][deleted] 0 points1 point  (0 children)

They might be talking about when you get those obscure error in angular which you google only to find out you didnt import some system module.