Do Not Google That! (dot com)
Late at night a few days ago in imvu.com’s secret lair, #engineering…
<Veep> from an article on an ultimate fighting controversy about a guy putting slippery stuff on to gain an unfair advantage: <Veep> Oh, and a fair word of warning to those looking to do additional research: Do not Google "oily sweat wrestling men." Just don't do it. Some things can't be unseen. <Grue> :D <Grue> That which does not kill you will make you OH GOD. <Veep> that would be a good webpage: "things you shouldn't search for on google", with http://www.google.com/search?q= links <Grue> hm, yeah. <Grue> simple apps are simple. <Grue> it's something that you need not even moderate the submission to. <Veep> No match for "DONOTGOOGLETHAT.COM". <Grue> This is a compelling application, veep. <Veep> thanks. <Grue> you calling dibs? <Veep> no, my queue of unfinished projects is large. if you want it, you can have it.
I have a problem with domain name purchasing. They’re all so pretty. Most of my domains are empty, so the idea of a fully operational site made within a few hours of coding was very appealing to me.
I haven’t had a simple project since I made my exceptionally puerile knockoff of ipchicken.com (whose sole functionality is to display $_SERVER[‘REMOTE_ADDR’] and $_SERVER[‘HTTP_USER_AGENT’] to the user, and doa ip2latlon lookup to feed to gmaps. Oh: and a
gif png of urine.). The idea of completing an “art project” website in less than half a day and throwing some ads on it to potentially make it so it can be cash-neutral for my lifetime as far as domain re-registration costs go is oddly, strangely, irrationally appealing to me. And this felt like that.
So I bought donotgooglethat.com.
And then I bought dontgooglethat.com and made donotgooglethat.com 301 redirect to this one. Because I have a problem with buying domains.
Who needs security or user auth on a site meant to provide terrible, sullied links to the underbelly of the googleverse?
I started out by ripping apart a copy of everyone’s favorite search page. After taking out a bunch of stuff (wow, they use tables!) I was left with a raw googlish-looking site. I replaced the topbar links with a few links to some of my sites, and added the minimalist google ads to the side, with a link to the real google on the right.
My goal is to be googlish but not confusable with the Real McCoy for legal reasons, so I opted not to go with any rainbow text or the google Font (Catull, for you typography nerds).
Even so, I’m wary of using the trademarked term. Worse comes to worse I’m out $14 for reg costs and have a cute story.
User Experience Decisions
I wanted to keep it damned simple. So I opted for only showing the top ten “worst” searches that were upvoted, without an option for pagination. There are no “about” pages since the links go straight to google searches, so there’s no need for SEO’d urls or concern for “losing valuable index space” by not exposing all of the content. Who cares? Not this site!
Each of the top ten links can be voted up or down. On successful vote (or failure!) you’re notified above the dontGOOGLEthat header. You can add a new search by clicking on the yellow button after entering some (hopefully offensive) text into the search box, or just by searching (done via an async post onClick of the “No Don’t Search” button).
The search results go to an adsense’d google personal search result page, which I chose to keep unbranded. The rationale here was that I want this thing to basically net $7 a year, so the least annoying way to do that would be to tie any possible revenue into the only real thing it does: making searches. Even so, I’m not pleased with the results; Google Safesearch seems to be on by default, and I couldn’t find anything (in the five minutes I scanned for it) in the customized search api to turn it off programatically or via a pref setting in adsense.
I decided to put a minimal amount of discouragement for vote-hammering by putting a session-based lock on votes in. However, anyone with half a brain and an ounce of desire can get around it. Really: I don’t care. Should I start caring, it wouldn’t be that hard to fix it or just disable voting…
To get a small amount of churn, the most recent search shows up at the bottom with a googlish New! next to it, and the option to upvote it there.
Also to promote searching, I did the same very simple trick google did to up their revenue long ago: a
on page load. This just puts the cursor straight into the search form, so when you load the page and type, the input goes straight there. Such a tiny trick, and it netted them millions and millions more dolars in revenue. And it improved the user experience.
MySQL Database: One table. Three fields: id, query, and votes. Trivial.
Two queries per page load: one to get the top ten votes, one to get the most recent post. The votes field has an index (normal), so both queries are optimally cheap.
One of two optional queries per page load: an insert of a new search term or an up/down vote. The insert actually is two queries: one to see if a search already exists, and if it doesn’t: do an insert (and if it does, and you haven’t already voted on it, upvote it!).
There is only the main index and the About page, and the about page has no preprocessing logic.
The index weighs in at 12kb, and 297 lines.
A few tests shows that the main index presently renders in 0.008s from a cold start and in 0.001s afterwards. I assume this 8x speedup is just Filesystem or OS or MySQL or Apache level caching, since I sure didn’t put any caching in myself.
The whole operation was 4 hours top to bottom, sans tweaks here and there for the past few days. This is roundtrip from registration, administrative stuff like editing my dns entries, apache conf files, setting up the database user, setting up an adsense and analytics account, and then implementation. The actual coding part was between 60 and 120 minutes, mostly debug stemming from sandbox/server inconsistencies. A lot of time was also wasted talking to the girlfriend on gtalk.
For contrast, this blog post has taken about 90 minutes in a text editor, and currently weighs 8kb. The line count is lower, but the lines are far longer; English is a less concise language than PHP… but even English is more internally consistent than PHP.
And that’s it!
I’d like to see if it gets some use, but I’m not exactly sure who to expose it to to see if anyone cares. I thought about posting it to 4chan, but I don’t think it’s got enough shock value for that, especially since it defaults to safesearch.
Even if it rots in obscurity, though, it’s a tiny completed work, so I’m all good by it.
If anyone has any comments or suggestions: please leave them!