PDA

View Full Version : Which language do u mostly code in



MovingFulcrum
08-31-2001, 01:27 AM
Just poll for the lang u mostly code in.

adrianxw
11-17-2001, 02:57 PM
In my last project, C++, in my current, Pascal. So, "Two of the above".

Cheeze-It
11-17-2001, 04:14 PM
Originally posted by MovingFulcrum
Just poll for the lang u mostly code in.

So, who wants to write the 'hello world' program
in all of those languages? I want to see how
the syntax differs from language to language..

:)

Garfield
11-17-2001, 05:22 PM
I choose C. I'm going to start assembly now, too. I'm ready for the challenge of the most core language there is. But, I love C for software (Windows) programming.

--Garfield

-KEN-
11-17-2001, 05:55 PM
Assembly


main:
mov dx,hello ;Load the msg's address
mov ah,9 ;Standard output function
int 21h ;DOS call to dsplay AH

mov ax,04C00H ;Exit code
int 21h ;execute instruction in AX (Exit instruction)

hello db 13,10,"Hello, World!",13,10,"$" ;the msg

C


#include <stdio.h>

int main(void)
{
printf("Hello, World!\n");
return 0;
}


C++


#include <iostream.h>

int main(void)
{
cout<<"Hello, World!"<<endl;
return 0;
}
C#


using System;

class MyClass
{
public static void Main(String[] args)
{
Console.Write("Hello, World!\n");
}
}

Pascal


program Hello;
begin
writeln ('Hello, world.')
end.


Perl


print "Hello, World!\n"

PHP

<? echo "Hello, World!"; ?>


Forth (AKA ugliest lang on the planet :p)


: hello
begin
true
while
." Hello World "
repeat
;
hello

Java

class HelloWorld
{
public static void main (String args[])
{
System.out.print("Hello World ");
}
}


Visual Basic - create a form, add in a label, and change the caption to "Hello, World!"



Well THAT was fun...

Pendragon
11-17-2001, 06:05 PM
Well, that clears *that* up.:D

Well done that man!

-Pen

Garfield
11-17-2001, 08:25 PM
>> Forth (AKA ugliest lang on the planet ) <<



: hello
begin
true
while
." Hello World "
repeat
;
hello


That is some nasty looking code. The functionality doesn't even look...worth it.

--Garfield

*Michelle*
11-18-2001, 01:55 AM
Which language do you guys think is the easiest? So far, I only know C++, a tinsy bit of CGI...btw, you guys forgot to include CGI, or is it the same as PHP? um... And I FINALLY succesfully upload a CGI file on the net without a error message showing up, yah! It took me like a half a year to figure out, haha! (I know I'm dumb, acutually I forgot to upload it in ASCII and sometimes I change the code and wrote in symbols without have "\" infront of it. I just realize how annoying it is to not have a compiler to tell you where something is wrong!

Ok, I better shut up now, I reply like 4 threads today, yikes...

And good job -Ken-, you know so many languages!

Garfield
11-18-2001, 06:26 AM
The easiest language?: Visual Basic by far.

Yoshi
11-18-2001, 11:38 AM
To me, C++, C, and VB is my languages.:rolleyes:

itld
11-18-2001, 10:20 PM
You had to ask!
in school it was fortran, got any more punch cards
after that came qbasic love that DOS
then enter the 80's
i was forced to do lisp because of AutoCAD.
now just for fun and hopfully for a living someday it' C++ and ASM.
Damn i feel old.
M.R.

Camilo
11-19-2001, 01:16 PM
With a little help from Oskilian I learned VB (very easy), then a teacher from olympiads taught me C, now I am learning asm.



Camilo
'Going further'

oskilian
11-19-2001, 01:31 PM
'milo: tell 'em how would you do it on Multimedia toolbook (that's DEFINETLY the worst language ever)

oh, and you forgot:

QBASIC


PRINT "Hello World!"


C++ for Win32


#include <windows.h>

int WINAPI WinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
{
MessageBox(NULL,"Hello World!","Hello",MB_OK);
return 0;
}


you know, I did all that on friday on a blackboard at school, it's funny that I found it here too! Camilo can testify to that.

Oskilian

Justin W
11-19-2001, 08:33 PM
CGI can be done in many different languages. I prefer to use C for it. :)

Scourfish
11-21-2001, 12:05 AM
What? No Cobol? No Fortran?

Sure, they may be dead languages, but so is Latin, and people still speak it.

biterman
11-21-2001, 01:03 AM
Well people read/write Latin, but i don't think they speak it.

Hmmm... Justin you're the first person i hear of that likes to use a compiled language for CGI instead of an interpreted one.

Hey Michelle in what language did you write your CGI?

Fordy
11-21-2001, 07:06 AM
>>Justin you're the first person i hear of that likes to use a compiled language for CGI instead of an interpreted one.

I use Java..... well it is compiled..... not to naitive code.... but still compiled....

Camilo
11-21-2001, 10:53 AM
Yeah, Multimedia toolbook owns teh worst script language, here goes an example:

c code:
a=b;

MMbook code:
set value of a to b


as you can see it is a bit crappy.




Camilo
'trying to live'

Garfield
11-21-2001, 12:19 PM
>> as you can see it is a bit crappy. <<

A bit? More like a nibble or a byte (get it?).

--GARFIELD

BTW complements on your avatar, Camilo.

Sunny
11-22-2001, 06:32 AM
I noticed C++ is in the lead. An impersonnal observation. This is www.cprogramming.com afterall, isn't it? I mean, how accurate can that pole be? :D

oskilian
11-22-2001, 10:19 PM
yeah, goto javaprogramming.com (if there is such a thing) and post the same poll, and look if c++ wins!

Logo rules too!!

ah, you also forgot to do this:

HTML (I hope that this board does not screw it), this is obviously not the easiest way to do it


<html>
<head>
<title>Hello, World!!</title>
</head>
<body bgcolor=#000000>
<font size=7 color=#FFFF00>
<b>
Hello, World!!!
</b>
</font>
</body>
</html>


Camilo: who are those funny stange characters in your avatar?

Oskilian

Camilo
11-23-2001, 06:15 PM
Garfield: Yes, got it, extremely funny.

oh, I forgot to explain, I built my avatar with some takes from FF5 (unreleased in USA) they are different jobs from the same character (Butz), I only got the jobs i like in the game, in no favorite or picture order:
Normal
Warrior
Bersek
Hunter
WhiteMage
BlackMage
TimeMage
Summoner (I call it Caller)
Thief
What hapened???
I can't see the animation!!!
is it my problem?
hey!!, someone, tell me!!


Camilo
'disturbed'
sorry for my grammar 'again'