Just installed a new plugin and want to test it. And what could be better than testing it in several programming languages at once?
# Language: Ruby
# This is so cool because it demonstrates how the String class itself gets opened and augmented
class String
def say
puts self
end
end
'Hello, world!'.say |
# Language: Ruby
# This is so cool because it demonstrates how the String class itself gets opened and augmented
class String
def say
puts self
end
end
'Hello, world!'.say
Language: Brainfuck
This is just weird (but funny!)
++++++++++[>+++++++>++++++++++>+++>+<<<<-]
>++.>+.+++++++..+++.>++.<<+++++++++++++++.
>.+++.------.--------.>+.>. |
Language: Brainfuck
This is just weird (but funny!)
++++++++++[>+++++++>++++++++++>+++>+<<<<-]
>++.>+.+++++++..+++.>++.<<+++++++++++++++.
>.+++.------.--------.>+.>.
// Language: Objective-C
/*
Hmm... I don't really like this language but it's amazing that most parts
of Snow Leopard, Apple's latest operating system is written in this one
(or at least I think so)
*/
#import <stdio.h>
#import <objc/Object.h>
@interface Hello : Object
{
}
- hello;
@end
@implementation Hello
- hello
{
printf("Hello, world!\n");
}
@end
int main(void)
{
id obj;
obj = [Hello new];
[obj hello];
[obj free];
return 0;
} |
// Language: Objective-C
/*
Hmm... I don't really like this language but it's amazing that most parts
of Snow Leopard, Apple's latest operating system is written in this one
(or at least I think so)
*/
#import <stdio.h>
#import <objc/Object.h>
@interface Hello : Object
{
}
- hello;
@end
@implementation Hello
- hello
{
printf("Hello, world!\n");
}
@end
int main(void)
{
id obj;
obj = [Hello new];
[obj hello];
[obj free];
return 0;
}
// Language: JAVA
// A classic
public class HelloWorld
{
public static void main(String[] args)
{
System.out.println("Hello, world!");
}
} |
// Language: JAVA
// A classic
public class HelloWorld
{
public static void main(String[] args)
{
System.out.println("Hello, world!");
}
}
// Language: C#
// Looks almost like JAVA, feels kind of like JAVA, has a really bad IDE - in contrast to JAVA
class HelloWorldApp
{
static void Main()
{
System.Console.WriteLine("Hello, world!");
}
} |
// Language: C#
// Looks almost like JAVA, feels kind of like JAVA, has a really bad IDE - in contrast to JAVA
class HelloWorldApp
{
static void Main()
{
System.Console.WriteLine("Hello, world!");
}
}
// Language: C
// What should I say? Almost everyone learns programming here!
#include <stdio .h>
int main(void)
{
printf("Hello, world!\n");
return 0;
} |
// Language: C
// What should I say? Almost everyone learns programming here!
#include <stdio .h>
int main(void)
{
printf("Hello, world!\n");
return 0;
}
sehr ordentlich! er benutzt wp-syntax. gut zu wissen. spiele ja immer noch mit dem gedanken, noch einen techblog zu eröffnen …
gut dass du brainfuck mit aufgenommen hast!
Warum muß es eigentlich immer “Hello World” sein…? 😉