Live data from Hacker News

Angular JS Kinda Sucks

okmaya.com

31–40 of 66 posts

Re: Angular JS Kinda Sucks

#31
First off, this article is 4 months old. Second,

Third: You won't get the actual idea behind Angular without some good tutorials indeed. This one gave me the best insight and i've been churning out my own angular based chrome extension with behaviors, services and modules within a week.

http://www.ng-newsletter.com/posts/chrome-apps-on-angular.ht...

Fourth: There's a new book in progress (with some free chapters) that explains how to build Angular.js from scratch and explains everything in-depth (Something that was indeed lackin from angular.

Site: http://teropa.info/build-your-own-angular/

Sample: http://teropa.info/build-your-own-angular/build_your_own_ang...

Re: Angular JS Kinda Sucks

#32
post #2

I think the fact that the author is comparing angular with jquery as if they're two tools for doing the same thing probably illustrates a lack of understanding of what angular really is and what it's supposed to be for...

But he write what most of the developers misunderstood. Many people use Angular for jobs, that will be easier and faster done with a simple jQuery.

"Get the job done" got replaced with "its cool to use xyz".

Re: Angular JS Kinda Sucks

#33
post #27

I agree the documentation does suck. But there are several good books out now that explain things well. Get a book, read it, understand it, spend some time working with it. Then compare Angular to JQuery, I bet a lot of your 'its complicated' complains will have disappeared..

wrong, i have read all google result page searching for solutions for angular and i'm still don't know how to build a proper directive or how to understand the life cycle of the application.

Re: Angular JS Kinda Sucks

#35
Anything that forces users to have javascript on sucks, by definition.

It's exactly the same as the all-flash or flash-heavy sites of the early 2000s and I can't wait until javascript-only sites are consigned to the same dustbin of "why did we ever think this was a good idea?".

Edit: It also breaks search engine indexing.

Re: Angular JS Kinda Sucks

#36

Anything that forces users to have javascript on sucks, by definition. It's exactly the same as the all-flash or flash-heavy sites of the early 2000s and I can't wait until javascript-only sites are consigned to the same dustbin of "why did we ever think this was a good idea?". Edit: It also breaks search engine indexing.

why is that? almost all browsers support JS, it's like saying we shouldn't force users to have CSS!

Re: Angular JS Kinda Sucks

#37

Earlier quoted context omitted.

"Notice that we added a DOCTYPE to tell browsers what kind of document we have. We picked 4.01 Transitional because of its flexibility to allow deprecated elements, like ."

http://okmaya.com/clean-php/clean-php-step-6/ If you know PHP, you know that you shouldn't be doing it like that. He sounds like a novice. There's nothing wrong with that, but when looking at that kind of thing I would take an opinions as a grain of salt

It doesn't really matter what the language is, SQL injection vulnerabilities are serious in any language. A competent web developer understands that -- especially a "Programmer Extraordinaire".

Re: Angular JS Kinda Sucks

#38
Let me tell you what was I thinking when I finished reading your post. I came up with a little story to demonstrate my opinion about it: So you grab your fine apple juice which you drink every day. The sourness pampers your palates. Then someone comes and gives you a pomegranate. He says "This is the finest fruit I've eaten so far!". You take a bite out of it and spit it out saying "This is awful! Apple juice is much better! Quit bothering me with your stupid ideas!". The guy leaves with an uneasy expression on his face while you drop the pomegranate and never eat it again. Unluckily you never learn how savory the pomegranate is.

So first no one should tell you that Angular is better than jQuery since they have different purposes. Angular is an MVW framework while jQuery is a javascipt library. Another thing is you think something sucks back it up with data. I see no concrete examples just some guesswork. And lastly: I can bet that if you try to read through SICP you'll say that LISP is crap and useless because it does not look like jQuery. If you don't take the time to understand something properly you'll never learn anything new. The world is full of diverse programming languages/libraries which simply don't compare to each other.

Re: Angular JS Kinda Sucks

#39
post #6

Well, I think Angular may be unintuitive for people having gotten used to the "jquery way" of thinking. But I think the jquery way of thinking is the problem here. For too long people have been doing direct DOM-manipulation, and fail to see how they can achieve what they want in a more declarative manner. When I started using Angular I had really no experience with jquery or any other js framework, and I felt Angular…

Data binding coupled with a declarative syntax isn't a "new thing", especially in the enterprise world, .NET and Java. It's an acquired taste and I never really felt comfortable with it. You can build some perverse architectural monstrosities on top of it. Of course that's true for every technology or framework, but I am of the opinion that many of frameworks that tout data binding / declarative syntax actively encou…

There's a reason data binding is popular with the JS crowd, and it's the same reason it's been somewhat popular with the big enterprise crowd. When your application starts getting very complicated, such as the user changing an input field that is reflected in a bunch of dynamic calculations across the app, it becomes desirable to simply change one value and have everything update. This is only desirable if your application is big enough that it's not just easier to re-run every calculation manually.

Big enterprise has had this problem for a long time in their big multi window monster apps they use for stock trading, etc. JS webapps have been very simple for a long time and haven't really needed it until recently. Now that they're getting complex, JS devs are looking into how to solve the problem and it generally comes down to MVC OOP style or FP style. You can see these two derivatives in AnglularJS and ReactiveJS.

Re: Angular JS Kinda Sucks

#40
post #2

I think the fact that the author is comparing angular with jquery as if they're two tools for doing the same thing probably illustrates a lack of understanding of what angular really is and what it's supposed to be for...

But he write what most of the developers misunderstood. Many people use Angular for jobs, that will be easier and faster done with a simple jQuery. "Get the job done" got replaced with "its cool to use xyz".

I dunno - since I properly learned me some angular - I've been bashing through jobs like no tomorrow.

Each time I've thought 'there has to be more to do than that'.

If I were doing JQueries - there would be an entire stack of event driven DOM updates still to code.

Post reply on HN