News for hackers. Stuff that matters.
Re:Show HN: Doomguy as a Service by tinco on Saturday October 05, 2013 @05:49PM (#6502215)
Though I think GP is being a bit of an idiot, I read your source and I was a little surprised. The app only consists of static files, yet you run every request through a rack app that does nothing but send the static files (except for the indexing of the face files, which could've been done ahead of time too).

Why?

Re:Show HN: Doomguy as a Service by ejfinneran on Saturday October 05, 2013 @05:55PM (#6502230)
The idea was that the image URL could just be a number between 0 and 100 and the app would handle translating that to 1 of 5 possible images.

If I just served a file for every possible number, the browser would have to potentially download 20x the data.