r/angularjs • u/foxclaw • Jan 29 '15
Anyone else sick of the negativity towards Angular?
Seems the cool thing to do these days it to write a blog post about how Angular is the worst thing to happen to mankind and how React is the only way to write anything ever.
Today on HN: "that a framework so fundamentally and ridiculously flawed could invite such wide appeal suggests that many people have absolutely no idea what they are doing. [...] There is simply no way that you can say that you know Javascript and at the same time support Angular."
Yeah, Angular isn't perfect. Learning curve/dirty checking is inefficient/etc. and yet we still find ourselves productive in it. Anyone else find all this tiring? I just want to keep up with JS news and updates and I can't do it without reading Angular bashing everywhere I go.
EDIT: Not saying constructive criticism is a bad thing, by all means. It's just that I can't remember the last time I saw a positive post about Angular hit the front page of /r/javascript or HN and yet every day there's a post about how awesome React/<insert other framework> is and often a post about how Angular isn't.
12
u/BradChesney79 Jan 30 '15
I am completely new to AngularJS-- three weeks. I have already done in maybe two dozen lines what would have taken much longer with a jQuery only solution... I am using ng-model, ng-change, ng-disable, ng-options, (instead of ng-repeat in a select element), $http, & $log. My post earlier this week is literally this: http://plnkr.co/edit/wTIo8y6Det9Y5VLP86pM
If you didn't have 5,000 other better things you are doing, you could see my short evolution from 'guy fairly okay with javascript' to 'guy becoming fairly okay with Angular'. This library is great-- but the two-way binding is what has really done it for me... React seems cool and all-- I don't need to say bad things about it. It is just that even as janky as Angular feels and how terrible the documentation is-- my application of the code has created an easier to understand user interface from the perspective of a stranger looking at my code. I attribute that to being so because there is so much less of my code and that is mostly because they have given me tools to do all the things I had thought to do... I am filling dropdowns that are dynamically linked to one another and acting on each change event appropriately. Just really impressed with the tool.
3
u/Capaj Jan 30 '15
how terrible the documentation is
It is quite good actually. Show me a project of comparable size which has better docs. React? That shit aint even versioned.
4
u/BerserkerGreaves Jan 30 '15
jQuery.
7
u/Capaj Jan 30 '15
Ok, so the most popular and proliferated JS project on the web has better docs. Ok I think I can live with that.
3
u/aakilfernandes Jan 30 '15
To be fair, the concepts in jQuery are far less abstract than angulars.
3
u/BerserkerGreaves Jan 31 '15
Yeah, but I don't think that is the reason why they have a good documentation. Angular's documentation simply doesn't contain enough examples and explanations on how to use stuff. If I don't understand something in jQuery I can literally just search in their API reference and get my answer 95% of the time. In case of Angular I have to rely on answers on SO, if there is none for my problem, I'm fucked, because I almost never get anything useful from their docs. Angular's documentation is not "quite good", it's awful, it could be worse only if it didn't exist at all.
29
u/willfe42 Jan 29 '15
People love to dump on things that:
actually work
are clever and/or elegant
they didn't think of themselves
It's also easier to whine about frameworks than it is to write (or deploy) them. Why work on something useful when you can just write a snotty, click-baiting blog post and get more attention for it?
23
Jan 29 '15
People love to dump on things that:
actually work
are clever and/or elegant
they didn't think of themselvesare popular
I think that's closer to the truth.
1
u/SlobberGoat Jan 30 '15
PeopleHipsters love to dump on things that:
actually work
are clever and/or elegant
they didn't think of themselvesare popular
A wise dev will pick the right tool for the right job. (..regardless of a framework's fashionista status)
8
2
6
u/aakilfernandes Jan 29 '15
I like angular too, but this is circle jerk bs. People like to dump on things that work, are clever, and are elegant. What?
2
0
Jan 29 '15
Of course they do, look at all the hate happening on angular and even isomorphic development. People are loving to rail against things that are popular.
14
u/schizoduckie Jan 29 '15
Just read this and have faith.
http://www.jokecamp.com/blog/what-has-angularjs-ever-done-for-us/
No software is perfect. The internet is young. Shit will break, things must evolve, but at least we can all work the same way now.
the world (especially the IT business world) needs opinionated frameworks that have a lot of traction, are well tested, and have a vast resource of both positive and negative feedback on it. Keep it coming, keep the dialog going, but don't think that new 8kb microframework that somebody finished yesterday can accomplish the same thing.
-6
u/efapathy Jan 30 '15 edited May 22 '17
.
4
Jan 30 '15
Yeah? What's your list then? All if those things are really nice to have together. Yes you can achieve it with independent libraries but good luck finding help on a question when two libraries don't play well.
1
u/schizoduckie Jan 30 '15
This. Or a new colleague that has a preference for moustache over handebars, underscore sucks, let use $x, etc Etc Etc
5
u/pandavr Jan 30 '15
I think the problem with Angular is that the team admittedly told everybody that Angular 1.x is architecturally flawed in so many ways it cannot be fixed. The team is the same that told everybody the Angular way of 1.x was the Holy Grail till the day before. And while the told that they also told that it is not clear if a migration path will exists.
So they pissed off a lot of people. Speaking for myself: I use Angular every day and it's ok. But when I think about the future I'm trying to avoid large framework, or better, to use what I need in a certain moment without having to rewrite everything from scratch.
Shameless plug: I'm putting together a modular framework based on AMD modules and micro-libraries that could (if needed) glue together different framework and make them collaborate to compose the application. If you want to take a look: https://github.com/ivan-saorin/AssemblyJS Example with Ractive and Riot 2: https://github.com/ivan-saorin/AssemblyJS-example2
6
u/mishugashu Jan 30 '15
Anyone else sick of the negativity towards PHP before Angular came to be?
Same shit, different era. People will keep on shitting on the current top dog until another top dog takes the place. Get used to it, it'll never change.
6
u/zefcfd Jan 30 '15
those are kinda for different reasons though. i think people get frustrated learning angular, and i thought people disliked php because enabled inexperienced devs to produce very dangerous code if they weren't careful.
4
u/evereal Jan 30 '15
I honestly haven't seen a language or framework where inexperienced devs couldn't produce dangerous code if they aren't careful. That is not a PHP thing.
2
u/Capaj Jan 30 '15
no that's not, but only in PHP, even most experienced devs make mistakes because of some obscure parser bug, or a method whose params order is abnormal.
2
u/BerserkerGreaves Jan 31 '15
PHP encourages it as nobody else does. Could you possibly mix HTML, SQL queries and GET/POST query parsing in a single function on languages like Python or Ruby? I guess it's possible, but it's not obvious how to do it and you will need to spend quite a bit of time in Google or be more experienced. No framework documentation would encourage such practice and the default way of separating logic, views and model is explained in every guide. Without a framework a novice wouldn't even be able to run a script on a web server on these languages. On PHP the first thing everybody does is shit like that:
<?php if(isset($_GET['i']) && $_GET['i'] == 'home'){ include('home.php'); $servername = "localhost"; $username = "username"; $password = "password"; $dbname = "myDB"; // Create connection $conn = new mysqli($servername, $username, $password, $dbname); // Check connection if ($conn->connect_error) { die("Connection failed: " . $conn->connect_error); } $sql = "SELECT id, firstname, lastname FROM MyGuests"; $result = $conn->query($sql); if ($result->num_rows > 0) { // output data of each row while($row = $result->fetch_assoc()) { echo "id: " . $row["id"]. " - Name: " . $row["firstname"]. " " . $row["lastname"]. "<br>"; } } else { echo "0 results"; } $conn->close(); ?>Well, you got the idea.
2
u/tapesmith Jan 30 '15
No, this is a different thing. PHP gets hate because it's a poorly-built one-off HTML templater with way too many gotchas and inconsistencies that somehow got coerced into an even-worse applications language.
2
u/f3lbane Jan 30 '15
PHP has come a long way since its "Hypertext Preprocessor" days. I'll even venture to say that the recent OO work isn't bad at all.
I think the biggest thorn in the side of PHP is the clusterfuck that is the API. If PHP 6 were to take the Python 3 approach and drop the legacy APIs and unify everything under one standard, it'd quiet a lot of the haters.
Of course, then they would just turn around and bitch about backward compatibility.
0
u/mishugashu Jan 30 '15
It's pretty much the same thing... find faults with the product and hate on it. Yeah, they're definitely different faults (and the severity of the faults are different, too), but nothing is perfect. The day something's perfect is the day everyone stops hating.
-2
u/Capaj Jan 30 '15
No it is not. PHP is a failure-it's popularity was only enabled by the fact that it had no real competitors as easily deployed web scripting/templating language. Whereas angular had many competitors and still managed to thrive the most. Not because it was cheap to run it/deploy it, but because it is effective, well thought out framework. Unlike PHP.
3
u/hardciderguy Jan 31 '15 edited Jan 31 '15
Yes it is. PHP still allows us to solve problems in a practical fashion. You're either looking for problems, or you're looking for solutions, and we only get paid for solutions. Go ahead and keep hating on <insert tool du jour> - We're still solving problems with it. I don't hate on any language, it is a waste of time and energy. Hate on people using the language in a lazy fashion, writing awful code. Just do the freaking work and stop whining.
1
u/BreakingIntoMe May 02 '15
That is the most sane comment about PHP I've ever read. Completely agree.
1
0
u/buckfitchesgetmoney Feb 03 '15
but because it is effective, well thought out framework
And things like Symfony2 and Laravel aren't? Yeah PHP had it's flaws in the early days, but there is a reason that it's still as popular as it is. Things like Composer and PHP-FIG are really awesome.
3
u/chance-- Jan 29 '15 edited Jan 29 '15
People have a natural tendency to form factions for the strangest things. Development frameworks happen to be among those oddities where people can become fanatical in their support of or opposition to a given option(s). Writing on public forums or kicking out blog posts simply to complain about the level of rhetoric likely means you've found yourself holding a flag for your clan's side.
I recognize that we all invested time learning Angular and while there's a lot to like about it, there are also a lot of valid complaints in both it's current existence and planned revisions. Criticism is a healthy and necessary component of what we do. Not being able to take the heat, so to speak, for a framework you aren't responsible for is not.
2
Jan 30 '15
It does get old but how else will front end frameworks advance if no one is pointing out warts? If nothing else I think it helps to get everyone collectively thinking "x is bad, lets stop doing this or take another approach" Im sure a lot has to do with the way people present issues, its pretty easy to spot articles that bash for the sake of bashing verses ones that want to advance the front end framework paradigm.
2
Jan 30 '15
well... it's being used everywhere, google has no reason to drop it. all devices in the forseeable future support it. it has a massive dev community that is only getting bigger. so it doesn't matter what people say... far more people hate on ruby and as fun as it is to use it comes out last performance-wise in competitions, demand for ruby devs is still as strong as any. all tech has people who failed to figure it out or try to fight against the currents of change...
2
2
u/KumbajaMyLord Jan 30 '15 edited Jan 30 '15
I think some of the hate results from angular's attitude towards vanilla javascript. Angular was born out of a mindset to make javascript manageable and feasible for development in larger/complex applications. Their unofficial tag line in the beginning was something like "this is what HTML/JS would be like if it was intended for application development from the beginning".
And they succeeded at that in some ways (and created new problems in different places) and attracted a lot of developers that just didn't get javascript and that used to fall into all those quirks and pitfalls that vanilla JS has. Now all the "real" javascript devs that had already grasped the javascript problems look at angular and see it as something unnecessary that solves problems that aren't problems to them and instead introduces new problems.
3
u/highhard_one Jan 29 '15
I'm not sick of the criticisms about Angular and I want to see more of it, because I don't feel productive in Angular and I want open discussion to lead to a better future. Just because Prototype once existed and people were emotionally tied to it didn't justify its continued existence once JQuery proved to be a superior solution, the same could happen to Angular, and should, if Angular is fundamentally flawed.
3
u/miketa1957 Jan 29 '15
In some ways I quite like all the Angular bashing; Angular bashing articles generally leave me with a warm feeling thinking "this guy is a total prat[*], they really have no idea what they are talking about"
But mostly I just find it depressing. Sure, Angular has its strengths and weaknesses; there are problem domains where it is a good fit and where it is a bad fit; the are stunningly clever bits and other bits that seem poorly thought out. Well, guys, welcome to the real world.
The first reply to your 'that a framework so fundamentally and ridiculously flawed .... quote' at https://news.ycombinator.com/item?id=8965935 is typical. "I have yet to see an Angular project that doesn't qualify as tiny". No, matey, that doesn't mean that all Angular projects are tiny; it just means that you've not seen any that aren't, and you are too blind to image that what you see is not the whole world.
[*] Replace with your choice of derogatory term, appropriate to your culture and language :)
2
u/dmackerman Jan 29 '15
Yeah, it's really frustrating. It's mainly a problem with the web as a whole, and the evolving technology we have to use to be on it's cutting edge. Sometimes the solution that works isn't the most elegant - although I think that well written Angular code is quite elegant.
Also, click-bait.
2
1
u/calsosta Jan 30 '15
Yep. Although I still maintain that Angular or any front end framework is still a bandaid for HTML.
Personally my angular pet peeve is the 100s of tutorials.
1
u/alexcasalboni Jan 31 '15
I think that "implicitly" every single tutorial [1], free e-learning website [2], paid course [3] and the huge amount of cool examples [4] actually represents "a positive post about Angular", but nobody feels the need to post it on Reddit or HN because you just need to google them.
Of course each framework has quite a large amount of haters and critics but I'm quite sure every "negative" post/article is just helping Angular improve and become more popular.
[1] http://tutorialspoint.com/angularjs/
[2] https://www.codeschool.com/courses/shaping-up-with-angular-js
1
u/hardciderguy Jan 31 '15
I think it's also a problem of a lack of patience of developers in a time when everyone wants everything to be as easy as possible. They don't seem to have the stamina to work through problems. I continue to evaluate Angular, and even though I had a problem that required hours of troubleshooting this past week, I got it figured out, and I'm satisfied with the result. That's how you should deal with complexity. Stop quitting if something gets you stuck and then writing a blog post whining about it for traffic. I'm only using it for smaller applications, mainly for directives right now, which I love despite others grumbling about complexity. It's doing the job, I have no reason not to continue using it right now.
1
u/knrd Feb 01 '15
the framework has been around for 4 years now. all the whining about flavor of the month frameworks has been quite hilarious. seems like everyone ignored it until 1.0 and when they added "by google". then suddenly everyone started piling on. whatever. Back in 2011 I went through every framework out there. Angular was the only one that made JS SPA not suck, worked and scaled.
1
Feb 01 '15
I like programmers who complain about tools they use. If you don't like the tools you're using, create tools that you like using - otherwise STFU. You're a developer for Christ's sake, not a user.
That being said, I'm new to Angular and web development in general - and while I was told the learning curve is high - I find it relatively easy to implement and have been having a good deal of fun (I popped my cherry on .NET development).
1
1
0
u/Specialjyo Jan 30 '15
It's an interesting thing. I wonder if it's something to do with the next generation coming into the workforce. The entitlement generation , or millennial programmers.
0
u/noeticforce Feb 23 '15
Angular is like Marijuana, "they" start using it but will never leave it. It kinda gives a high!!! woohoo high!!
0
u/WebYourMindtuts Apr 13 '15
I was having this conversation a while ago on an angularjs group. In general every framework has pro and cons. What really makes the difference is the developer. If you stick to best practices, you use the framework the way you are supposed to, you are not afraid to extend it by writing new components, and you keep refactoring/improving when needed, there's pretty much nothing you can't do with Angular. I'm using it for enterprise project, and even if it can be challenging sometimes, I still find it a great framework!
-1
u/Asmor Jan 30 '15
Eh. Welcome to the Internet. Grow some thicker skin or it'll chew you up and spit you out.
0
Jan 29 '15
[deleted]
1
u/willfe42 Jan 30 '15
"weak hands"
While I agree overall with the sentiment, this bit stinks of /r/bitcoin lunacy.
1
u/psychicpirate Jan 30 '15
I think the majority of people weren't 'weak hands' that were scared off. While I obviously can't speak for everyone, in my own case I was evaluating angular for use in a larger enterprise environment, and seeing APIs go through drastic rewrites (even if it's 100% positive changes) doesn't do a whole lot to encourage adoption in that kind of environment. Things we write now will have to be supported for years, far after the rest of the angular community has moved on to 2.0. Since our software actually needs to make money, we can't waste time rewriting things until there's a business reason to do so. Intentionally jumping on what is, for all intents and purposes, a sinking ship, just doesn't make good economic sense.
1
u/KumbajaMyLord Jan 30 '15
I think that's a bit of a conspiracy theory. In a Hangout that they did short time later they joked about the fact that they learned not to put tombstones into their presentations anymore.
I think they presented it in such a dramatic way, because they were excited about it, because to them it is big, positive step forward for the framework and they are able to shed the cruft. They simply got carried away and just assumed that everyone would be as excited about the new cool stuff as they were.
13
u/dust4ngel Jan 30 '15
holy damn am I productive in angular - if it hugely sucks, I can't wait for the next thing!