News for hackers. Stuff that matters.

gthole

Re:Ask HN: What's your quarantine side project? on Wednesday May 27, 2020 @06:49PM (#23331097)
It's deployed alright, I just don't publicize it since I only intend it for personal use.

None of the D&T recipes are fixtures, since they're technically copyright material. I set up classic cocktails as fixtures for people who want to spin up their own or play around with the repo.

Did you try standing it up locally?

Yeah the related cocktails thing is definitely an interesting problem.

Re:Ask HN: What's your quarantine side project? on Saturday May 16, 2020 @07:54AM (#23202678)
Yeah, mine is driven by Django Rest and an Angular app for the UI. I'm seriously considering moving to React, though. I just use Sqlite for the DB layer because it's easily performant enough.

I used Drink & Tell (and its sequel Drunk & Told) for the primary source of recipes, which I can't recommend more.

The "related recipes" thing is interesting. If I stick to doing it with a sql query, then I think an algorithm to pick out the base spirit, then filter on that and on whether it's shaken/stirred/scaffa, then sort by common ingredient count? Then again, an Elastic Search stack can do related objects out of the box, but I wouldn't want it to get that complex :)

Re:Ask HN: What's your quarantine side project? on Friday May 15, 2020 @09:19AM (#23191821)
This is awesome. It's a really nice layout. How do you find related cocktails? Database tagging, or some kind of a distance algorithm?

I made something similar a couple years ago: https://github.com/gthole/drink-stash

What is CocktailLove written in? I couldn't seem to dig up the source anywhere.

Gotta second where it's been said before: - Middlemarch by George Eliot - War & Peace by Leo Tolstoy

I read both of these aloud with my partner over long nights of bringing up our small children and it was the best bonding experience I could hope for. Both are packed full of observations about life and wit and wisdom, both pull for kindness and sincerity, and are unexpectedly funny in many ways.

Re:Is serverless insecure? Let's find out on Saturday August 18, 2018 @08:41PM (#17791781)
More code-review-as-feedback:

It's also probably wise to "return" the "context.done" callbacks in the try/catch so it doesn't double-callback, or otherwise get rid of that last TODO "context.done" call.