Live data from Hacker News

AngularJS Tutorial: Learn to Build Modern Web Apps

thinkster.io

31–40 of 93 posts

Re: AngularJS Tutorial: Learn to Build Modern Web Apps

#31

Working with a large Angular app, I've found it much nicer to split away from the "Rails"-style convention of grouping by type (controllers, models, etc) and instead grouping by modules. This plays especially well with Angular where you can group everything within a module together and include a single module which ties all the dependencies together. Curious if others do something similar and group code together by m…

I do the same as you. Group by Module - which in my humble opinion is the real intention of the modules.

Oh between I do group by Type inside of a module.

Re: AngularJS Tutorial: Learn to Build Modern Web Apps

#32

Is angular the reason this site scrolls and renders content all weird?

No - what platform/browser are you using?

Safari works better then Chrome. I have a retina display so perhaps thats it. Its strange behavior, first it seems that greyed out images/css is loaded, then when you scroll the non-grey version appears and text appears as well that was not there before. Anyway I think this was probably designed this way but it glitches out weird when scrolling. Not a big deal just kinda distracting, glad its not part of Angular.

Re: AngularJS Tutorial: Learn to Build Modern Web Apps

#33

Earlier quoted context omitted.

No - what platform/browser are you using?

Safari works better then Chrome. I have a retina display so perhaps thats it. Its strange behavior, first it seems that greyed out images/css is loaded, then when you scroll the non-grey version appears and text appears as well that was not there before. Anyway I think this was probably designed this way but it glitches out weird when scrolling. Not a big deal just kinda distracting, glad its not part of Angular.

Thanks for the detailed info - I'm going to look into this. Our HTML/CSS structure is a little funky in order to make our sidebar drawer work smoothly, so it probably has something to do with that.

Re: AngularJS Tutorial: Learn to Build Modern Web Apps

#34
post #16

I'm not sure if I'm more excited or creeped out. Yesterday, I decided I wanted to learn Angular and I figured making a fantasy football clone would be a fun, interesting way to do it -- something I'm vaguely passionate and vaguely knowledgeable about, something that isn't a Twitter clone, lots of numbers, something I can show to a few friends without having their eyes glaze over. Then this came out. Super excited for…

Ditto for paying for a print copy. Some tech books I'd rather read outside in the sun; it forces me to actively try to internalize more instead of hopping to/from the console every minute.

Maybe http://lulu.com ?

Re: AngularJS Tutorial: Learn to Build Modern Web Apps

#35
post #5

One advantage of the MEAN stack is that you only need to know javascript to start developing on it, which saves time and brainpower to get started. That being said, I'm curious if there are other advantages to learn the MEAN stack?

Javascript is a harder language then most web development languages when you really get into it (OOP, inheritance, scope, first class functions, callbacks, closures, compile time errors). If you go into it thinking your going to save brain power you may be in for a rude awakening. The advantage is you can do real time async stuff a lot better then with other frameworks.

> OOP, inheritance, scope, first class functions, callbacks, closures, compile time errors

How does any of that make it harder than "most web development languages"?

> The advantage is you can do real time async stuff a lot better then with other frameworks.

How so? AFAIK, the only difference is that in Javascript you can only do async stuff, you don't really have a choice.

Re: AngularJS Tutorial: Learn to Build Modern Web Apps

#37

Working with a large Angular app, I've found it much nicer to split away from the "Rails"-style convention of grouping by type (controllers, models, etc) and instead grouping by modules. This plays especially well with Angular where you can group everything within a module together and include a single module which ties all the dependencies together. Curious if others do something similar and group code together by m…

Why not both?

Re: AngularJS Tutorial: Learn to Build Modern Web Apps

#38

Hey all - we'd love to hear any questions, criticism, or ideas you have. Also, we have a pdf version of the ebook available for $25 on the site, but we'd like to give all of you on HN a 20% discount. You can go to this URL to get the cheaper price - http://gum.co/SUry/awesomehners Thanks for all of your support!

It would be great to see a demo of the app being built. Either a couple of minutes of video or an actual link!

Re: AngularJS Tutorial: Learn to Build Modern Web Apps

#39
post #35

Earlier quoted context omitted.

Javascript is a harder language then most web development languages when you really get into it (OOP, inheritance, scope, first class functions, callbacks, closures, compile time errors). If you go into it thinking your going to save brain power you may be in for a rude awakening. The advantage is you can do real time async stuff a lot better then with other frameworks.

> OOP, inheritance, scope, first class functions, callbacks, closures, compile time errors How does any of that make it harder than "most web development languages"? > The advantage is you can do real time async stuff a lot better then with other frameworks. How so? AFAIK, the only difference is that in Javascript you can only do async stuff, you don't really have a choice.

Most javascript code is actually synchronous. It is the event loop (xhr requests, timers, timeouts, etc.) that is async. TLDR, some parts of the language are sync, some are async

Re: AngularJS Tutorial: Learn to Build Modern Web Apps

#40

Working with a large Angular app, I've found it much nicer to split away from the "Rails"-style convention of grouping by type (controllers, models, etc) and instead grouping by modules. This plays especially well with Angular where you can group everything within a module together and include a single module which ties all the dependencies together. Curious if others do something similar and group code together by m…

I recently spent days writing AngularJS app and I came to same conclusion that I should have split the app into modules. Even though the style of grouping together Controllers and Services works well, it still won't be easy to maintain when the size of app grows big.
Post reply on HN