miércoles, 21 de junio de 2017

Humor gráfico: Programming is fun


Se le pidió a un programador que escribiera una función para obtener la fecha del día de mañana. La función que escribió aparece arriba y consiste en esperar un día (86400 segundos) y entonces obtener la fecha del día actual.

A programmer was asked to write a function to get the date for tomorrow. The function you wrote appears above and consists of waiting for a day (86400 seconds) and then getting the date of the current day.



Función para generar un número aleatorio. Siempre retorna 4, un valor que se obtuvo arrojando un dado al azar.

Function to generate a random number. Always returns 4, a value that was obtained by throwing a die at random.



Lo que afirman los usuarios de la programación orientada a objetos y lo que realmente sucede.

What users say about object-oriented programming and what actually happens.



Esta es la función "Mi ciclo de vida". Consiste en comer, dormir, programar. La función "Divertirse" nunca es llamada.

This is the "My Life Cycle" function. It consists of eating, sleeping, programming. The "Fun" function is never called.

No hay comentarios:

Publicar un comentario