«
»

Software

How to shoot yourself in the foot using a functional programming language

03.09.10 | Comment?

While preparing for a presentation on Scala, I added some jokes on the functional languages. Here’s the original version and the new editions

Erlang
You create a dozen clones of youself, pass the gun to one another in turn to shoot at each other’s foot

Python
You have to align your foot 10 steps below the gun for it to work

Ruby
You pull the trigger to find popcorns popping out of the gun. Someone somewhere has just made all guns shoot popcorns.

Haskell
Close your eyes and picture a gun in your mind. Think about the foot being shot. Open your eyes. You found your foot shot. No sound. No smell. No one else even noticed.

Scala
You pull the trigger and you got shot. You stab your foot with the gun and you got shot.

Tags:

have your say

Add your comment below, or trackback from your own site. Subscribe to these comments.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">

:

:


«
»