Author: Gerd Isenberg
Date: 00:04:54 10/09/03
Go up one level in this thread
On October 08, 2003 at 20:26:11, Omid David Tabibi wrote: >On October 08, 2003 at 13:07:28, Gerd Isenberg wrote: > >>On October 08, 2003 at 10:28:33, Daniel Clausen wrote: >> >>>On October 08, 2003 at 10:12:26, Gerd Isenberg wrote: >>> >>>>On October 08, 2003 at 09:55:19, Daniel Clausen wrote: >>>> >>>>>On October 08, 2003 at 09:50:34, Gerd Isenberg wrote: >>>>> >>>>>>Comments and suggestions welcome. >>>>> >>>>>Vowels in class names. :) >>>> >>>>oups, where? >>>> >>>>If you mean that one (same "grafic" characters), >>>> >>>>const char CDblBB::binDigit[2] = { '°','\333'}; // { '0','1'}; >>>> >>>>better use that one >>>> >>>>const char CDblBB::binDigit[2] = {'0','1'}; >>>> >>>>for printing bitboards. >>>> >>>>Gerd >>>> >>>>> >>>>>Sargon >>> >>> >>>I was referring to the funny class name "CDblBB". I found out what "BB" means >>>but I'm working on the rest. :) >>> >>>Sargon >> >> >>Hehe, i had a longer name before but replaced it, >>with respect to length of lines. > >I used to use short names too, but it is hard to remember what the name stands >for (or worse: what it does!), especially in large codes. Now I use long names, >very long names actually, such that no further comments are needed :) yes, that's what i try to do too, most often. But type names longer than let say 32 characters are a bit annoying - if you have functions with some parameters of this type. On the other hand, i really like short mnemonic names like some mmx or sse2 instructions or intrinsics - one of my favorites is PUNPCKHWD ;-) > >And if you want the code to fit in fewer lines, then use > >... { > >} > >instead of: > >... >{ > >} > > >for example: > >if (...) { > >} else { > >} > > >instead of: > >if (...) >{ > >} >else >{ > >} > In changed my parentheses conventions a lot during the last 30 years. In my company there is the allying convention that beginning and ending block parentheses have to be in the same column... Gerd > > >> >>Gerd
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.