Computer Chess Club Archives


Search

Terms

Messages

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

Author: Omid David Tabibi

Date: 08:54:44 08/11/04

Go up one level in this thread


On August 11, 2004 at 09:43:18, Daniel Clausen 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.
>
>I predict you will get at least 4 different answers. ;)

Here we go with one of them:

For writing a chess engine you cannot expect to get a reasonably fast thing
without using C/C++. And when using C++ try to avoid some expensive features of
the language. Quoting Edsger Dijkstra:

"Object-oriented programming is an exceptionally bad idea which could only have
originated in California."

Of course I disagree with that, as there are many benefiots in OOP. But still,
there is something in what he says :)

If you are looking for easier languages (especially for building graphical user
interfaces), Java and C# are reasonable options. Java has the advantage that it
can run on any platform and is used by many major-league companies. On the other
hand .NET framework will already be present in Longhorn Windows, which will ease
the distribution of your programs. But at the moment, I would recommend Java
over C#.

Finally, unlike Jose, I would recommend you to stay away from Visual Basic, or
any other thing that has the word BASIC in it. Again quoting Edsger Dijkstra:

"It is practically impossible to teach good programming to students that have
had a prior exposure to BASIC: as potential programmers they are mentally
mutilated beyond hope of regeneration."

and

"Teaching BASIC should be a criminal offense."

Visual Basic is a very advanced language in comparison to the primitive BASIC,
but still it does mentally mutilate you :)



>
>Sargon



This page took 0.04 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.