Skip to content

Instantly share code, notes, and snippets.

@b1nary
Last active October 1, 2015 01:18
Show Gist options
  • Save b1nary/1893673 to your computer and use it in GitHub Desktop.
Save b1nary/1893673 to your computer and use it in GitHub Desktop.
Programming Syntax Evolution (Or some Hallo Worlds)
// Fortran
// Year: 1954–55
// Name: The IBM Mathematical FORmula TRANslating System
Program Hello
Print *, "Hello World!"
End Program Hello
// LISP
// Year: 1956–58
// Name: LISt Processing
(print "Hello World")
// C++
#include <iostream>
using namespace std;
int main()
{
cout << "Hello World!";
}
// C#
using System;
namespace HelloWorld
{
class Hello
{
static void Main()
{
System.Console.WriteLine("Hello World!");
}
}
}
// Java
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello, World");
}
}
// Javascript
<script type="text/javascript">
document.write('<b>Hello World</b>');
</script>
-- Lua
print ("Hello World!")
// PHP
<?php
Echo "Hello, World!";
?>
# Python
print "Hello, World!"
# Ruby
puts 'Hello world'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment