PDA

View Full Version : What happens when IT people become theologians



Swordman53
18th September 2009, 12:25 PM
I came across this on a web site of a friend.

He has his masters now in theology, but obviously paid his way through by systems development.

Being in the business myself, I had to share it.

This is God in C++

http://jcfreak73.blogspot.com/

The Trinity Program (http://jcfreak73.blogspot.com/2009/09/trinity-program.html)

I was rummaging through my files and I find this document which I had written 3 years ago. I thought I would share because it proves beyond a shadow of a doubt how big of a dork I am. Anyway, this is the doctrine of the Trinity as expressed in C++. Enjoy:

const Divinity YHWH=Divinity();

class Divinity
{
aaaDivinity()
aaa{
aaafor (int c=0; c<∞; c++) aaaaaa{dimentions[c]=∞;}
aaa}

aaaThelitos will();
aaaString knowledge=∞;
aaaPotency power=∞;
aaaInt dimentions[∞];
aaaCharacter goodness=☺;
}

class HUnion
{
aaaHUnion(Divinity *divine, Humanity *human)
aaaaaaaaa{God=divine; man=human;}

aaaostream permeationAttributes (istream);

aaaDivinity *God;
aaaHumanity *man;
}

struct Messiah
{
aaaHUnion Christ;
}

int main()
{
aaaDivinity *Father=*YHWH,
aaaaaaaaaaaa*Son=Father,
aaaaaaaaaaaa*Spirit=Father;

aaaMessiah Jesus;
aaaJesus.Christ=HUnion(Son, *humanity());
}

raderag
18th September 2009, 01:18 PM
I came across this on a web site of a friend.

He has his masters now in theology, but obviously paid his way through by systems development.

Being in the business myself, I had to share it.

This is God in C++

http://jcfreak73.blogspot.com/

The Trinity Program (http://jcfreak73.blogspot.com/2009/09/trinity-program.html)

I was rummaging through my files and I find this document which I had written 3 years ago. I thought I would share because it proves beyond a shadow of a doubt how big of a dork I am. Anyway, this is the doctrine of the Trinity as expressed in C++. Enjoy:
const Divinity YHWH=Divinity();

class Divinity
{
aaaDivinity()
aaa{
aaafor (int c=0; c<∞; c++) aaaaaa{dimentions[c]=∞;}
aaa}

aaaThelitos will();
aaaString knowledge=∞;
aaaPotency power=∞;
aaaInt dimentions[∞];
aaaCharacter goodness=☺;
}

class HUnion
{
aaaHUnion(Divinity *divine, Humanity *human)
aaaaaaaaa{God=divine; man=human;}

aaaostream permeationAttributes (istream);

aaaDivinity *God;
aaaHumanity *man;
}

struct Messiah
{
aaaHUnion Christ;
}

int main()
{
aaaDivinity *Father=*YHWH,
aaaaaaaaaaaa*Son=Father,
aaaaaaaaaaaa*Spirit=Father;

aaaMessiah Jesus;
aaaJesus.Christ=HUnion(Son, *humanity());
}


Not great code, but funny nevertheless.

Perhaps this should have been a class which implemented an interface like IUnknown. This makes it look like God is created in runtime.

At least something could have been static.

Swordman53
19th September 2009, 08:03 AM
Not great code, but funny nevertheless.

Perhaps this should have been a class which implemented an interface like IUnknown. This makes it look like God is created in runtime.

At least something could have been static.
lol.

I am not sure why the yellow 'aaa's prefix the lines. I copied it from the web site. I guess it did not translate well. Or perhaps he did that for spacing and had them hidden with the same color as his background.

Perhaps you want to improve on the god-code?:L21: