<pedrocorreia.net ⁄>
 

<How to Shoot Yourself in the Foot in Any Programming Language ⁄ >




clicks: 224 224 2006-10-04 2006-10-04 goto entretenimento myNews entretenimento  Bookmark This Bookmark This


The proliferation of modern programming languages (all of which seem to have stolen countless features from one another) sometimes makes it difficult to remember what language you're currently using. This guide is offered as a public service to help programmers who find themselves in such dilemmas.

C
You shoot yourself in the foot.

C++
You accidentally create a dozen clones of yourself and shoot them all in the foot. Providing emergency medical assistance is impossible since you can't tell which are bitwise copies and which are just pointing at others and saying, "That's me, over there."

JAVA
After importing java.awt.right.foot.* and java.awt.gun.right.hand.*, and writing the classes and methods of those classes needed, you've forgotten what the hell you're doing.

Ruby
Your foot is ready to be shot in roughly five minutes, but you just can't find anywhere to shoot it.

PHP
You shoot yourself in the foot with a gun made with pieces from 300 other guns.

ASP.NET
Find a gun, it falls apart. Put it back together, it falls apart again. You try using the .GUN Framework, it falls apart. You stab yourself in the foot instead.

SQL
SELECT @ammo:=bullet FROM gun WHERE trigger = ‘PULLED';
INSERT INTO leg (foot) VALUES (@ammo);

Javascript
YOu've perfected a robust, rich user experience for shooting yourself in the foot. You then find that bullets are disabled on your gun.

CSS
You shoot your right foot with one hand, then switch hands to shoot your left foot but you realize that the gun has turned into a banana.

BASIC
Shoot yourself in the foot with a water pistol. On big systems, continue until entire lower body is waterlogged.

Visual Basic
You'll shoot yourself in the foot, but you'll have so much fun doing it that you won't care.

Prolog
You tell your program you want to be shot in the foot. The program figures out how to do it, but the syntax doesn't allow it to explain.



este é só um excerto do artigo, para aceder ao artigo completo, clique no link em baixo:
this is just a small excerpt from the article, to access the full article please click in the link below:

http://www.fullduplex.org/humor/2006/10/how-to-shoot-yourself-in-the-f...




Subscribe News RSS  Subscribe News Updates by E-mail





myNews <myNews show="rand" cat="entretenimento" ⁄>

21 Laws of Computer Programming

As any experienced computer programmer knows, there are unwritten laws that gove (...)

clicks: 200 200 2008-06-17 2008-06-17 goto url (new window) devtopics.com/2... goto myNews entretenimento


O mistério do Bilhete de Identidade

Com grande probabilidade o leitor terá já assistido, no meio de um jantar com am (...)

clicks: 231 231 2007-12-03 2007-12-03 goto url (new window) mat.uc.pt/~pica... goto myNews entretenimento


Ficheiros Secretos: novo filme já tem nome

"The X-Files: I want to believe" estreia a 25 de Julho nos EUA O novo filme dos (...)

clicks: 349 349 2008-04-19 2008-04-19 goto url (new window) cinema.iol.pt/n... goto myNews entretenimento


95 Old School Games You Can Play Online

Remember the classic video games? The 8-bit masterpieces of our sweaty-palmed yo (...)

clicks: 42 42 2008-12-24 2008-12-24 goto url (new window) amog.com/tech/g... goto myNews entretenimento


30+ Reasons Why All Programmers Are Schizophrenics

A few days back, I was lazily browsing the net - when suddenly I discovered that (...)

clicks: 192 192 2007-11-09 2007-11-09 goto url (new window) blog.binnyva.co... goto myNews entretenimento


10 Signs You Are Working Too Much

At the moment everyone in the Australian web industry is saying the same thing. (...)

clicks: 218 218 2007-12-12 2007-12-12 goto url (new window) manwithnoblog.c... goto myNews entretenimento


Famous tech myths that just won't die

One day, Bill Gates was standing on a street corner, watching the clouds roll by (...)

clicks: 132 132 2008-10-09 2008-10-09 goto url (new window) computerworld.c... goto myNews entretenimento


An epic Bill Gates e-mail rant

For the opening piece in our series on Gates leaving daily life at Microsoft, on (...)

clicks: 224 224 2008-06-26 2008-06-26 goto url (new window) blog.seattlepi.... goto myNews entretenimento