HN user

ansman

287 karma
Posts14
Comments25
View on HN

If you understand programming (there is a difference between knowing how to program and understanding, a lot of people lack the latter) there is absolutely no difficulty learning CS if you know JS.

I've been coding CS for over a year now and I like it, I've never found it hard to debug and it's just easier to read.

Well I had having to decide in advance what I want to listen to.

And I hate interruptions in my music just because I happened to go into a house without wifi.

Isn't anyone else bothered that it only has 16GB space? I use around 13GB for music (Spotify) and 2GB for photos.

I don't see why they couldn't make a 32GB version.

I don't get it, what's so special about this?

Seeing as FB is built using HTML and CSS I don't see this as especially hard.

Also, the <article> and <section> tags would fit nicely in your markup.

So how would you solve updating a view after rendering? Do you want your view to know about the markup in your template.

I'm really curious, is there a better way?

It template agnostic, once you've rendered your view you give rivets your DOM element and it will find the data attributes. You could use handlebars, haml or any other templating engine with rivets.

But on the other hand the view has to know about the template.

Change a tag name or class name (which I think is far more common than attribute names) would then break the relationship.

This is pretty much only useful for JS apps. The problem comes when you have data changing after a view has been rendered.

Rendering the whole view again can be expensive. As well as this the user might have interacted with the page in which would probably make the user loose his changes.

Well, they do have different goals. Rivets wants to be a small plugin that works with any framework while knockout is also designed to bring structure to the party. For me it's like comparing an engine with a car.

One big upside to knockout is that the lib is a little under 3KB minified while knockout is 40KB minified.

I prefer having smaller libraries that are really good at what they do.

You're comparing apples and oranges, Knockout is a lib for structuring your app while this is a small lib that doesn't do anything more than data binds.

This could be used with backbone or any other lib that doesn't have data binds.