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

This API is as simple, as it gets, and it's working OK for me (saving/loading game state), and I think for many other purposes also.

Why can't we have simple API AND second, async API with bells and whistles for people who need that?



The async api with bells and whistles is supposed to be indexedDB.

It would have been nicer to have an async mode for localStorage, but even then I don't think it covers it. I really worry that developers are starting to try and build serious apps on it and it just won't work..

Question: what happens if your gamestate gets over 5Mb?


> Question: what happens if your gamestate gets over 5Mb?

I hope it won't, because I only save stuff that changes. I can compress biggest data, if it becomes a problem, to get more space, but I don't think I'll have to.

Anyway - it's not a problem of API, but of constraints of browser implementations. There's nothing preventing browsers from implementing configuration option that allows users to assign available space in localStorage to domains.




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

Search: