Java to C++ to C
Java to C++ to C
I followed a 3 years formation at my local college. We extensively studied Java and I consider myself an experienced developper with this language.
Actually I've been studying Irrlicht for a couple of months so I had to learn C++. The deeper I get into it, the more I tend to code in C.
On top of that, I DO prefer C to Java and I recently found out that the newly open-sourced Quake3 engine is in C.
So, besides me and John Carmack , am I the only OO Java coder to prefer C
Actually I've been studying Irrlicht for a couple of months so I had to learn C++. The deeper I get into it, the more I tend to code in C.
On top of that, I DO prefer C to Java and I recently found out that the newly open-sourced Quake3 engine is in C.
So, besides me and John Carmack , am I the only OO Java coder to prefer C
-
- Posts: 602
- Joined: Sat Aug 23, 2003 2:03 am
- Location: Pottstown, PA
- Contact:
I've tried Java and C#, and IMHO, I think that C++ is a lot cleaner and easier to understand. C is fun too, but not for big projects.
________
Honda Super Cub specifications
________
Honda Super Cub specifications
Last edited by disanti on Thu Feb 24, 2011 10:28 am, edited 1 time in total.
-
- Posts: 158
- Joined: Wed Apr 28, 2004 11:03 am
- Location: Hungary
- Contact:
Depends on your habits and on the project you need. Sometimes C can be a bit more effective, and many things I do in my project rather reminds of of C than OO programming. That said, C++ and OO programming is a great thing, just use it wisely.
I don't really like JAVA though.
I don't really like JAVA though.
Staring through eyes of hate we kill
Are we controlled, or is our own will...?
(Edguy)
Are we controlled, or is our own will...?
(Edguy)
Re: Java to C++ to C
Did the Q3 engine source get released? Carmack delayed it, and I didn't think it had happened yet.eXodus wrote:On top of that, I DO prefer C to Java and I recently found out that the newly open-sourced Quake3 engine is in C.
As for why the Q3 engine is in C... Q3 is based on Q2 which is based on Q1, which was written in C and QuakeC in like 1995. C++ wasn't the same language then. It wasn't nearly as popular. Good compilers were harder to come by. Carmack already had experience writing similar games in C. The QuakeC language wasn't OO, and making it OO (C++ like) and efficient would have been much more work. If you think the QuakeC argument isn't relevant, I assure you it is -- a lot of the C code in Q2 is pretty much exactly QuakeC code from Q1. I'm just saying there are a lot of practical reasons for Q3 to have been in C rather than C++ which don't have that much to do with the merits of the languages.
As for my preference, I find things to love and (mostly) hate about all programming languages. Of the ones you list, I'd say I like C++. While I don't agree with a lot of C++isms, it can do everything C can (at least for reasonable definitions of 'everything' ). And even if I don't like everything about it, the addition of templates alone is a big improvement. Forcing sloppy coders to be more explicit with their casts is too.
Carmack didn't release Q3 open source after all; check his site:
http://www.armadilloaerospace.com/n.x/johnc/recent updates/archive?news_id=290
edited: the link has a weird space in the middle that breaks it, please follow this google search link:
http://www.google.com/search?hl=en&lr=& ... tnG=Search
http://www.armadilloaerospace.com/n.x/johnc/recent updates/archive?news_id=290
edited: the link has a weird space in the middle that breaks it, please follow this google search link:
http://www.google.com/search?hl=en&lr=& ... tnG=Search
arrrrrggggggghhhhhhhhhhhhhhhh!!I intended to release the Q3 source under the GPL by the end of 2004, but we had another large technology licensing deal go through, and it would be poor form to make the source public a few months after a company paid hundreds of thousands of dollars for full rights to it. True, being public under the GPL isn't the same as having a royalty free license without the need to disclose the source, but I'm pretty sure there would be some hard feelings.
Last edited by afecelis on Sat Feb 19, 2005 9:18 am, edited 2 times in total.
-
- Posts: 164
- Joined: Wed May 05, 2004 5:34 pm
- Location: Germany Berlin
- Contact:
why do i get forced to learn java at school ? does sun hava a contract with some schools, so the pupil have to learn it ? because nobody whant to use it and sun has spend to much mony to abort java and the only way to save it is to force us to use it ?
my pref. is c++ and maybe in further times c#
besides:
my ide msvc++6 in now 7 years old but "the horse gallops" without problems. should i update to a newer version like 2003 with .net ... is there any compatibility problem when i use this with msvc++6.0 projekts ... or ain't there any prblems ... i have a little fear "never tuoch a running system"
my pref. is c++ and maybe in further times c#
besides:
my ide msvc++6 in now 7 years old but "the horse gallops" without problems. should i update to a newer version like 2003 with .net ... is there any compatibility problem when i use this with msvc++6.0 projekts ... or ain't there any prblems ... i have a little fear "never tuoch a running system"
q|^.^|p beeing every time friendly to everyone
sys: 2500+Barton 512MB 6600GT WinXP
sys: 2500+Barton 512MB 6600GT WinXP