exchgr/SlamWhale — pull request #9 by x (2014-03-15 06:48:04+00:00)
Title: I rewrote SlamWhale

@exchgr @bilalq @MrJaeger

Gentleman,

Three years ago we made what was probably the best Hackathon project any of us have ever done. Since then it's fallen to shambles. Hoping to restore SlamWhale to it's past glory I put a couple nights into rebuilding it from scratch.

* Front-end is pure.css.
* Main rhyme API and the static file serving is express.
* I'm subscribing to a sample of live tweets coming in and storing them in mongo. I'm only storing one tweet per last-word, and I'm using it's hash as the _id field to get a free index (gotta keep it under 500mb for free mongohq).
* Still using rhymebrain for rhyming words.
* Using a standard linux dictionary to validate the last words of tweets coming in (this acts as a database cap)
* This reduces the codebase from 1,400 lines to 202

I have a live version on heroku here
http://afternoon-badlands-4624.herokuapp.com/

My one major issue is that mobile looks like shit, but I'm too tired to get to it right now.

In the future I think it'd be worth storing on last-word and syllable count, though I'm not sure how we'd get that just yet. Let me know what you guys think.