Hello, World!

oylenshpeegul

oylenshpeegul@gmail.com

Hello, World!

A sample org-reveal presentation.

  • with bullets
  • (always a mistake?)

Hello, Perl!

#!/usr/bin/env perl

use v5.18;
use warnings;

my $name = shift // 'World';

say "Hello, $name!";

Hello, Go!

Go actually has a built-in println

package main

func main() {
    println("Hello, World!")
}

Hello, Go with fmt

  • But it's more idiomatic to import fmt
  • Also, fmt.Println is more flexible than println
package main

import "fmt"

func main() {
    fmt.Println("Hello, World!")
}

Hello, Elixir!

#!/usr/bin/env elixir

greet = fn s -> IO.puts "Hello, #{s}!" end

if length(System.argv) == 0 do
  greet.("World")
else 
  Enum.each System.argv, greet
end

Links