« červenec 2009
PoÚtStČtSoNe
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
  
       
Today

Navigation

Speaker Profile
Roumen's Weblog
Login
Sun Bloggers
Technorati Profile

Am I popular?

Today's Page Hits: 2416

Contacts

Name: Roman Strobl
E-mail: roman dot strobl
at sun dot com

NetBeans

Java Sites

Javalobby
The Server Side
Java Tips
Java Blogs
java.net
java.sun.com
java.cz

Blogs

NetBeans:
Geertjan
Brian Leonard
Gregg Sporar
Lukas Hasik
Ludovic Champenois
Vincent Brabant
Alexis Moussine-Pouchkine
Jullion-Ceccarelli
Tom Ball
Tim Boudreau
Jesse Glick
Petr Blaha
Ruth Kusterer
Jara Uhrik
xzajo
Jan Lahoda
James Branam
nbextras.org

Sun:
Kazem - bug cartoons ;-)
Tor Norbye
Romain Guy
James Gosling
Chief Gaming Officer
Bill Vass
Jim Grisanzio
Jonathan Schwartz

Planets:
Planet Netbeans
Planet Sun
Planet Eclipse

Other:
netbeans-blog.org
Joel Spolsky
Bruce Eckel

License info

Creative Commons License
This work is licensed under a Creative Commons License.

Recent Entries

Map of visits

Locations of visitors to this page
« Interesting blogs... | Main | Questions from Tech... »
20070920 Čtvrtek září 20, 2007
How to kill a dragon with various programming languages

This funny text comes from Ibon from the dream team who got it from a Spanish blog.

There's a beautiful princess, prisoner in the highest tower of a castle, guarded by a mighty dragon, and a fearless knight must rescue her…

This is how each language would manage to rescue the princess from the hands of the dragon

Trackback URL: http://blogs.sun.com/roumen/entry/how_to_kill_a_dragon
Comments:

That was a good one!!!

Posted by Paris Apostolopoulos on září 20, 2007 at 10:46 dop. CEST #

Really funny, thanks for that :)

Posted by speps on září 20, 2007 at 12:31 odp. CEST #

Yes really funny. Fortran does everything and java takes the money and run...

Posted by karpidis on září 20, 2007 at 01:06 odp. CEST #

ksh93 shell: The programmer creates a huge simulation prototype written in ksh93 at home on his Solaris 11/Nevada B72 machine to figure out the best options to kill the dragon but when we goes and tries to kill the dragon he learns that his Solaris 8 installation in his battle horse only has ksh88 installed which doesn't support floating-point math, compound variables or associative arrays and won't run the script.
The dragon breaks his bones, bites off the head and drinks the blood.

Posted by Roland Mainz on září 20, 2007 at 06:40 odp. CEST #

Hi Roumen. I have from credible sources that this originated from Brazilian programmers Daniel Quirino, Fernando Camargo and Marihelen Santos. It was first published on Marihelen's blog at http://marihelen.blogspot.com/2005/07/programadores-e-dragoes.html .

Posted by Rafael de F. Ferreira on září 20, 2007 at 07:15 odp. CEST #

Good... credits go to them! Great fun!

Posted by Roumen on září 20, 2007 at 07:17 odp. CEST #

LOLZ LOLZ LOLZ!!! Hey, Netbeans 6 rocks!!! More power!

Posted by ispampaw on září 20, 2007 at 07:57 odp. CEST #

[Trackback] This funny text comes from Ibon from the dream team who got it from a Spanish blog. There's a beautiful princess, prisoner in the highest tower of a castle, guarded by a mighty dragon, and a fearless knight must rescue her… This is how each lang[...]

Posted by someone on září 21, 2007 at 09:13 dop. CEST #

ColdFusion: Calls the "CFKillDragon" tag....and gets busy with the princess :-)

David

Posted by David on září 21, 2007 at 04:00 odp. CEST #

Python:
Cleverly crafts a dragon killing solution in 1/10th the time and effort of most other warriors. Arrives at the dragon's lair and the princess is instantly smitten with his charm, good looks, and well formatted source code. Unfortunately, just prior to execution of the beast the kingdom retracts project funding since the solution is not "enterprisey" enough and the dragon eats him.

Posted by Matt on září 21, 2007 at 04:11 odp. CEST #

LMAO

Posted by maliboo on září 21, 2007 at 07:49 odp. CEST #

Great post. I'm gonna add this:
Actionscript: Create a dragon class with a killDragon method attached to a dragon getting killed animation with Flash. Execute the method and half the way through the animation the Internet Explorer crashes…

I published it in my blog: http://blog.flashcolony.com

Posted by Saleh on září 21, 2007 at 09:52 odp. CEST #

Perl: The programmer kills the dragon using as few strokes as possible. The princess later kicks him out of bed for insisting that There is More than One Way to Do It.

Posted by Martin DeMello on září 25, 2007 at 06:31 odp. CEST #

You don't actually know what Ruby is, do you?

Posted by Tom on září 26, 2007 at 03:17 dop. CEST #

I hate to be a nit-picker, but for C.. Linux kernel development is managed with git, not CVS.

=)

Posted by russell ryan on září 28, 2007 at 09:10 dop. CEST #

hahahaa :D

Posted by Arman on říjen 05, 2007 at 08:01 dop. CEST #

python:
you throw a sword. it kills the dragon. the princess invites you into her room.

Posted by kevin on říjen 05, 2007 at 10:49 odp. CEST #

Python: Spends 5 minutes reciting the documentation that will bless the dragon killing routine, and executes in the name of superior programming. Dragon slain, the real villain appears in the princess' window hurling ridiculous insults at the programmer. The coding warrior quickly writes a siege-engine, but just before he can execute it, he is arrested for murdering the narrator.

Posted by Brandon on listopad 29, 2007 at 12:54 dop. CET #

Perl:
You write a program that only you understand. You show the code to the dragon, he can't understand all those '@'s, '$'s, '$'_s, gets bored and kills himself. So does the princess.

Posted by André on leden 04, 2008 at 11:18 odp. CET #

This reminds me of the post about which boat is that programming language.

http://www.codesplunk.com/?s=c

Posted by Pascal on červenec 30, 2008 at 01:28 dop. CEST #

Python: realizes that dragons and snakes are both reptiles. Refuses to kill family member. Uses dragon's fire to cook princess and share a meal with dragon.

Posted by Henry Miller on září 30, 2008 at 04:10 odp. CEST #

Perl: s/dragon//

Posted by DarkoP on září 30, 2008 at 04:57 odp. CEST #

APL: kills dragon with just a single poop. But then princess takes sword and kills APL, because he is such pervert.

Posted by APL on leden 27, 2009 at 01:28 odp. CET #

Post a Comment:

Name:
E-Mail:
URL:

Your Comment:

HTML Syntax: NOT allowed


    Disclaimer: The contents of my blog represent my personal opinions which may differ from official views of my employer, Sun Microsystems.