Coding is a Text Adventure
Wired News is running a story about a new approach to crossover working and gaming turning your coding into a MUD-style adventure. Playsh is a "narrative-driven 'object navigation' client, operating primarily on the semantic level, casting your hacking environment as a high-level, shell-based, social prototyping laboratory, a playground for recombinant network toys." Great, now they are combining two of the most horrible addictions in my life.
So the "Person" class is the main adventurer. While he is running through the tunnel to the mainframe lands, he hear's a request from someone calling themselves "User" that states he must first solve a puzzle for reformatting these characters to the one expected by the mainframe giants. 10/14/1999
Later, our hero Person signs up for a banking account and pays his credit card bills using the AutoBillPay spell. Person is then kiilled by the surcharge monster.
Unhandled Exception: You have been eaten by a grue.
You are in a maze of twisty subroutines, all alike. You may be eaten by a deadline.
No no no, you're doing it all wrong.....
"INSERT INTO Door (Keyhole) VALUES ('KEY') WHERE Door.Locked = 1"
"UPDATE Monster SET Monster.Dead = 1"
"INSERT INTO Inventory (SELECT Loots FROM Monster WHERE Monster.IsDead = 1)"
"UPDATE Princess SET Princess.Saved = 1"
I win! That means...
"SELECT Baby FROM Hero INNER JOIN Princess"
"You will pay for your lack of vision..." - Emperor Palpatine to Ray Charles
"SELECT Baby FROM Hero INNER JOIN Princess"
Am I the only one here that has never seen SQL porn before?
if vegetarians eat vegetables why are cannibals not humanitarians.
would the join clause details be considered pornography?
(the following contains pornographic material, viewer discretion is advised)
SELECT Baby FROM Hero INNER JOIN Princess ON Hero.Sausage = Princess.Taco
I suppose that wouldn't quite be right, since we all know that sausages do not equal tacos. Well... I suppose some people might be confused.
Maybe it would be better written as
INSERT INTO Princess (Taco) SELECT Sausage FROM Hero WHERE Hero.id = 'me'
This also has the advantage of not producing a Baby result.
Additionally, for those of you who don't have a Princess, you can create one by using the SELECT...INTO statement. But this method suggests transvestite/transgender properties, as explained below.
SELECT Sausage INTO Princess FROM Hero WHERE Hero.id = 'me' (results in Princess having a Sausage, transvestite results)
or
SELECT Sausage AS Taco INTO Princess FROM Hero WHERE Hero.id = 'me' (results in Princess having a Taco, but you're calling your Sausage a Taco, transgender indications)