Live data from Hacker News

Angular JS Kinda Sucks

okmaya.com

21–30 of 66 posts

Re: Angular JS Kinda Sucks

#21

this guy describes himself as a "Programmer Extraordinaire" on linkedin

"Here’s an idea of pricing for you. I work on projects based on complexity. If you have 100 pages with simple text and images on it, the task is not complex. Just time consuming. So I consider that a complexity of 1, times 100 times. So, complexity is 100. If you have one page with one complex interactive form, with a calculator, that grabs prices from out there on The Web, then it’s a one page design, but complexity…

Actually the parts I like best were the post about how :

    "Adding frameworks and shortcuts to your development will only make you hurt later on."
Then in another post he has written his own framework.

Re: Angular JS Kinda Sucks

#22

To me this post boils down to "I already know jQuery, this isn't jQ, so WTF". Well, godspeed, you fancy bastard. I wouldn't use Angular for a small'ih average website where you want some minor JS-based UI functionality. But I found Angular much more suited than jQuery for big sites that are maintained by more than just one developer. You can look at some piece of HTML and you can tell from the list of directives what…

"I believe that with a framework like Angular it wouldn't have gotten out of hand like this,"

I disagree completely and in every possible way. This has been the hallmark of every new language/framework/coding philosophy/rant that has ever been made about coding in the last 30 years. And it's always wrong. It's wrong because it doesn't get the real issue:

Your code is bad because you have multiple untrained developers just adding code to fix their current problems. It doesn't matter which framework you use - just adding in some code to fix something over a number of years will destroy your code base. It will destroy your jquery codebase, it will destroy your angular codebase, and it will certainly destroy even your ML codebase.

I wish the coding community will one day wake up to this fact and realize it's not a technology problem, but I'm pretty sure in 10 years time I will read a post about how you need to switch your horrible old messy AngularJS app to XYZ which will fix all your problems.

Re: Angular JS Kinda Sucks

#23
It is a fairly ridiculous argument. Look at it this way, would you rather be thrown into a large project that had been built entirely using jQuery or one that had been meticulously structured with a framework. Yes, the latter might be harder to pick up initially but the benefits will be felt later on when new features are added or something breaks.

Re: Angular JS Kinda Sucks

#25
post #22

To me this post boils down to "I already know jQuery, this isn't jQ, so WTF". Well, godspeed, you fancy bastard. I wouldn't use Angular for a small'ih average website where you want some minor JS-based UI functionality. But I found Angular much more suited than jQuery for big sites that are maintained by more than just one developer. You can look at some piece of HTML and you can tell from the list of directives what…

"I believe that with a framework like Angular it wouldn't have gotten out of hand like this," I disagree completely and in every possible way. This has been the hallmark of every new language/framework/coding philosophy/rant that has ever been made about coding in the last 30 years. And it's always wrong. It's wrong because it doesn't get the real issue: Your code is bad because you have multiple untrained developers…

"I'm pretty sure in 10 years time I will read a post about how you need to switch your horrible old messy AngularJS app to XYZ which will fix all your problems."

More likely given the rapidity of churn in the JavaScript world, in about 10 weeks.

Re: Angular JS Kinda Sucks

#26
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 encourage going into this direction.

I'm somewhat surprised that it's so popular with the JS crowd right now.

Re: Angular JS Kinda Sucks

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

Re: Angular JS Kinda Sucks

#28
Besides the wrong comparison with jQuery and AngularJs I have to say angularjs is horrible to build Single Page Applications.

jQuery have enough third party lib to solve most problems.

I have done 2 big application and I'm still convincing my boss that angularjs must be deprecated immediately.

Directives and Services have too much workaround to solve the problems we already have defeated and they cast the spell to bring the undead back.

Problems I see:

* fast development * easy way to build reusable components (see AngularStrap source code) * few lines of code with real problems (like a huge form) * form validations * testing is pretty crap to do, a new born framework (karma) is already obsolete. * to much problem with $scope needed to workaround with setTimeout(fn, 0)

Features is does have:

* build a quick to do list * build a quick hello world sample

Re: Angular JS Kinda Sucks

#29
I'm not totally sold on Angular yet, but these points are ridiculous and jQuery has very little relevance in deciding on whether Angluar is good or not.

I made the mistake of looking at another post: http://okmaya.com/clean-php/clean-php-step-10/ Separating business logic, data models, and views.. yeah I bet that kinda sucks too huh? The author has clearly not worked on large scale software projects where a framework like Angular could pay big dividends in structure and testing.

Re: Angular JS Kinda Sucks

#30
I have a feeling that these declarative-style js frameworks are really meant for programmers used to server-side PHP or Rails programming. Manipulating the DOM directly is foreign to them, because all they know is printing html.
Post reply on HN