How about a "Words of Wisdom" list? Here's mine; feel free to add some of yours.
--------
In a typical chess playing program:
10% of the bugs are from typographical errors.
10% of the bugs are from algorithmic design and implementation errors.
80% of the bugs are due to cleverly coded optimization efforts.
Chess programming Words of Wisdom
Moderators: hgm, Rebel, chrisw
-
- Posts: 10314
- Joined: Thu Mar 09, 2006 12:37 am
- Location: Tel-Aviv Israel
Re: Chess programming Words of Wisdom
Not correct for me.sje wrote:How about a "Words of Wisdom" list? Here's mine; feel free to add some of yours.
--------
In a typical chess playing program:
10% of the bugs are from typographical errors.
10% of the bugs are from algorithmic design and implementation errors.
80% of the bugs are due to cleverly coded optimization efforts.
most of the bugs are not because of optimization efforts and I simply do not care about speed except speed of the algorithm.
I have many parameters that the user can change and I have clearly not optimal code by things like
if (parameter==1)
{
}
Uri
Re: Chess programming Words of Wisdom
Uri Blass wrote: I have many parameters that the user can change and I have clearly not optimal code by things like
if (parameter==1)
{
}
What's non-optimal about that?
--
James
-
- Posts: 10314
- Joined: Thu Mar 09, 2006 12:37 am
- Location: Tel-Aviv Israel
Re: Chess programming Words of Wisdom
speed.jswaff wrote:Uri Blass wrote: I have many parameters that the user can change and I have clearly not optimal code by things like
if (parameter==1)
{
}
What's non-optimal about that?
--
James
It is slightly faster to be without that parmater and not to have if.
-
- Posts: 3196
- Joined: Fri May 26, 2006 3:00 am
- Location: WY, USA
- Full name: Michael Sherwin
Re: Chess programming Words of Wisdom
I was expecting, 'Don't start'!sje wrote:How about a "Words of Wisdom" list? Here's mine; feel free to add some of yours.
--------
In a typical chess playing program:
10% of the bugs are from typographical errors.
10% of the bugs are from algorithmic design and implementation errors.
80% of the bugs are due to cleverly coded optimization efforts.
If you are on a sidewalk and the covid goes beep beep
Just step aside or you might have a bit of heat
Covid covid runs through the town all day
Can the people ever change their ways
Sherwin the covid's after you
Sherwin if it catches you you're through
Just step aside or you might have a bit of heat
Covid covid runs through the town all day
Can the people ever change their ways
Sherwin the covid's after you
Sherwin if it catches you you're through
Re: Chess programming Words of Wisdom
But if you start, don't stop!Michael Sherwin wrote: I was expecting, 'Don't start'!
Re: Chess programming Words of Wisdom
Well, sure, no code is faster than some code. I thought you meant there was some faster way to do that conditional statement...Uri Blass wrote:speed.jswaff wrote:Uri Blass wrote: I have many parameters that the user can change and I have clearly not optimal code by things like
if (parameter==1)
{
}
What's non-optimal about that?
--
James
It is slightly faster to be without that parmater and not to have if.
--
James