r/angularjs • • Oct 18 '16

100 days of Angular 2

http://www.netinstructions.com/100-days-of-angular-2/
50 Upvotes

10 comments sorted by

13

u/hans_l Oct 18 '16

No love for the Angular-CLI? It would have done what you did in 5 days (including tree shaking) in under a day. And you would have just coded Angular the whole time, no messing around stuff like build systems and other stuff that's not your project's code. It's really that simple.

Disclaimer: I'm the lead of the Angular CLI project.

10

u/netinstructions Oct 18 '16

It's certainly not for a lack of love for the Angular-CLI. I think Angular-CLI is a great project that'll get you up and running with Angular 2 as fast as possible!

My goal wasn't speed though, and I learned a lot more through my trials and errors. I felt like Angular-CLI performed a lot of magic that would, for example, make it harder to bring Angular Universal into the project, or to deploy to something other than GitHub pages, if I didn't have a good grasp on the build/deployment/config process.

But I will keep my eye on Angular-CLI, if not for inspiration, but for learning how you solved something I will probably face :)

5

u/jgoforth2 Oct 18 '16

You guys make my life so much easier! Also good work on the transition to webpack. I really dislike systemJS

4

u/[deleted] Oct 18 '16

To be fair, they are just following the instructions on the offical Angular website... Angular-CLI (which "is very much still a work in progress.") doesn't get a mention.

6

u/[deleted] Oct 18 '16

Very in-depth! Amazing, so many articles skip over the "easy" stuff which is obviously relative.

1

u/sernistor Oct 19 '16

This is a great learning resource. Thank you!

-2

u/[deleted] Oct 19 '16

The frowny face at YOUR PARTICULAR favourite editor not supporting syntax highlighting OUT OF THE BOX is where I stopped reading.

2

u/netinstructions Oct 19 '16

That's silly. I have no favorite editor. I switched to VS Code on the second day, but I use Atom / Sublime / VS Code / Eclipse depending on the day and my projects' needs.

1

u/[deleted] Oct 20 '16

Which is why that remark was even sader. You know very well (or should know) that installing support for TypeScript in Atom is Ctrl+Shift+P (much like in VS Code or Sublime) and few types away. I don't use or particularily like Atom, yet that whiny comment in the article which was baseless, useless and quite frankly, painted you in a very "entitled, whiny, why isn't it all working for me out of the box" kinda way, totally ruined the reading experience for me. I literally cringed upon reading that.

I did lie partially, I've actually skimmed that and the rest of the articles and while I don't agree with all your choices it's still going to obviously be useful for people dipping their toes in ng2.

1

u/netinstructions Oct 20 '16

I'm not sure how a sad face translated to "I'm a entitled, whiny, why isn't it all working for me out of the box?" kinda way that totally ruined the experience for you. I noted it and moved on. In the wrap up at the end I wrote:

There isn't great Typescript support for Atom out of the box, so I'll need to find a good plugin or switch to a different editor.

BUT if you really want some whining, I'll go into detail what happened the last time I tried to install an Atom plugin:

  1. Find a well supported or official plugin (not always the first one that comes up in the search box)

  2. Troubleshoot the first installation error: SSL certificate problem: unable to get local issuer certificate (in this case due to proxy settings).

  3. Troubleshoot second installation error: npm ERR! install: node-gyp rebuildnpm ERR! Exit status 1 (in this case a myriad of build dependencies were missing)

...which ended up taking a few hours to identify and resolve :)