Laburo España: 250.000 ofertas de empleo

Linoge's Freak

Martes, 07 de junio de 2005

Evolución del Programador

Primer año en la Universidad:
10 PRINT "HELLO WORLD"
20 END

Segundo año en la Universidad:
program Hello(input, output)
begin
writeln('Hello World')
end

Último año en la Universidad:
(defun hello
(print
(cons 'Hello (list 'World))))

Recién graduado:
#include void main(void)
{
char *message[] = {"Hello ", "World"}; int i;
for(i = 0; i < 2; ++i)
printf("%s", message[i]);
printf("\n");
}

Profesional con experiencia:
#include #include class string
{
private:
int size;
char *ptr;
public:
string() : size(0), ptr(new char('\0')) {}
string(const string &s) : size(s.size)
{
ptr = new char[size + 1];
strcpy(ptr, s.ptr);
}
~string()
{
delete [] ptr;
}
friend ostream &operator <<(ostream &, const string &);
string &operator=(const char *);
};
ostream &operator<<(ostream &stream, const string &s)
{
return(stream << s.ptr);
}
string &string::operator=(const char *chrs)
{
if (this != &chrs)
{
delete [] ptr;
size = strlen(chrs);
ptr = new char[size + 1];
strcpy(ptr, chrs);
}
return(*this);
}
int main()
{
string str;
str = "Hello World";
cout << str << endl;
return(0);
}

El aprendiz del Hacker:
#!/usr/local/bin/perl
$msg="Hello, world.\n";
if ($#ARGV = 0) {
while(defined($arg=shift(@ARGV))) {
$outfilename = $arg;
open(FILE, "" . $outfilename) || die "Can't write $arg: $!\n"; print
(FILE $msg);
close(FILE) || die "Can't close $arg: $!\n";
}
} else {
print ($msg);
}

El Hacker con algo de experiencia:
#include #define S "Hello, World\n"
main(){exit(printf(S) == strlen(S) ? 0 : 1);}

Hacker maduro:
% cc -o a.out ~/src/misc/hw/hw.c
% a.out

Hacker "Gurú":
% cat
Hello, world.
^D

El Nuevo Ejecutivo:
10 PRINT "HELLO WORLD"
20 END

El Manager de nivel intermedio:
mail -s "Hello, world." bob@b12
Bob, puedes escribirme un programa que diga "Hello, world."?
Lo necesito para mañana.
^D

El manager de nivel superior:
% zmail jim
Necesito un programa "Hello, world." para esta tarde.

El Presidente de la Compañía:
% letter
letter: Command not found.
% mail
To: ^X ^F ^C
% help mail
help: Command not found.
% maldicion!
!: Event unrecognized
% logout

Por: Linoge | Humor Informático | Comentarios (0) | Referencias (0)

Comentarios

Comentar


Recordar datos

LaInformacion.com lainformacion.com - Medio Oficial de los Premios Bitacoras 2009