Johny, I think it is important to recognize that given syntax might look "awful" for many reasons: - not familiar / not resembling known things - too verbose - too terse - not in line with personal preferences, - ...
So to have any reasonable discussion here you would have to search more inside yourself to be more precise about "awfulness" of this syntax. Oh, and one more thing: the example you are bringing up actually has nothing to do with Angular itself! It is pure ES6 (with a bit of TypeScript). But nothing prevents you from using good old ES5 with Angular 2! I guess people previously exposed to typed languages and / or fat-arrow functions wouldn't find this example off-putting. In short: if you want to have your voice heard you need to: - be more precise about which parts of the syntax you don't like and use appropriate forum (ES, TypeScript) - be more precise about _why_ you don't like certain things and what would be your alternative proposal Cheers, Pawel On Wed, Mar 9, 2016 at 2:37 PM, Johnny Fittizio <[email protected]> wrote: > I just start to study Angular 2 and honestly the sintax looks awful.. > In developing Angular 2 it seems they really forgot two important aspect as > simplicity and readability. > > One example of a framework that really does a good job on that IMHO is > Laravel. > Its syntax is beautiful and simple. > And it reduce the amount of code. > With one line of readable syntax it does ten 10 lines of dirty php job. > > At a first glance the syntax of Angular 2 it looks horrible. > > To make just one example from the tutorial: > > getHeroesSlowly() > { > return new Promise<Hero[]>(resolve => setTimeout(() => resolve(HEROES), > 2000)); > } > > > -- > You received this message because you are subscribed to the Google Groups > "AngularJS" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/angular. > For more options, visit https://groups.google.com/d/optout. -- AngularJS book: http://www.packtpub.com/angularjs-web-application-development/book Looking for bootstrap-based widget library for AngularJS? http://angular-ui.github.com/bootstrap/ -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
