Re: The Problem with Programming



By the way the following code written in C++

if ( b == True )
{
bla bla;
}
else if ( b == False )
{
bla bla;
}
/*
else if ( b == Undefined ) // why not?!
{
bla bla;
}
*/

is more better than code

if ( b )
bla bla;
else
bla bla;

as False can be for example equal to -1. ( Undefined can be equal to 0 )

Vladimir Grigoriev

"Ingvar Nilsen" <no.spam@xxxxxxxxxxxxx> wrote in message
news:456cc6d2$1@xxxxxxxxxxxxxxxxxxxxxxxxx
Tony Bryer wrote:

As someone who has never worked in a team of more than one, I had
picked up the impression that superstar programmers can be a mixed
blessing in a team situation.

Yes. At a management session, Borcon 2004, the speaker advised us to
"hire mediocre developers for production work" (I don't remember the
exact words).
If speed is crucial, one could use a profiler to track down the
bottlenecks afterwards, otherwise he put emphasises on readability of
the code, first and foremost. He also presented examples which I before
used to regard silly programming, like:

if (b = True) then
begin
bla bla
end
else
if (b = False) then
begin
bla bla
end

is preferred to:

if (b) then
bla bla
else
bla bla

--
Ingvar Nilsen
http://www.ingvarius.com


.



Relevant Pages

  • Re: The Problem with Programming
    ... picked up the impression that superstar programmers can be a mixed ... At a management session, Borcon 2004, the speaker advised us to ...
    (borland.public.delphi.non-technical)
  • Re: The Problem with Programming
    ... otherwise he put emphasises on readability of ... the code, first and foremost. ... before used to regard silly programming, ...
    (borland.public.delphi.non-technical)
  • Re: The Problem with Programming
    ... used to regard silly programming, ... used this sort of incompetent Pascal programming as an example of what not ... to do in the company programming standards that I authored. ...
    (borland.public.delphi.non-technical)