Better HN
topnewbestaskshowjobs
Log inSign up

ansman

287 karma · joined Mar 21, 2012 (14y ago) · 41 submissions

Submissions

1.

Validate.js, sharing validations between the server and the client(validatejs.org ↗)

2 points · by ansman · 13y ago · discuss

comment 13y ago · link · parent

The readme is very unclear, I've installed it but it doesn't appear that it's doing anything.

comment 13y ago · link · parent

s/M/B/g

comment 13y ago · link · parent

Isn't this the same guy who discovered the mass assignment bug in Rails last year?

comment 13y ago · link · parent

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.

comment 13y ago · link · parent

Same here, tried Chrome, FF and Safari.

comment 13y ago · link · parent

Very sad but I fail to see how this belongs on HN.

8.

Google has stopped offering free Google Apps accounts(support.google.com ↗)

1 points · by ansman · 13y ago · discuss

comment 14y ago · link · parent

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.

comment 14y ago · link · parent

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.

11.

Apple releases Supplemental Update 1.0 for Mountain Lion 10.8.2(macworld.com ↗)

1 points · by ansman · 14y ago · discuss

comment 14y ago · link · parent

If you spent over €4M on a website wouldn't you want some traffic too?

comment 14y ago · link · parent

http://ismycreditcardstolen.com/

14.

We lost data in the github crash, did you lose data as well?

1 points · by ansman · 14y ago · discuss

comment 14y ago · link · parent

This feels like a scare tactic to get people scared, they could never go after all downloaders.

comment 14y ago · link · parent

Mine has quite bad IR, 20 seconds is enough.

Given a full minute I can easily read the entire page on a #444 background.

17.

The retina macbook appears to have problems with image retention(discussions.apple.com ↗)

2 points · by ansman · 14y ago · 1 comment

18.

Did Heath Ledger get his Joker voice from Tom Waits?(kotaku.com ↗)

2 points · by ansman · 14y ago · discuss

comment 14y ago · link · parent

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.

20.

Git-praise(github.com ↗)

3 points · by ansman · 14y ago · discuss

comment 14y ago · link · parent

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?

comment 14y ago · link · parent

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.

comment 14y ago · link · parent

Hehe, it's not actually my code, I just found this gem and I liked it :)

comment 14y ago · link · parent

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.

comment 14y ago · link · parent

Don't think you can have dependencies.

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

comment 14y ago · link · parent

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.

comment 14y ago · link · parent

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.

comment 14y ago · link · parent

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.

29.

Rivets.js - Binding data to views(rivetsjs.com ↗)

69 points · by ansman · 14y ago · 31 comments

12