I like C
#1
Posted 30 April 2003 - 05:15 PM
He who knows not and knows that he knows not is ignorant. Teach him.
He who knows not and knows not that he knows not is a fool. Shun him.
#2
Posted 30 April 2003 - 06:49 PM
#3
Posted 30 April 2003 - 07:28 PM
I like object oriented languages more than procedural ones
Hence I like C++ more than C
#4
Posted 01 May 2003 - 05:18 PM
He who knows not and knows that he knows not is ignorant. Teach him.
He who knows not and knows not that he knows not is a fool. Shun him.
#5
Posted 01 May 2003 - 08:09 PM
#6
Posted 02 May 2003 - 11:17 AM
I would NEVER dare to use Polymorphism - slows down the code. Inheritance - Building hte parent classes before my beloved class is instantiated.
C is more mature than C++. You need C++ ONLY for enterprise applications where speed is secondary. In gamez we have speed as the primary thing.
Anyone else feels that same?
I dont use "new" rather use malloc.
Everything that dear Bjarn Stroustrup said was for enterprises... not for us game developers :rolleyes:
#7
Posted 02 May 2003 - 01:54 PM
so, c++ is my prefered language. my general aproach when designing my code is to seperate it into two catogories.
1. the code that is not speed sensitive, like loading resources, etc. here i use all the features that c++ gives me to write the cleanest code possible.
2. parts of the game/engine where speed is important, here i still use c++ but try to minimize the use of polymorphism, virtual functions, etc.
in fact i believe that if you write good c++ code the speed problem is totally irelevant 90% of the time. if you are passing down 5000 triangles in one vertex buffer that one virtual function call won't hurt you but will gvie you an easy way to abstract the gfx api you are using.
#8
Posted 02 May 2003 - 05:11 PM
CyraX: I don't know why, but I find that for more complicated memory allocation commands new is easier than malloc. Just my opinion though
He who knows not and knows that he knows not is ignorant. Teach him.
He who knows not and knows not that he knows not is a fool. Shun him.
#9
Posted 02 May 2003 - 10:47 PM
#10
Posted 03 May 2003 - 08:20 AM
But today, it's mostly much more important to have a clean, flexible code and short development times(that's why asm is only used for single, easy to overview functions... :D )...
-----
"Human stupidity is something you can rely on." -- M.A.
"I didn't design life." -- J.G.
"It's almost finished..." -- EHD
#11
Posted 03 May 2003 - 09:27 AM
#12
Posted 03 May 2003 - 09:31 AM
-----
"Human stupidity is something you can rely on." -- M.A.
"I didn't design life." -- J.G.
"It's almost finished..." -- EHD
#13
Posted 05 May 2003 - 02:08 PM
that was exactly why I said - I USE C++ classes... nothing else is required.
Did you ever try playing Q ]I[ on a system that sucks? Perhaps that is when you would realise that speed is important. Without speed your game play goes for a toss. Without Game play - well err... I guess everyone understands.
I never said C++ sux or otherwise... I only said C style coding is good.
#14
Posted 26 July 2003 - 10:46 AM
#16
Posted 27 July 2003 - 12:55 PM
but if you want to use templates, you would have to code a preprocessor to preprocess your files before c to implement it..
there is no way to do them in c, except writing the code manually for all different possible types:D
and oop is not slow actually. really not. compilers are aware that people will use it and that they want it fast..:D
-Loving a Person is having the wish to see this Person happy, no matter what that means to yourself.
-No matter what it means to myself....
#17
Posted 27 July 2003 - 01:23 PM
i have the same feeling with you,
actually when i want to do something like template in c, i just use the pointer
and give the number of bytes and pass the pointer. maybe it is not a convenient way. i like it, and i am just trying to learn.
maybe in real project i will choose c++ or above. :rolleyes:
#18
Posted 27 July 2003 - 01:41 PM
-Loving a Person is having the wish to see this Person happy, no matter what that means to yourself.
-No matter what it means to myself....
#19
Posted 27 July 2003 - 02:08 PM
it is dynamic and the template is static once it is compiled. :D
#20
Posted 27 July 2003 - 03:20 PM
-Loving a Person is having the wish to see this Person happy, no matter what that means to yourself.
-No matter what it means to myself....
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users












