ansman's comments

ansman | 13 years ago | on: Discourse ditches CoffeeScript

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.

ansman | 13 years ago | on: Google Nexus 4: Nearly flawless

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.

ansman | 13 years ago | on: Google Nexus 4: Nearly flawless

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.

ansman | 13 years ago | on: Facebook Timeline with HTML and CSS

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.

ansman | 13 years ago | on: Rivets.js - Binding data to views

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?

ansman | 13 years ago | on: Rivets.js - Binding data to views

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.

ansman | 13 years ago | on: Rivets.js - Binding data to views

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.

ansman | 13 years ago | on: Rivets.js - Binding data to views

Don't think you can have dependencies.

It just updates the specified part (data-value updates the value, data-html updates the innerHTML etc)

ansman | 13 years ago | on: Rivets.js - Binding data to views

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.

ansman | 13 years ago | on: Rivets.js - Binding data to views

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.

page 1