r/webdev • • Oct 18 '18

Angular 7.0.0 released

/r/Angular2/comments/9pbn4f/angular_700_released/
223 Upvotes

148 comments sorted by

View all comments

-16

u/colly_wolly Oct 19 '18

Bloat and complexity. An example application that we created in a course I am doing weighs in at 208Mb. It only has a few basic form elements in it and some basic validation.

9

u/[deleted] Oct 19 '18

How is that even possible?! Did you use electron? Did you count node_modules folder?

-13

u/colly_wolly Oct 19 '18

Did what the instructor told us. (It probably is including the nodejs folder).

ng new npm install ng generate module (three times)

There is an unbelievable amount of code generated. The most valuable thing I have learned from this course is not to bother with Angular.

14

u/anubgek Oct 19 '18

The most valuable thing I have learned from this course is not to bother with Angular.

This comes off as somewhat naive. Especially when you previously state that you measure the size of the application by looking at the development folder

(It probably is including the nodejs folder).

Are you then saying you are not even sure what's included in the size you're so adamant about criticizing? Have you measured the size of the production package that would go to clients?

Yes there are a lot of dependencies but this is not for no reason. This allows for immense functionality and the ability to produce efficient compiled code that has all the bells and whistles that Angular provides.

I would wait until you're more experienced with web development in general before making these kinds of judgement calls as they don't appear to be coming from wisdom, but an initial emotional reaction to complexity you're not yet familiar with.

9

u/BrunnerLivio full-stack Oct 19 '18

Why are you bothering about the size of your node_modules folder?

Sure there is a lot of code involved, but it has its purpose. Angular is REALLY modular. They've built the whole framework in separate modules. That is part of why the Angular CLI generates quite some boilerplate, because it needs to specify the correct modules which will get imported. This is a drawback but also a huge advantage. You can only use the modules you actually need to develop your app. Therefor you can reduce the size of your final bundle by A LOT, if done correctly..

If Angular is built too complex for you and it does not suit your application; sure do not bother.. But there are tons of people who see a lot of benefit for Angular and its use case to use in the real world, so do not degrade it.

7

u/A-Grey-World Software Developer Oct 19 '18

Hey, I used React recently and it was Gigabytes big and cost me hundreds of dollars.

Like, they said "Get a computer, install windows on it then..."

Windows is massive man! That computer cost me loads of money. I learned never to use React.

Sarcasm aside. The one thing I've learned from your comment is you didn't learn much much on this course.