News for hackers. Stuff that matters.
Re:Knockout v3.0.0 released by jcutrell on Friday October 25, 2013 @09:18AM (#6611367)
Knockout certainly doesn't get as much attention as it should. For those of you reading this comment feed to find out if you should try Knockout, I'd recommend trying it. It is fairly simple to pick up in a weekend, especially with their interactive tutorials: http://learn.knockoutjs.com/

Looks like this version makes what I believe to be Knockout's biggest strength (the data binding) that much stronger.

Re:Knockout v3.0.0 released by prottmann on Friday October 25, 2013 @09:50AM (#6611554)
But the same you can say about many other frameworks.

Knockout got attention, but there are so many frameworks that it is not so easy to see the big advantage of one.

Re:Knockout v3.0.0 released by 1qaz2wsx3edc on Friday October 25, 2013 @03:31PM (#6613959)
Knockout is more of a library then a framework.

I tend to use Angular, but recently I jumped onto a project and crunched through some work by dropping Knockout into it. The learning curve is small, and I was able to finish off the feature quickly.

Re:Knockout v3.0.0 released by TheAnimus on Friday October 25, 2013 @09:58AM (#6611602)
I like knockout, I'm using it on a big project at the moment. Compared to say Angular it is definitely much easier to learn.

My complaint (probably more relevant to hardwaresofton) is that I like my MVVM to have a type resolution system, ok in javascript this is hard, but if I've got one ViewModel for the NavBar, it would be nice to be able to better state the one for the MainContentArea. ko.ApplyBinding(vm, someJQuery) just doesn't strike me as elegant!

Re:Knockout v3.0.0 released by jasallen on Friday October 25, 2013 @10:05AM (#6611644)
I would argue its only easier to learn than Angular because it is smaller. Just data binding in AngularJS is much easier to me.

That said, I liked knockout when looked at it, I just looked at Angular shortly after and fell in love. Annnd, I haven't looked at the new version, so grain of salt.

Re:Knockout v3.0.0 released by cmdkeen on Friday October 25, 2013 @03:49PM (#6614071)
I use a single viewmodel with multiple objects and the "with" binding to deliver that pretty effectively. You still get the ko.applyBinding(view) call but can have common HTML.

We went to that after hell with pages littered with applyBinding calls.

Re:Knockout v3.0.0 released by taude on Friday October 25, 2013 @11:15AM (#6612097)
I like the way Angular manages nested $scopes a lot better than the ko.ApplyBinding paradigm. We are constantly have to add wrapper DIVs and clobbering each others ViewScope in Knockout.JS. It's not the end of the world, by any means.
Re:Knockout v3.0.0 released by hardwaresofton on Friday October 25, 2013 @09:53AM (#6611573)
If you like frameworks that do one thing, and one thing well, then you'll like knockout. Amazing data-binding system
Re:Knockout v3.0.0 released by prottmann on Friday October 25, 2013 @10:09AM (#6611669)
But for only one thing i would not use a framework, a library like http://ractivejs.org is enough for that.
Re:Knockout v3.0.0 released by dminor on Friday October 25, 2013 @11:50AM (#6612290)
That looks pretty similar to Knockout - I don't think you can really claim that one is a library and the other a framework.
Re:Knockout v3.0.0 released by dodyg on Friday October 25, 2013 @12:15PM (#6612485)
Ractive.js just cares about the view - everything else is up to you.
Re:Knockout v3.0.0 released by dminor on Friday October 25, 2013 @05:07PM (#6614654)
Yes, but the same is true of Knockout - it has no server-side ajax functionality. I'm looking at the code on the example pages and it's solving essentially the same problem as Knockout (there's even a shout out to Knockout on the homepage).

The main difference seems to be that in Knockout has 'observables' that are part of your view model, whereas with Ractive you interact with your view model via Ractive's functions.

Re:Knockout v3.0.0 released by hardwaresofton on Friday October 25, 2013 @05:03PM (#6614619)
Sorry I think of knockout as more of a library than a framework. It's called a framework (and often the smallest/lightest one), but most of the real work is really only done in one or two places