Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Slightly off-topic, but I've been hacking IndexedDB lately, and while I'm grateful to Mozilla from saving us a future of writing SQL in the browser, IndexedDB is not what I would call friendly. Anything you do against it requires 4 or 5 callbacks. The first thing a JavaScript programmer will do is write an abstraction layer around it. That's a sign an API is too complex. Why on earth a transaction is required to do a get (or even a put, for that matter) is something I don't understand.


To my knowledge, IndexedDB is specifically intended as a low-level B-tree API that most developers will access via a high-level library of some sort [1].

[1] http://hacks.mozilla.org/2010/06/beyond-html5-database-apis-...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: