Live data from Hacker News

Show HN: Make your app handle going offline

github.hubspot.com

11–20 of 30 posts

Re: Show HN: Make your app handle going offline

#11
The more I look into HubSpot libraries, the more I am amazed by their approach. To the point, small and flexible. And if the only annoyance people can bring up is a snake game, then you should be proud :)

Regarding this particular module: is there any chance of combining this with a websocket connection (particularly socket.io)? I don't really care much for off-site requests, but notifiying the user of a disconnected socket would play well into this.

Re: Show HN: Make your app handle going offline

#12
This comes at the perfect moment for me: I'm building an inventory web app used in warehouses on tablets and I'm faced with connectivity issues (incomplete or fluctuating WiFi coverage for instance).

Making the app less prone to these issues is certainly going to help build something more robust, so thanks a lot!

Re: Show HN: Make your app handle going offline

#14
This is actually a very cool idea, but I'm gonna raise a minor nitpick which has been growing inside me over the last few months:

> It has a number of beautiful themes and requires no configuration

"Beautiful" is a word that's really getting overused nowadays, and I cringe whenever I see it.

Edit: I anticipated the downvoting

Re: Show HN: Make your app handle going offline

#16
post #7

> It captures AJAX requests which were made while the connection was down, and remakes them when it's back up, so your app reacts perfectly. Is this something I want as a user? If an app seems to be offline, I tend to do various things just to check or re-establish connectivity. Say, hit the Send button a few times, order columns, filter, search, whatever. Stuff, I wouldn't do if I had connection. Once the app reconn…

Anyone who is coding for cases like this will likely need to handle those kind of user errors. Not a big deal, though, considering a lot of apps do this already anyway.

Re: Show HN: Make your app handle going offline

#17
post #10

I think this is a neat proof of concept. However, you have to be extremely careful to not get out of sync hell. I see an enormous load of extra complexities for what seems to be very little advantage. On the other hand, if you list all the queued non-GET AJAX call for the user to resend manually, it could be good. I'm ambivalent :(

Why are you critiquing this script like it's a consumer product? Obviously any developer who wishes to use this will have do some extra work to make sure things run smoothly.

Re: Show HN: Make your app handle going offline

#18
post #10

I think this is a neat proof of concept. However, you have to be extremely careful to not get out of sync hell. I see an enormous load of extra complexities for what seems to be very little advantage. On the other hand, if you list all the queued non-GET AJAX call for the user to resend manually, it could be good. I'm ambivalent :(

Why are you critiquing this script like it's a consumer product? Obviously any developer who wishes to use this will have do some extra work to make sure things run smoothly.

Maybe because I've already implemented something like this in the past and I faced a lot of issues with synchronizing multiple states on multiple devices?

And I didn't say the library was bad, quite the contrary.

Post reply on HN