News for hackers. Stuff that matters.
Re:Show HN: I made a SQL game to help people learn / challen... by dylan604 on Saturday April 22, 2023 @10:48AM (#35667098)
"ERROR Error: Uncaught (in promise): GetDBFromStore: No available storage method found."

Yes, there's a banner at the top that says "this site uses cookies" blah blah, but if cookies are blocked, a silent error to console without any notice to the user makes the site look broken. only as a nerdy dev willing to open up the console to see what might be causing the screen to not work would see this. a normal user would just think the thing is broken and move on. then again, a normal user would allow cookies without question, so there's that. that still does not mean the UX of a site should cause the user to think it is the site that is broken rather than the user's setup causing the site from performing

Edit: just to add that this is a real shame, as just watching the intro it is obvious that there has been a significant amount of effort put into this, and I really thought it was pretty clever. Enough so that I might allow my browser to leave lock down mode to continue checking it out

Re:Show HN: I made a SQL game to help people learn / challen... by inportb on Saturday April 22, 2023 @10:51AM (#35667129)
Agreed. A good error message could help the user make it work.
Re:Show HN: I made a SQL game to help people learn / challen... by robinLord on Saturday April 22, 2023 @07:27PM (#35671836)
Thanks for the feedback! This was a definite learning project for me (main motivation was to learn something about JS web dev) so I've clearly missed that - will have a look at fixing it or as you say at least giving a more informative error.

Thanks for sharing the feedback and giving it a second look!

Re:Show HN: I made a SQL game to help people learn / challen... by dylan604 on Saturday April 22, 2023 @09:16PM (#35672430)
I'm glad you took that in the spirit it was intended. I'm always afraid of coming across as an asshat, and really tried to not be that way for this comment.

I'll also add, that this is one of my biggest weaknesses as a dev in providing error message in the UX in the exact manner. The code traps for them, but doing anything more than letting the dev know is where I stop as well. Maybe that's why I was keen to go looking for it, as I just finished updating one of my projects in this exact manner. I probably spent just as much time in error handling as I did in writing the code. Others will probably all nod and say "yup". ;-)

FYI, I did try your game in a non-locked down version of my browser, and really enjoyed the creativity of slogging up some SQL. I'm no DBA, and I did learn a few things that I don't typically deal with in my limited usage, so thumbs up all around!

Re:Show HN: I made a SQL game to help people learn / challen... by robinLord on Sunday April 23, 2023 @01:42PM (#35678527)
Yea I totally get it - I face a similar challenge when it's something I'm more clued up on.

That is brilliant news that you gave it a try and enjoyed it, even better that you learned something! Thanks again for the time you took to feedback, and the time to follow up!