Live data from Hacker News

AngularJS Tutorial: Learn to Build Modern Web Apps

thinkster.io

91–93 of 93 posts

Re: AngularJS Tutorial: Learn to Build Modern Web Apps

#91
post #80
post #79

Earlier quoted context omitted.

I tried to use grunt as you say with the tutorial, but it didn't work. They say they are using a stripped down version of MEAN, so maybe they took that out? Do you know a good tutorial on adding it back in, as I like the sound of the functionality you're talking about...

Yes. They have stripped out the gruntfile. Just copying this from the original project into your solution should work. https://github.com/linnovate/mean/blob/master/gruntfile.js Make sure you have grunt installed. http://gruntjs.com/

Thanks for that.

For anyone else trying to add grunt, you need to copy over the gruntfile.js and add the grunt dependencies to the dev section of package.json in the root directory of the project. Then you might also have to remove and reinstall the grunt nodemon package (grunt threw up instructions on how to do this when I first ran it)

Re: AngularJS Tutorial: Learn to Build Modern Web Apps

#92
post #35

Earlier quoted context omitted.

> 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.

OOP: This is done with Functions not Classes. Inheritance: Theres at least 3 different ways of doing this, 2 of them suck again use Functions instead of Classes. Scope: Variables outside a function are global and theres no block scoping. First Class Functions: This is not something most people are used to and can become confusing Calbacks: Callback Hell, you can shoot yourself in the foot and mess up your code if you…

I know all this, but I still don't think it's any harder than other languages. I have been following Meteor since the beginning, but I'm not impressed anymore to be honest. Seeing the video for the first time was quite shocking, but in the end they didn't really deliver. Using it is still a pain.

> try doing that in PHP

Meh, PHP is still the king, and it will stay there for a long time. Languages and platforms with crazy features pop up every day, but that's not enough for actually getting things done. You need a community, mature libraries, and a healthy ecosystem in general.

If you want something challenging try Clojure. It is by far The Best Language (tm) IMO, but you still can't even build a website with it. The only web framework available died and got separated into libraries, and everyone ends up wiring everything the way they can. Some people use Java libraries, some others reimplement everything. It's pretty messy.

Post reply on HN