Raised This Month: $ Target: $400
 0% 

Which Programming language are you?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Zenith77
Veteran Member
Join Date: Aug 2005
Old 05-07-2007 , 17:30   Re: Which Programming language are you?
Reply With Quote #1

Quote:
Originally Posted by regalis View Post
Have you ever heard of this language?

Code:
Hello World!

 The following program prints "Hello World!" and a newline to the screen:
 ++++++++++
[>+++++++>++++++++++>+++>+<<<<-] The initial loop to set up useful values in the array
>++.                             Print 'H'
>+.                              Print 'e'
+++++++.                         Print 'l'
.                                Print 'l'
+++.                             Print 'o'
>++.                             Print ' '
<<+++++++++++++++.               Print 'W'
>.                               Print 'o'
+++.                             Print 'r'
------.                          Print 'l'
--------.                        Print 'd'
>+.                              Print '!'
>.                               Print newline
For readability, this code has been spread across many lines and comments have been added.
 Brainfuck treats all characters but +-<>[],. as comments so no special syntax for a comment is needed.
 The code could just as well have been written as:
  ++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.
http://en.wikipedia.org/wiki/Brainfuck

Best language ever.
__________________
Quote:
Originally Posted by phorelyph View Post
your retatred
Zenith77 is offline
Pro Patria Finland
Senior Member
Join Date: Apr 2006
Location: BaronPub.com
Old 05-07-2007 , 17:53   Re: Which Programming language are you?
Reply With Quote #2

Quote:
Originally Posted by Zenith77 View Post
Best language ever.
That would be awesome to learn. We start coding next year at school;

"So, has anyone ever coded anything before?"
"Well, I've coded some Basic and C++, but mostly Brainfuck"
__________________
I am not a number. I am Gordon Freeman!
Pro Patria Finland is offline
Pro Patria Finland
Senior Member
Join Date: Apr 2006
Location: BaronPub.com
Old 05-08-2007 , 15:27   Re: Which Programming language are you?
Reply With Quote #3

Quote:
Originally Posted by regalis View Post
Have you ever heard of this language?

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

Okay, so when I read this, I decided to give a shot at it. It is very complex at first. But atleast I've learned, that if you want to have a complex code to write a few lines of text into your cmd window, this is the programming language for you.

This is the code I learned to do, and wrote myself today:

Code:
++++++++++[>+++++++>++++++++>+++++++++>+++>+>+++++<<<<<<-]
>>++++.<++.+.>-.>>++.<<---.++.---.<--.>+++.<------.>-----.>>.<<<++++++++.
>++++++.>>.<<<------.>----.<+.+.-.>>>.<---.<<+++++.>+++++.<-.>>>.<<<------.
>--.<-.++++++++.>----.<---.>+++++++.<---.++++++++.>>>+.>.<<<<--.>>>-.<<<--------.
>--------.>>.<<++++++.----.>>.>>-.++..++++.<<+...>.<-.+++++++++++++.<<+.++.---.
>>-------------.<<+.<.>++++.--.<++++++++.--------.>>>.<<<+++++.+++.>----.--.<--------.
>++.<+++.
If you compile and run it, it says:
"THIS PROGRAM IS CODED WITH BRAINFUCK!
I AM SO 1337!!!
-Pro Patria Finland"



Edit: Oh, and it's still a bit too long and a very bad code, it could be done differently too. But hey, it's me first shot!
__________________
I am not a number. I am Gordon Freeman!

Last edited by Pro Patria Finland; 05-08-2007 at 15:30.
Pro Patria Finland is offline
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 05-07-2007 , 17:21   Re: Which Programming language are you?
Reply With Quote #4

SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 05-07-2007 , 17:29   Re: Which Programming language are you?
Reply With Quote #5

Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
XmINiX
Senior Member
Join Date: Nov 2006
Location: Your basement
Old 05-08-2007 , 09:00   Re: Which Programming language are you?
Reply With Quote #6

Quote:
Originally Posted by Emp` View Post
I got that too....
__________________
+Karma me if i am helpful!
XmINiX is offline
Send a message via AIM to XmINiX Send a message via MSN to XmINiX Send a message via Yahoo to XmINiX
eFrigid
Senior Member
Join Date: Aug 2005
Location: 3o3
Old 05-07-2007 , 17:40   Re: Which Programming language are you?
Reply With Quote #7

I win!

__________________
lol
eFrigid is offline
Send a message via AIM to eFrigid Send a message via MSN to eFrigid Send a message via Skype™ to eFrigid
vvg125
AMX Mod X Beta Tester
Join Date: Dec 2006
Location: Queens (Douglaston), New
Old 05-07-2007 , 17:42   Re: Which Programming language are you?
Reply With Quote #8

Pfft.... I GOT IT FIRST!

EDIT: No you aren't...

As awesome as Pawn is, it's not that powerful...
__________________
vvg125 is offline
Send a message via AIM to vvg125 Send a message via MSN to vvg125 Send a message via Yahoo to vvg125
regalis
Veteran Member
Join Date: Jan 2007
Location: F*cking Germany
Old 05-07-2007 , 17:42   Re: Which Programming language are you?
Reply With Quote #9

no! im the winner already
__________________
regalis is offline
eFrigid
Senior Member
Join Date: Aug 2005
Location: 3o3
Old 05-07-2007 , 17:44   Re: Which Programming language are you?
Reply With Quote #10

I don't think you understand I clearly won the battle
__________________
lol
eFrigid is offline
Send a message via AIM to eFrigid Send a message via MSN to eFrigid Send a message via Skype™ to eFrigid
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 20:53.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode