There are several ambiguities in the "pudding" challenge. - Unclear if offenders are defined as taking >2 puddings or >=2 puddings (conflicting wording; note that the placeholder comment also refers to this, and should also say 'snr_manager_id' instead of 'senior_manager_id'). - Unspecified how top 5 offenders are chosen if there are ties for 5th place. - There are cases where multiple puddings are taken at the same instant (probably shouldn't be allowed, because it would be unclear who took the last pudding). I'm also pretty certain that the model answer is incorrect (regardless of how these ambiguities are interpreted). Please check this; I'd be happy to send you my code. If the focus is on coming up with the SQL queries rather than getting all the fine details correct, consider adding (optional) intermediate stages to help users check their intermediate results, because debugging based on the final result is difficult. It would be nice if a model solution was shown after solving the challenge, to compare and learn. Finally, I think you should ask the user for permission before publishing their score on the leaderboard.
The problem with the complex edges of SQL are like regex for me: the problem isn’t whether I can figure it out once, it’s retaining it when you only need it once every 1-3+ months. For those uses I just accept that I won’t and don’t need to remember it, and will look it up when I need it.
There is something to be said for learning the edges at least once so you can “know what you don’t know” when you forget.
This would make for a great talk at the polyglot Carolina Code Conference in August in my opinion. You should consider submitting a talk. Ideal for a mixed audience where SQL is such an important constant.
Comments (117) 43 threads
Earlier commentshttps://mystery.knightlab.com/
https://hanukkah.bluebird.sh
There are several ambiguities in the "pudding" challenge.
- Unclear if offenders are defined as taking >2 puddings or >=2 puddings (conflicting wording; note that the placeholder comment also refers to this, and should also say 'snr_manager_id' instead of 'senior_manager_id').
- Unspecified how top 5 offenders are chosen if there are ties for 5th place.
- There are cases where multiple puddings are taken at the same instant (probably shouldn't be allowed, because it would be unclear who took the last pudding).
I'm also pretty certain that the model answer is incorrect (regardless of how these ambiguities are interpreted). Please check this; I'd be happy to send you my code.
If the focus is on coming up with the SQL queries rather than getting all the fine details correct, consider adding (optional) intermediate stages to help users check their intermediate results, because debugging based on the final result is difficult.
It would be nice if a model solution was shown after solving the challenge, to compare and learn.
Finally, I think you should ask the user for permission before publishing their score on the leaderboard.
There is something to be said for learning the edges at least once so you can “know what you don’t know” when you forget.
https://blog.carolina.codes/p/call-for-speakers-is-now-open-...
All comments shown.
Couldn't load more comments. Check your connection and try again.