Clear coding ?

Discussion of chess software programming and technical issues.

Moderators: hgm, Rebel, chrisw

Henk
Posts: 7220
Joined: Mon May 27, 2013 10:31 am

Re: Clear coding ?

Post by Henk »

AlvaroBegue wrote:And this goes right to the pile of evidence that Henk is a troll.
Yes of course. Would you please block my account.
Roger Brown
Posts: 782
Joined: Wed Mar 08, 2006 9:22 pm

Re: Clear coding ?

Post by Roger Brown »

AlvaroBegue wrote:And this goes right to the pile of evidence that Henk is a troll.
Hello Alvaro Begue,

Actually, this is evidence that you need to make a complaint to the moderators.

I really have very little tolerance for the "(Insert name) is a troll" posts; those tend to deteriorate quick, fast and in a hurry.

Later.
Roger Brown
Posts: 782
Joined: Wed Mar 08, 2006 9:22 pm

Re: Clear coding ?

Post by Roger Brown »

Henk wrote:
AlvaroBegue wrote:And this goes right to the pile of evidence that Henk is a troll.
Yes of course. Would you please block my account.
Hello Henk,

Keep it together please.

Later.
AlvaroBegue
Posts: 931
Joined: Tue Mar 09, 2010 3:46 pm
Location: New York
Full name: Álvaro Begué (RuyDos)

Re: Clear coding ?

Post by AlvaroBegue »

Roger Brown wrote:
AlvaroBegue wrote:And this goes right to the pile of evidence that Henk is a troll.
Hello Alvaro Begue,

Actually, this is evidence that you need to make a complaint to the moderators.

I really have very little tolerance for the "(Insert name) is a troll" posts; those tend to deteriorate quick, fast and in a hurry.

Later.
Nah, not worth it. If he hasn't been banned by now I am sure nobody is going to do anything about it.
Volker Annuss
Posts: 180
Joined: Mon Sep 03, 2007 9:15 am

Re: Clear coding ?

Post by Volker Annuss »

hgm wrote:x &= ~x>>31;
is implementation defined behaviour.
Henk
Posts: 7220
Joined: Mon May 27, 2013 10:31 am

Re: Clear coding ?

Post by Henk »

Maybe OO programming is safe if you make all objects immutable. Don't know if that works in practice.
mvk
Posts: 589
Joined: Tue Jun 04, 2013 10:15 pm

Re: Clear coding ?

Post by mvk »

Henk wrote:Maybe OO programming is safe if you make all objects immutable. Don't know if that works in practice.
Encapsulating state is generally considered a key defining property of OO. It would be Value Oriented programming if there were no mutable state. Some also call that functional programming of course. There is empirical evidence that that can work in the sense that products are made with it and people make their living that way.
[Account deleted]
flok

Re: Clear coding ?

Post by flok »

Kempelen wrote:why dont you use defines:

#define OR ||

if (a OR b) {...}

or

#define OR(a,b) ((a) || (b))

if OR(a,b) {....}
Yeah!
and:

#define THEN {
#define ELSE } else {
#define ENDIF }

I could go on :-)
User avatar
hgm
Posts: 27807
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: Clear coding ?

Post by hgm »

That reminds me a bit of an ed script I made to convert BASIC to C...
flok

Re: Clear coding ?

Post by flok »

Henk,

You're not serious, right?