Location selector
adevinta.es
Location selector Location selector

Celebramos el día del programador con un reto

  • twitter
  • linkedin
  • facebook
  • email

 

El 12 de septiembre es el Día del Programador/a y lo hemos celebrado con un reto. ¿Cuál? Compartiendo un "HelloWorld" implementado en cualquier lenguaje/dispositivo. ¡El resultado ha sido un aluvión de respuestas! Unas 50 propuestas de lo más variadas. Incluso algunos de vosotros habéis aportado diferentes ideas. Muchas gracias a todos y todas por sumaros y por la creatividad en las respuestas.

  • Carlos Moreno

#include <stdio.h>

int main()

{

printf("Hello World");

return 0;

}

  • Sergi Alba (python)

print("Hello World")

  • Eduardo Bellido

Micro:bit Edition

En Cobol

000100 IDENTIFICATION DIVISION.

000200 PROGRAM-ID. HELLOWORLD.

000300 PROCEDURE DIVISION.

000400    DISPLAY 'Hello world!'.

000500    STOP RUN.

  • Adrián Delgado

.data

texto: .asciiz "Hola Mundo"

.text

.globl main

main:

la $a0, texto

li $v0, 0x00000004

syscall

  • Fabio Venni

<!doctype html>

Hello world

 

#!/usr/bin/perl

use strict;

use warnings;

use CGI;

my $q = CGI->new;

print $q->header;

print "Hello World!";

  • Joan

01101000 01100101 01101100 01101100 01101111 00100000 01110111 01101111 01101100 01100100

  • Emili García

++++++++++[>+++++++>++++++++++>+++<<<-]>++.>+.+++++++

..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.

  • Óscar Gómez

En javascript

__=String['fromCharCode'];[72,101,108,108,111,32,87,111,114,108,100,33].map(_=>__(_)).reduce(($,$_)=>$+$_)

  • Agustin Bosso

En Befunge

>25*"!dlrow ,olleH":v

v:,_@

>  ^

  • Manel Montilla

En Modula 2

MODULE HelloWorld;

FROM Terminal2 IMPORT WriteString;

BEGIN

WriteString("Hello world ");

END HelloWorld.

  • Roman Campa

.... . .-.. .-.. --- / .-- --- .-. .-.. -..

  • Juan Pablo Ascheri

from tkinter import messagebox

messagebox.showerror("Python","Hello World")

  • Wanda Luciana Delisio

(

public static void main(String[] args)

(

System.out.println("Hello September!");

))

  • Miguel Angel Martin

#!/usr/bin/perl

print("Hell. Oh my world, why Perl???");

Con Flowchart

 

 

 

 

 

  • Victor Hidalgo

En hodor-lang

$HODOR: hhodor? Hodor!? Hodor!? oHooodorrhodor orHodor!? d = HoDoRHoDoR () {

hodor.hod('Hhodor? Hodor!? Hodor!? o HODOR!? orHodor!? d!');

};

hhodor? Hodor!? Hodor!? oHooodorrhodor orHodor!? d();

  • Gastón Fernández

<html>

<head>

<title>Contest</title>

</head>

<body>

<?php echo '<p>Hello World</p>'; ?>

</body>

</html>

  • Jordi García

println("hello world")

  • Kai Hu

IT'S SHOWTIME

TALK TO THE HAND "hello world"

YOU HAVE BEEN TERMINATED

java -jar ArnoldC.jar hello.arnoldc

java hello

  • Jose Aguilera

En Pascal

program hello_world;

begin

write('Hello World!');

end.

  • Roberto Gómez

#include <iostream>

using namespace std;

int main () {

cout << “Hello Adevintians” << endl;

system (“pause”) ;

return 0;

}

  • Roger Viñas

En awk

echo "Say something" | awk '{print "Hello world!"}'

En PowerShel

$message = "== Hello World! ================================"

$rainbow = @("Red", "DarkYellow", "Yellow", "Green", "Cyan", "DarkBlue", "DarkMagenta")

foreach ($color in $rainbow) {

Write-Host -ForegroundColor $color $message

}

En html5 canvas

 

Vía kafka 

❯ kafkacat -b localhost:9094 -t pub.adevinta.messages -P /tmp/message

❯ kafkacat -b localhost:9094 -t pub.adevinta.messages -C

Hello world!

¡Hello World en la calefacción! 

 

 

  • Francesco Rainone

helloworld.bas

10 PRINT "HELLO WORLD!"

20 GOTO 10

RUN

  • Xavier Lario

fn main() {

println!("Hello World!");

}

  • Maicon Costa

package main

import (

"fmt"

"time"

)

func main() {

go func() { fmt.Printf("Hello ") }()

go func() { fmt.Printf("World ") }()

time.Sleep(100)

}

  • Lorens Kockum

"Hello world!"

Duh.

OK,

'Hello' ' ' 'world' '!' + + +

Or maybe…

[ [ "!" 4 ] [ "Hello" 1 ] [ "Nobody" 0 ] [ "World" 3 ] [ " " 2 ] [ "Extra" 0 ] ] // Could load a few TB from Hadoop of course

<% 1 GET %> SORTBY // Sort the keys according to the values

<% 1 GET 0 != %> FILTERBY // Remove the keys with value zero

<% DROP 0 GET %> LMAP // Keep only the keys

LIST-> 2 SWAP <% DROP + %> FOR // Sum the elements from the list

  • Sebastian Gomez

  • Joan León

En Processing

void setup() {

size(500,400);

}

void draw() {

background(10, 80, 100);

ellipse(mouseX, mouseY, 80, 80);

}

Hello World con OpenCV y Python

import cv2

image = cv2.imread("image.jpg")

cv2.imshow("window", image)

print "Hello World ?"

cv2.waitKey(0)

En ActionScript 3

import flash.display.Sprite;

public class Main extends Sprite {

public function Main() {

super();

trace("Hello World");

}

}

En Git

$ git init

$ echo "Hello World" > HelloWorld.txt

$ git add .

$ git commit -m "Hello World first commit"

$ git log

commit f4b610c9e40a5c90ff87b82895b8d507e9fb68de (HEAD -> master)

Author: Joan León | @nucliweb

Date:   Tue Sep 8 18:21:37 2020 +0200

Hello World first commit

$

 

Hello World in CSS Pixel Art

  • Alejandro González

En ColdFusion

<cfset txt = "Hola mundo!">

<cfoutput>#txt#</cfoutput>

 

  • Oscar Ramírez

  • David Garcia

En Arexx

/**/

do forever

say "Hello, world!"

end

  • Pedro Jose Martinez

En Logo

hideturtle

fd 20 left 180

fd 40 left 180

fd 20 right 90

fd 20 left 90

fd 20 left 180

fd 40 left 90

fd 20 left 90

fd 20 right 90

fd 20 right 90

fd 10 right 90

fd 20 left 90

fd 10 left 90

fd 30 left 90

fd 40 left 180

fd 40 left 90

fd 20 left 90

fd 40 left 180

fd 40 left 90

fd 40 left 90

fd 20 left 90

fd 20 left 90

fd 20 left 90

fd 60 left 90

fd 40 left 180

fd 40 left 90

fd 20 left 90

fd 20 left 180

fd 20 left 90

fd 20 left 90

fd 40 left 180

fd 40 left 90

fd 40 left 90

fd 20 left 90

fd 20 left 90

fd 20 left 90

fd 40 left 90

fd 20 right 90

fd 20 right 90

fd 5  left 90

fd 5  left 90

fd 25 left 180

fd 40 left 90

fd 40 left 90

fd 20 left 90

fd 20 left 90

fd 20 left 90

fd 20 left 90

fd 40 left 180

fd 40

  • Juan Carlos Ruiz

*::before {

content    ‘Hello World’ ;

}

 

++++++++++[>+>+++>+++++++>++++++++++<<<<-]>>>--.>---.+++++++++++++.-----.<<++.>>++++++++++.------------------.+.+++.<<.>>+++++++.+++.<<.>>++.++++.----------------.<<.>>+++.-------.++.++.<<.>----------.<+++++++++.

Hello world (AKA first test)

```

it("Hello world with Cypress Evergreen tree", () => {

cy.visit("/");

 

cy.get(".input")

.type("Hello world")

.should("have.value", "Hello world");

});

```

  • Daniel Vigueras

+[-[<<[+[--->]-[<<<]]]>>>-]>-.---.>..>.<<<<-.<+.>>>>>.>.<<.<-.

  • Dani

Haskell:

main = putStrLn "Hello World"

  • Daniel de la Cruz

En SQL

  • Paco Orozco

En Pascal

 

  • Turo Lopez

Hello world in plain HTML usando VS Code "!" shortcut

  • Alberto Martinez

En gwbasic

10 CLS

20 PRINT "Hello world"

30 END

RUN

  • Rafa Vazquez

Hello world en JetpackCompose

  • Antocara

Hello World en flutter

  • Daniel Ribes

Hello World en PostScript

Hello World en PHP

  • Roberto Serrano

Hello World en C:

#include <stdio.h>

int main() {

printf("Hello, World!");

return 0;

}

  • Daniel Ripollés

#define is_C 1

#ifndef is_C

#++++++++[>++++[>++>+++>+++>+<<<<-]>+>+>->>+[<]<-]

#>>.>---.+++++++..+++.>>.<-.<.+++.------.--------.>>+.>++.>[

printf = lambda x: print(x, end='')

mymain = lambda: None

#endif

#include <stdio.h>

#define mymain() main(){

#define pass }

 

mymain()

printf("Hello, World!n");

pass

#ifndef is_C

#]

#endif

Hilo de Twitter con propuestas de la comunidad

 

¿Quieres saber más sobre Adevinta Spain?