Sponsored Content
The Lounge What is on Your Mind? Post Your Favorite Joke! Laugh a Little! Post 302304258 by blowtorch on Monday 6th of April 2009 02:07:33 AM
Old 04-06-2009
Not a joke per se, but nice bit of geek humor (I'm pretty sure everyone's read this, but here goes).

How to Shoot Yourself In the Foot:

C
You shoot yourself in the foot.
C++
You accidently create a dozen instances 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."
FORTRAN
You shoot yourself in each toe, iteratively, until you run out of toes, then you read in the next foot and repeat. If you run out of bullets, you continue anyway because you have no exception-handling facility.
Modula-2
After realizing that you can't actually accomplish anything in this language, you shoot yourself in the head.

COBOL
USEing a COLT 45 HANDGUN, AIM gun at LEG.FOOT, THEN place ARM.HAND.FINGER on HANDGUN.TRIGGER and SQUEEZE. THEN return HANDGUN to HOLSTER. CHECK whether shoelace needs to be retied.

PERL
You stab yourself in the foot repeatedly with an incredibly large and very heavy Swiss Army knife.

Assembly Language
You crash the OS and overwrite the root disk. The system administrator arrives and shoots you in the foot. After a moment of contemplation, the administrator shoots himself in the foot and then hops around the room rabidly shooting at everyone in sight.
 

6 More Discussions You Might Find Interesting

1. What is on Your Mind?

Post Your Favorite UNIX/Linux Related RSS Feed Links

Hello, I am planning to revise the RSS News subforum areas, here: News, Links, Events and Announcements - The UNIX Forums ... maybe with a subforum for each OS specific news, like HP-UX, Solaris, RedHat, OSX, etc. RSS subforums.... Please post your favorite OS specific RSS (RSS2) link... (0 Replies)
Discussion started by: Neo
0 Replies

2. What is on Your Mind?

This will make you laugh.

Some of you may have seen this on other websites. But if you havnt this is great. It could actually be one of you here. Being in the IT Industry I have seen it ALMOST to this extent. The Website is Down!!! My Networks Down - FIX IT! :b: (0 Replies)
Discussion started by: Ikon
0 Replies

3. Web Development

Post Your Favorite FireFox Add-Ons Here

In an earlier poll I was a bit surprised to learn that FireFox was so popular, over 95% have voted for FireFox to date. So, let's take a little time and please list your favorite, most useful, FireFox add-ons (with links to the add-on) and add a few words on how often and how useful do you find... (17 Replies)
Discussion started by: Neo
17 Replies

4. What is on Your Mind?

Contagious Laugh

If you watch this and dont laugh, something is very wrong with you. Contagious Laugh .:b: (0 Replies)
Discussion started by: Ikon
0 Replies

5. What is on Your Mind?

Very Funny - Had to laugh

Guys, This is funny. http://i28.photobucket.com/albums/c228/jralph2005/bart.png jaysunn (2 Replies)
Discussion started by: jaysunn
2 Replies

6. UNIX for Beginners Questions & Answers

Is it a joke or a command?

Hello, I have found some commands in a forum under "top ten unix commands" topic and I'd like to ask: what does below command do: Could it really be a command or a joke? :(){ :|:& };: Thanks Boris (6 Replies)
Discussion started by: baris35
6 Replies
Method::Alias(3pm)					User Contributed Perl Documentation					Method::Alias(3pm)

NAME
Method::Alias - Create method aliases (and do it safely) SYNOPSIS
# My method sub foo { ... } # Alias the method use Method::Alias 'bar' => 'foo', 'baz' => 'foo'; DESCRIPTION
For a very long time, whenever I wanted to have a method alias (provide an alternate name for a method) I would simple do a GLOB alias. That is, # My method sub foo { ... } # Alias the method *bar = *foo; While this works fine for functions, it does not work for methods. If your class has a subclass that redefines "foo", any call to "bar" will result in the overloaded method being ignored and the wrong "foo" method being called. These are basically bugs waiting to happen, and having completed a number of very large APIs with lots of depth myself, I've been bitten several times. In this situation, the canonical and fasest way to handle an alias looks something like this. # My method sub foo { ... } # Alias the method sub bar { shift->foo(@_) } Note that this adds an extra entry to the caller array, but this isn't really all that important unless you are paranoid about these things. The alternative would be to try to find the method using UNIVERSAL::can, and then goto it. I might add this later if someone really wants it, but until then the basic method will suffice. That doing this right is even worthy of a module is debatable, but I would rather have something that looks like a method alias definition, than have to document additional methods all the time. Using Method::Alias Method::Alias is designed to be used as a pragma, to which you provide a set of pairs of method names. Only very minimal checking is done, if you wish to create infinite loops or what have you, you are more than welcome to shoot yourself in the foot. # Add a single method alias use Method::Alias 'foo' => 'bar'; # Add several method aliases use Method::Alias 'a' => 'b', 'c' => 'd', 'e' => 'f'; And for now, that's all there is to it. METHODS
import from => to, ... Although primarily used as a pragma, you may call import directly if you wish. Taking a set of pairs of normal strings, the import method creates a number of methods in the caller's package to call the real method. Returns true, or dies on error. SUPPORT
Bugs should always be submitted via the CPAN bug tracker <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Method-Alias> For other issues, contact the maintainer AUTHORS
Adam Kennedy <cpan@ali.as> SEE ALSO
<http://ali.as/> COPYRIGHT
Copyright 2004, 2006 Adam Kennedy. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. The full text of the license can be found in the LICENSE file included with this module. perl v5.8.8 2006-07-15 Method::Alias(3pm)
All times are GMT -4. The time now is 05:00 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy