Clear coding ?

Discussion of chess software programming and technical issues.

Moderators: hgm, Rebel, chrisw

User avatar
Guenther
Posts: 4611
Joined: Wed Oct 01, 2008 6:33 am
Location: Regensburg, Germany
Full name: Guenther Simon

Re: Clear coding ?

Post by Guenther »

flok wrote:I don't think Henk is a trol. He wrote a chess engine that plays valid moves. I know because I saw my program play against his twice via hgm's server. Ok that is not 100% guarantee.

You may think his question is silly but hey haven't we all asked a "silly" question in our lifetimes?

I also think it is not very nice to have this discussion.
I must ask though, for how many years you think one may ask silly
questions?. Is a value over 2 years plausible enough for getting a
certain verdict attached? Most here think those 'silly' questions are
simply not serious.
mcostalba
Posts: 2684
Joined: Sat Jun 14, 2008 9:17 pm

Re: Clear coding ?

Post by mcostalba »

Henk wrote: It's about creating a new transposition table using an immutable one. So
nextImmutableTTable = Insert (prevImmutableTTable, entry);

I don't know it that can be implemented more efficiently than O(log n) otherwise we get Insert(/*mutable*/ TTable, entry)
Hello Roger,

sorry to be a bit direct, but now I think that he is really joking you, taking advantage you are not a programmer.

I'd suggest to ask to the other moderators for their comments.

Thanks
Marco
Michel
Posts: 2272
Joined: Mon Sep 29, 2008 1:50 am

Re: Clear coding ?

Post by Michel »

It is clear that Henk enjoys playing(!) the role of the village idiot on this forum. And just like the village idiot his presence is benign and generally entertaining!
Ideas=science. Simplification=engineering.
Without ideas there is nothing to simplify.
User avatar
lucasart
Posts: 3232
Joined: Mon May 31, 2010 1:29 pm
Full name: lucasart

Re: Clear coding ?

Post by lucasart »

Henk wrote:Maybe it's best to simply write

Code: Select all

a && ( b 
          || c 
         ) 
instead of

Code: Select all

a && ( 
          b 
          || c 
         ) 
for it makes it more difficult to make a compile error.
If that's not trolling, what is?
Theory and practice sometimes clash. And when that happens, theory loses. Every single time.
Henk
Posts: 7220
Joined: Mon May 27, 2013 10:31 am

Re: Clear coding ?

Post by Henk »

lucasart wrote:
Henk wrote:Maybe it's best to simply write

Code: Select all

a && ( b 
          || c 
         ) 
instead of

Code: Select all

a && ( 
          b 
          || c 
         ) 
for it makes it more difficult to make a compile error.
If that's not trolling, what is?
If you are rewriting main classes of your chess engine you easily get a large number of compile errors. Last week I had 480 compile errors because I changed the position class. If you have to correct 480 compile errors you usually don't spent much time on each one. After a while you may become less careful. If you have code in the right format it is easier to correct them.
Roger Brown
Posts: 782
Joined: Wed Mar 08, 2006 9:22 pm

Re: Clear coding ?

Post by Roger Brown »

mcostalba wrote:
Henk wrote: It's about creating a new transposition table using an immutable one. So
nextImmutableTTable = Insert (prevImmutableTTable, entry);

I don't know it that can be implemented more efficiently than O(log n) otherwise we get Insert(/*mutable*/ TTable, entry)
Hello Roger,

sorry to be a bit direct, but now I think that he is really joking you, taking advantage you are not a programmer.

I'd suggest to ask to the other moderators for their comments.

Thanks
Marco

Hello Marco,

Apologies not required.

Point noted.

Done.

Later.

Ps. The thread has suffered degradation. Following clean-up, including my own unfortunate attempts at clarification, it should be unlocked.