davidad

18-year-old Ph.D. student at MIT,
studying the nature of human cognition through programming language theory;
amateur photographer and musician

permalink

Like, Python

#!usr/bin/python
uh from sys import exit

# Grab the user's name. 
ok so like name = raw_input("yo! what's your name?") right
  
# Make sure they entered something, then say hi.
if name.strip() is actually like "":
   toootally just exit()
else:
   um yeah
   print like "Hi %s, nice to meet you." % name

Somebody actually implemented this dialect of Python.

permalink “So now you all know the value of gah.” -Avanti Shrikumar

“So now you all know the value of gah.” -Avanti Shrikumar

permalink

Explanations of selected Java exceptions

IllegalThreadStateException: One of the screws in your computer is threaded the wrong way.

CloneNotSupportedException: You are a clone. Find the original you, tell him what you want to do and then kill yourself.

ArrayStoreException: You have used up all your arrays and need to buy more from the array store.

EmptyStackException: In order for Java to work, you must have a stack of Java books on your desk. Actually, one is enough if it is really thick.

MimeTypeParseException: You are a bad mime. No one can understand what you’re supposed to be. Try something easier, like walking-against-the-wind or trapped-in-an-invisible-box.

NotActiveException: This can mean two things. Either something is inactive and needs to be active, or something is active and needs to be inactive. Activate and inactivate things randomly until things work.

Read More