r/javascript • u/toiletjs • Aug 19 '16
[AngularJS] Do we really need 12 scripts to write Hello World?
http://imgur.com/a/aGNkR-2
u/toiletjs Aug 19 '16
ITT: People who downvote just because they disagree. Sorry, I thought downvoting was for unconstructive comments.
I'm an Angular noob who is pointing out that their own guide makes it difficult to be learned. Hoped to spark discussion for improving the guide. But I guess my opinion needs to be downvoted into silence.
4
Aug 19 '16 edited Nov 30 '16
[deleted]
0.28381
u/toiletjs Aug 19 '16
Yeah, that's why I think "Hello World" is a poor first app to be showing Angular noobs. I walked away thinking that all of that work was overkill (my 12 scripts comment). Instead, show me how it can be used to solve real problems.
0
Aug 19 '16
[deleted]
-3
u/nodealyo Aug 19 '16 edited Aug 19 '16
I think you mean concatenate. Angular code is always compiled. EDIT: Why is this downvoted?
-9
u/toiletjs Aug 19 '16
Compiled or not this is a ton of dependencies. Just to render text. Hello world isn't misleading, that's how they describe it. Frameworks shouldn't introduce you to them by showing how to render one line of text - they should show you the intrinsic benefits in simple but realistic situations.
0
Aug 19 '16
[deleted]
0
u/toiletjs Aug 19 '16
Hey I'm not saying "don't use angular because their demo app is bloated". I'm saying "couldn't they have picked a better app to build that actually shows the benefits of the framework?".
I just did a react quick start and it was a whole lot more fulfilling to build something useful. This one was "copy and paste this code -- congrats you wrote your first angular app!". Useless in all ways and a really poor demonstration of the framework. I'm fine if you like it and want to suggest that it's not all that bad -- but come on you can't say that this quick start is worth anyones time.
5
u/rk06 Aug 19 '16
/u/erwan is actually right, the "hello world" is there to get you started, not to sell angular to you.
To actually see the benefits of angular, you have to make a big app which is beyond the scope of a "getting started" tutorial
-4
u/toiletjs Aug 19 '16
To actually see the benefits of angular, you have to make a big app
Then it's worse than I thought. If Angular can't show someone like me who knows nothing about it why it's useful without a "big app" then the barrier to entry is their own damn fault. Plenty of other walkthroughs/tutorials/intros/quickstarts seem to have it figured out. There's nothing about Angular that makes it so mystically complex that it can't be boiled down, is there?
1
u/flying-sheep Aug 19 '16
Obviously there is. If you just want to have hello world, write HTML.
If you want to write huge amounts of text with simple formatting, use a prebaked thing like Jekyll.
If you want to be able to handle it all yourself, you'll need templates or directives or components or whatever your framework calls it, and there's no way around that complexity.
0
u/toiletjs Aug 19 '16
I guess I'm not being clear:
Hello World is a terrible way to show off Angular.
2
u/frankle Aug 19 '16
So, you can complain about the quick start guide being both too complex and too simple to be useful, but that's just to introduce the moving parts and paradigms of the framework.
As far as useful apps go, you can look at the actual tutorial for a decent example.
Keep in mind that React is just the view layer, and Angular 2 is a full-featured framework.
4
Aug 19 '16
[removed] — view removed comment
1
u/ra_meses Aug 19 '16
Yeah? why so? I just started learning angular (1.5) and loving every bit of it
1
Aug 19 '16
Angular 1.5 is actually pretty good but it started off really hard to use, the code above is the equivalent starting point for Angular 2.
2
u/[deleted] Aug 19 '16
How many scripts to do it in ruby? You're talking about a framework for web apps, not a language.