forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Coding a PS2 Program

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS2 Development
View previous topic :: View next topic  
Author Message
XAN



Joined: 15 Jul 2004
Posts: 17

PostPosted: Tue Jul 27, 2004 10:29 am    Post subject: Coding a PS2 Program Reply with quote

What programming language should I learn to program a program for the PS2? C or C++ is the only ones I can find tutorials on.
Back to top
View user's profile Send private message AIM Address
pixel



Joined: 30 Jan 2004
Posts: 791

PostPosted: Tue Jul 27, 2004 10:45 am    Post subject: Reply with quote

There are only C and C++ compilers here, so...
_________________
pixel: A mischievous magical spirit associated with screen displays. The computer industry has frequently borrowed from mythology. Witness the sprites in computer graphics, the demons in artificial intelligence and the trolls in the marketing department.
Back to top
View user's profile Send private message
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Tue Jul 27, 2004 11:42 am    Post subject: Reply with quote

Although you may never use it, learn as many langauges as you can. They all help in some manner, regardless of what language you finally use to write your program. I know assembly langauge for dozens of CPUs, and dozens of low-level to high-level languages. It all helps in the end.
Back to top
View user's profile Send private message AIM Address
mharris



Joined: 25 Jan 2004
Posts: 155
Location: Annapolis, MD, USA

PostPosted: Mon Aug 02, 2004 1:41 am    Post subject: Reply with quote

I'll echo what J.F. said. Too much knowledge is never a bad thing. C and C++ are fairly low-level languages, so it's easy to write horrible code in it if you have no idea of software engineering.

Every computer language, like every human language, is different. Some concepts are easier to describe in one language than another, and knowing more languages helps you "think outside the box." Some differences are more subtle (C++ vs. Java), others are much more profound (C vs. Prolog).

All that being said, C is probably the most powerful language you can use, aside from assembly -- there's almost nothing you *cannot* do with C. But understanding concepts from other languages -- like closures (in Lisp), rendezvous (in Ada), and interfaces (in Java) -- can help you write better code in C.

Don't know if you can learn anything useful from Visual Basic though ;-P

And don't dismiss assembly, either: not only is it the *most* powerful language (and consequently the most tedious), understanding what's going on beneath the covers is extremely valuable. I've worked with many programmers with no knowledge of assembly; consequently, they're completely clueless about how awful the code they're writing is ;-) It's valuable to examine the asm that the compiler generates to learn what's going on, either by disassembling the object files, or having the compiler generate the asm directly. Especially on a platform like the PS2, where the main processor isn't the fastest, you need to know what kind of code you're generating before you can even *think* about optimization.

You see this ignorance all over the place when programmers jump from one language to another. I've worked with Java programmers who have to work in C++, and create way too many useless classes (rather than a callback function), since that's the only way you can do certain things in Java. Or Perl programmers who only use Java's Vector and Hashtable structures (when a LinkedList or TreeSet would be more appropriate), since these are the only data structures Perl supports.

Another cliche to throw in is "When all you have in your toolbox is a hammer, everything looks like a nail." You should try to have as diverse a toolbox as you can. However, as pixel noted, currently the only thing you be able to use ATM for the ps2dev environment is C/C++, so I'd recommend you learn it...
Back to top
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS2 Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group