Live data from Hacker News

AngularJS versus Ember

eviltrout.com

161–163 of 163 posts

Re: AngularJS versus Ember

#161
post #140
post #132

Earlier quoted context omitted.

>> What I am sure of is that a system that is less complex and easier to use is better engineering. I agree. I think this is what made the success of very popular libraries (such as Jquery), but also protocols like email and the web. I've been trying very hard to use Ember on a couple small projects, and I found it very hard not to get frustrated by how difficult it is to execute some trivial tasks. Part of the probl…

I was being aggressive because I feel strongly that people like this man are supporting and being wishy-washy about Ember simply because they are afraid that they will look bad if they admit that Ember was difficult to use. And I forgot that language like that simply was not accepted on this website unfortunately. However, I believe that the aggressiveness was warranted because there are quite a large number of organ…

Dude, you don't know anything about me and I don't know anything about you. One of the reasons for my original post was to prevent this thread from turning into an unnecessary flame war.

I would ask that you consider, for a moment, that it is possible for someone to hold simultaneous opposing views. I also would ask for you to go back and re-read Brooks' essay about accidental and essential complexity. I believe that the choice of framework and the difficulties associated with a specific framework fall into the accidental complexity category. If after reading the essay you believe the same, then you would conclude that both choices in this thread have similar inherent merits. Such an opinion wouldn't be wishy-washy or a cop-out, but, perhaps, closer to a deeper understanding of our craft.

Every MVC framework I've used in production (Catalyst, ASP MVC, Cake, Spring, Rails, Rails with Spine, this batch of JavaScript frameworks) has had warts and frustrating moments just as all of the web languages have frustrations (Perl with maintainability, PHP with amateur hour inconsistencies, Python with tab/spaces that different IDEs will autocorrect, Rails with too much 'magic' that leads to serious bugs, Java with too much verbosity, Spring with too much XML, C# with too expensive support, Django with too many required add-on libraries, Rust with too few libraries, Go with too new, etc, etc).

Ember was not any harder than Angular to get going (ever try to untangle the service/factory/module/controller mess?). And I have no shame in admitting that I took at least three full workdays to learn each. At the end of the day the two frameworks were just different, in the same way that writing an app using JavaScript MVC is just different than how I used to write ASP MVC apps. The reason I use the newer stuff is because the newer stuff is more fun, I can be more responsive, and (in some cases) I can host an entire webapp on s3 (managing servers can be a headache). Despite some clear advantages, none of these different frameworks is inherently better. They all have tradeoffs. If Microsoft were to come to me and (with a large check) demand that I use ASP MVC, I would do so.

My first response reading your comment is that you have less experience than I do with software engineering. That may be untrue and unfair, but rash responses are correlated with inexperience from my career. I would ask you to consider your strong, aggressive reaction as unhealthy for merit-based engineering decisions. Learning and respecting that most decisions in software are about tradeoffs and not black-and-write-strictly-better-or-worse I believe will help you in your career. Furthermore, I hope you eventually come to point where you realize many of these different languages and frameworks all look the same after a while :) It's not until we can tell a computer what we what and it figures out how that our productivity will massively improve.

Re: AngularJS versus Ember

#162

Earlier quoted context omitted.

How do you ensure that Google is able to index it? Do you sniff the user-agent and serve it a pre-rendered view of the discussion thread?

See https://news.ycombinator.com/item?id=5198934 > Our site is indexable by Google and it doesn't do much fancy. On certain URLs, we generate a small HTML view of the content in the tag. You can see this by viewing source or disabling JS in your browser. It's just a simple ERB template in Rails, and uses the same object graph that we serialize via Active Model Serializers. > Google can see it and index it, we've conf…

Honestly the reason I haven't written about it is because I didn't write it! Sam did a great job, and he did it in a super short period of time.

I was leaving it to him to explain how it works :)

Re: AngularJS versus Ember

#163
post #152

Earlier quoted context omitted.

I agree, Angular has the right implementation. It's just not clear that it needs quite so much stuff to solve one problem. And if it isn't solving one problem, why not?

Angular team is going to split the Core into several small modules, hopefully a data-binding module will be available to replace knockout and do nothing more ;)

So what you're saying is they're trying to knockout knockout?
Post reply on HN