martes, 4 de noviembre de 2008

mas friki imposible

A veces, que digo, muchas veces a los que trabajamos con el ordenador y la programación nos es difícil desconectar de este mundo y sin darnos cuenta comenzamos a hablar otro lenguaje para comunicarnos. Ya no usamos ni preguntas ni exclamaciones. Para ello usamos pseudo-codigo. A veces ocurre por la mañana, otras bien entrada la tarde. A continuación os voy a dar una muestra de ello. Más de alguno/a se preguntará si estamos locos o se nos va la olla, simplemente es una forma de llevar mejor el día a día en el curro.

BASIC

Michał Ligarski:
10 LET RESULT$
20 PRINT "Do you want to drink coffee now? (Y/N)"
30 INPUT RESULT$
40 IF UCASE(RESULT$) = "Y" THEN
50 PRINT "Vamos todos a cafe"
60 ELSE
70 PRINT "I am falling asleep, zzzzzzzz"
80 END IF RUN
pipe : ACK!

SQL y JavaScript

Michał Ligarski:
select wants_coffee from winuel.workers where first_name = 'Felipe' and last_name = 'Melero';
pipe :
send.redirect(http://www.quierocafe.ya/?wants_coffe=si);
Michał Ligarski:
update worker set state = 'coming to kitchen' where last_name in ('Melero', 'Ligarski');

Java / .Net / natural language

pipe :
boolean hungry = false;
if(ligarski.isHungry()) hungry = true;
else hungry = false;
pipe : tio, could you give me the result of ligarski.isHungry() to update my variable?
Michał Ligarski:
try { hungry = ligarski.isHungry(); } catch (Exception ex) { MessageBox.Show("Nie wiadomo, czy jest głodny!"); }
Michał Ligarski: there was an exception
pipe : holender
pipe : melero.isHungry is true
Michał Ligarski: do you wanna eat right now?
pipe : returns true since 2 hours
Michał Ligarski: wait 5 miutes

1 comentario:

Unknown dijo...

Puta Madre! Thats's good! really good. IT sense of humor ;-) U are not very busy in the "HUH" :-P

Creative Commons License