LebGeeks

A community for technology geeks in Lebanon.

You are not logged in.

#1 August 30 2009

rolf
Member

Communication through programming languages...

Well I though about trying programming languages as a means for communication...
Anyway, if anyone is interested, please participate in the thread, using whatever language you are comfortable with, as long as its a pretty common language that could be widely understood. (so please avoid cobol, LISP, assebly...)
So anyway ill start here (with php)... but you can pick the variables and reuse them in another language.

<?php
var $topic;
?>

Offline

#2 August 30 2009

samer
Admin

Re: Communication through programming languages...

<?php
	$topic = 'Communication through programming languages...''
	echo 'this ' . $topic . ' is interesting';
?>

Offline

#3 August 30 2009

mrmat
Member

Re: Communication through programming languages...

Haven't been posting for a while, but always checkin the forum. So hello again everyone.

I thought i would post somethin here.

Pascal

....

Var I : Integer;

Const
      PWPIF = 'Programming With Pascal Is Fun';

function GetTopicVar : String
begin
Result := String(pointer(Post1.Topic));
end;


For I := 0 to Length(GetTopicVar) - 1 do
begin
WriteLn(Copy(GetTopicVar,0,I));
end;

WriteLn(PWPIF);

....

Last edited by mrmat (August 31 2009)

Offline

#4 September 2 2009

Ayman
Member

Re: Communication through programming languages...

Despite the many Java haters around the site :/

import lebGeeks.topic.*; 

public class {
    public static void main(String args[]){
      
      String page = "http://www.lebgeeks.com/forums/viewtopic.php?id=5526"; 
    
      topicReply myReply = new topicReply(page,AymanFarhat);
 
      myReply.setText(myReply.getTopicTitle() + " is very interesting indeed, especially in OOP languages!");

      myReply.addEmoticon(smile);  
     }
}

Last edited by Ayman (September 2 2009)

Offline

#5 September 2 2009

mir
Member

Re: Communication through programming languages...

Declare @l1 as liquid 
Declare @l2 as liquid 

Select @l1 = molecules from juice where juiceid = rand(convert(int, rand() * 100 ) + 1 
Select @l2 = molecules from alcohol where alcoholid = rand(convert(int, rand() * 100) + 1 

-- cheers guys 
Exec drink(@l1 , @l2)
Exec sing(cheer)
PRINT 'hic'

Last edited by mir (September 2 2009)

Offline

#6 September 2 2009

mrmat
Member

Re: Communication through programming languages...

Uses
    System, ...., uJavaHater

...........


function FindJavaPost : TJavaPost;
begin
Result := uJavaHater.FindJavaPostToDestroy(this);
end;

procedure Start;
Var
    JavaPost : TJavaPost;
begin
JavaPost := FindJavaPost;
JavaPost.ReplaceText('especially in OOP languages','without Java of course !!!');
JavaPost.Emotions[0].ChangeTo(angry);
end;


Start;


......

Last edited by mrmat (September 2 2009)

Offline

#7 September 2 2009

Ayman
Member

Re: Communication through programming languages...

Ever heard of the BrainFuck? 

+++ +++ +++ +   
[                  
    > +++ +++ +        
    > +++ +++ +++ +   
    > +++                
    > +                   
    <<< < -                 
]                   
>---.     
>++++.
---.
.
+++++++++++++.
+.
>+++.
.

You can download the interpreter to see the output of my program http://4mhz.de/bfdev.html fun language, enjoy 

@rolf, sorry for violating the topic rules(posting a language that is not commonly understood, in other words very weird) but I just couldn't resist the temptation :rolleyes:

Last edited by Ayman (September 2 2009)

Offline

#8 September 2 2009

mrmat
Member

Re: Communication through programming languages...

Actually its very well named . BRAINFUCK

Last edited by mrmat (September 2 2009)

Offline

#9 September 2 2009

samer
Admin

Re: Communication through programming languages...

HAI
CAN HAS STDIO?
PLZ OPEN FILE "TOPIC.TXT"?
    AWSUM THX
        VISIBLE FILE
    O NOES
        INVISIBLE "ERR000R!"
KTHXBYE

http://en.wikipedia.org/wiki/LOLCODE

Offline

Board footer