Re: The Problem with Programming
- From: "Vladimir Grigoriev" <vlad.moscow@xxxxxxx>
- Date: Wed, 29 Nov 2006 18:21:52 +0300
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
.
- Follow-Ups:
- Re: The Problem with Programming
- From: Ingvar Nilsen
- Re: The Problem with Programming
- Prev by Date: Re: Short circuit evaluation
- Next by Date: Re: Poll: Is it true that Delphi is dead ?
- Previous by thread: Re: The Problem with Programming
- Next by thread: Re: The Problem with Programming
- Index(es):
Relevant Pages
|
|