Live data from Hacker News

Show HN: SQL Noir – Learn SQL by solving crimes

sqlnoir.com

11–20 of 90 posts

Re: Show HN: SQL Noir – Learn SQL by solving crimes

#11

Really cute. But I really want the ability to put the different tabs -- Brief, Workspace, Schema -- side-by-side. I know SQL and wanted to play with this, but the UX was frustrating enough to drive me away, even though it is really pretty.

That's a good suggestion. I'm not sure if screen real estate won't be a problem though.

Re: Show HN: SQL Noir – Learn SQL by solving crimes

#13
post #5

This is pretty fun, I tried the two free mysteries and was fun solving them. One nit, would be nice if the SQL editor supported comments so we can comment out old queries before running new one so as keeping a history esp if we need to run the same queries again. Good stuff :)

You should be able to add -- and comment out lines of queries. If not, this is a bug that I will investigate. Also you can use the Notes tab to store any past queries and findings.

Hey!

Firstly - great work - one of my favourite games is Chronicles of Crime and this immediately made me think back to how I would've gone about investigating some of those stories using SQL.

w.r.t the comments - you can add `--` to comment out lines of queries but when I do it on two or more lines they get mashed into a single line and I can't reliably uncomment them again without the queries getting mangled.

I've found you can use multiline comments /* and */ though which worked for me - just a bit more back and forth on the keyboard.

Anyway - again - awesome work.

Re: Show HN: SQL Noir – Learn SQL by solving crimes

#14
post #12

That was fun! One question, is there a way to execute the current hovered/selected query and not the first on in the workspace?

You can try commenting out the first query with -- and running it like that. I have not implemented yet the ability to run multiple queries.

Re: Show HN: SQL Noir – Learn SQL by solving crimes

#15

Earlier quoted context omitted.

You should be able to add -- and comment out lines of queries. If not, this is a bug that I will investigate. Also you can use the Notes tab to store any past queries and findings.

Hey! Firstly - great work - one of my favourite games is Chronicles of Crime and this immediately made me think back to how I would've gone about investigating some of those stories using SQL. w.r.t the comments - you can add `--` to comment out lines of queries but when I do it on two or more lines they get mashed into a single line and I can't reliably uncomment them again without the queries getting mangled. I've…

Thank you very much. That's actually a great suggestion. I completely forgot about that. As for the single line comments, indeed this is a bug, I'll try to fix it.

Re: Show HN: SQL Noir – Learn SQL by solving crimes

#16
Something is weird in at least firefox. Type or paste:

  select \* 
  from crime_scene;
then TYPE so you add a comment

  select \* 
  from crime_scene;
  --
I see

  select ----from---------------- 
but when I select the text I see what I wrote - I like the comment my text (and I was pulling in the instructions) but it renders some interesting garbage pretty fast.

Re: Show HN: SQL Noir – Learn SQL by solving crimes

#17
post #16

Something is weird in at least firefox. Type or paste: select \* from crime_scene; then TYPE so you add a comment select \* from crime_scene; -- I see select ----from---------------- but when I select the text I see what I wrote - I like the comment my text (and I was pulling in the instructions) but it renders some interesting garbage pretty fast.

Thank you for pointing that out. Will look into it.

Re: Show HN: SQL Noir – Learn SQL by solving crimes

#18
post #5

This is pretty fun, I tried the two free mysteries and was fun solving them. One nit, would be nice if the SQL editor supported comments so we can comment out old queries before running new one so as keeping a history esp if we need to run the same queries again. Good stuff :)

You should be able to add -- and comment out lines of queries. If not, this is a bug that I will investigate. Also you can use the Notes tab to store any past queries and findings.

It works for the first line, but doing it on a second seems to make it merge lines.

Re: Show HN: SQL Noir – Learn SQL by solving crimes

#20

Really cute. But I really want the ability to put the different tabs -- Brief, Workspace, Schema -- side-by-side. I know SQL and wanted to play with this, but the UX was frustrating enough to drive me away, even though it is really pretty.

That's a good suggestion. I'm not sure if screen real estate won't be a problem though.

Maybe modeled after browser dev tools. Big display at the top, small repl at the bottom with a dragged to resize. Also tab structure and the “menu” are chewing up a lot of vertical real estate for two classes of data most users won’t see as separate.

The schema ui seems to be big because of the graph display… which is not at all done baking yet. The hard part of displaying graphs is the pathing, and the very first one I opened has an arrow coming from the left, going across the mode, and attaching to the right side. In a perfectly horizontal line. That’s gonna need to cook a lot longer. It it worth having a bad vis over having no vis?

Post reply on HN