News for hackers. Stuff that matters.
Re:LocalForage – An asynchronous data store with a simple, l... by cwmma on Saturday July 26, 2014 @04:41PM (#8090717)
Ugh it would have been nice if they had settled on a standard async api E.g. Node style callbacks or promises instead of their own random one.

Edit: it would be nice if the documentation mentioned the promise support.

Re:LocalForage – An asynchronous data store with a simple, l... by anotherbrick on Saturday July 26, 2014 @04:48PM (#8090751)
It's not in the linked documentation, but localForage does support promises. https://github.com/mozilla/localForage#promises
Re:LocalForage – An asynchronous data store with a simple, l... by tofumatt on Saturday July 26, 2014 @05:52PM (#8090920)
Thanks for pointing this out; I've filed an issue to add them: https://github.com/mozilla/localForage/issues/218
Re:LocalForage – An asynchronous data store with a simple, l... by tofumatt on Saturday July 26, 2014 @04:59PM (#8090782)
It uses Promises and callbacks, though you're right it doesn't use node-style. It's not a node library and I frankly dislike needing to supply error as a first arg, as strictly speaking it's optional and just adds cruft.

I had a few folks mention this in the early stages of library development but it hasn't come up since.

Re:LocalForage – An asynchronous data store with a simple, l... by woah on Sunday July 27, 2014 @05:45AM (#8092346)
probably best to prioritize de facto standards over your own personal aesthetic preferences.
Re:LocalForage – An asynchronous data store with a simple, l... by tofumatt on Sunday July 27, 2014 @01:06PM (#8093276)
Fair enough, I've asked the contributors/users what they think and am open to making the change for 1.0: https://github.com/mozilla/localForage/issues/219