Friday, March 1, 2013

The Programmer's Bible

The thought occurred to me yesterday that they have many versions of the bible in many translations, including modern english, so why not make a programmer's translation of the bible?  The language it would be written in would be "script-ure" ;-)

The book of genesis would look like something like this java class:

public class Genisis extends Bible
{
    public Genisis()
    {
        beginning();
    }
    void beginning()
    {
        God.create(new Heaven());
        God.create(new Earth());
    }
}


There would be a holy war between which text editor should be used to read the bible...  Heck, they already have a Church of Emacs.

Or maybe a perl-esque way of scripture.

Lord's Prayer:

our $Heaven;
for our $Father in @Heaven {
  hallow($Father->getName());
  $Earth->add($Heaven->getKingdom());
  do {
    $Father->will($Earth);
  }
  while($Earth->result() eq $Heaven->result());
 
  eval {
    $Father->get("Bread", DateTime->now->subtract(DateTime::Duration->new(day => 1)));
    my @tresspasses = sin();
    while($Us->remove(@others->getTrespasses())) {
      $Father->remove(@trespasses);
    }
  };
  if(@_) {
    warn $temptation;
    break $evil;
  }


Here is an LDS teaching in that language:

my $guilt = sin();
my $forsaken = result($guilt);
if($manKnows && $forsaken) {
     confess "forgiven";
}

(D&C 58:43)

Or maybe a bash like language:

#!/bin/bash
able=5
run -o ConnectTimeout=$able | grep "diligent"
#output: You won a prize!

(Mosiah 4:27)

No comments:

Post a Comment

No profanity please.