Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: c,c++5,c#.

Author: Omid David Tabibi

Date: 14:41:06 08/11/04

Go up one level in this thread


On August 11, 2004 at 15:33:16, Sune Fischer wrote:

>On August 11, 2004 at 09:42:04, gerold daniels wrote:
>
>>what is the best to program a chess game in. c.c++,c#. which is the easy one to
>>learn and the best to program in.
>
>Different languages are good for different things.
>I'd pick C# for a nice GUI on windows.
>I'd pick Java for a GUI with good portability qualities.
>
>For chess, since you ask, it must be fast so either C or C++.
>
>Personally I see no reason to use C, C++ offers a lot more and there's
>no speed penalty.

No speed penalty only when you know exactly how to use it, and what C++ features
to avoid using. For that, you need a good deal of experience in C programming.

"C makes it easy to shoot yourself in the foot; C++ makes it harder, but when
you do it blows your whole leg off." --Bjarne Stroustrup


>
>C is a smaller language and easier to learn, but you might pick up some bad
>habits that will take you a while to get rid of if you move on to OOP. I'm
>talking from experience here.
>
>C++ can ease your life if you learn to use it right, there are more basic types,
>exception handling and in different ways the code can be structured prettier.
>
>The flow seems to go from C to C++, and lately from C++ to C#.
>Not many have gone from C++ back to C I think.
>Now with C# I expect a a lot of C++ programmers will move on to C#.
>
>It is estimated that C# is about 3 times faster than C++ (MFC) to develop in, so
>for applications that aren't speed critical C# would probably be the obvious
>choice.
>
>If you're in it for the learning, you should try and squeeze some C# into the
>process. It is a language of the future and very similar to java. Remember, that
>as a (regular) programmer 95% of what you'll be programming won't be speed
>critical.
>One of the things you could do, was to write the engine in C/C++ and the gui in
>C#.
>
>I've been told visual basic is dead, so I wouldn't recommend that.
>
>-S.



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.