comp.lang.ada
 help / color / mirror / Atom feed
* if-then-no-else  Programming
@ 2016-04-19  2:24 Charles H. Sampson
  2016-04-19  3:08 ` Dennis Lee Bieber
                   ` (7 more replies)
  0 siblings, 8 replies; 17+ messages in thread
From: Charles H. Sampson @ 2016-04-19  2:24 UTC (permalink / raw)


It's hard to believe that it's been over six years since I wrote a line
of code for profit. If what my son tells me, there's been what I
consider a major change in software engineering during that time.

He says that there's a move to ban the use of the else-statement. The
preferred approach is to execute the else-part first, then change the
effect if the if-condition is satisfied. For example:

   Variable := 3;
   if <condtion> then
      Variable := 1;
   end if;

In addition to some other goodness attributes, this is supposed to be
clearer than the if-then-else form.

Is he right? (He's not really a coder. His experience is in wire-frame
animation but he's being forced into coding by the job market.) If he's
not right, have any of you even heard of an area of the software
"profession" where this position is held?

Charlie
-- 
Nobody in this country got rich on his own.  You built a factory--good.
But you moved your goods on roads we all paid for.  You hired workers we
all paid to educate. So keep a big hunk of the money from your factory.
But take a hunk and pay it forward.  Elizabeth Warren (paraphrased)


^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2016-04-20 23:07 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-19  2:24 if-then-no-else Programming Charles H. Sampson
2016-04-19  3:08 ` Dennis Lee Bieber
2016-04-19  3:19 ` Jeffrey R. Carter
2016-04-19  6:18 ` Nasser M. Abbasi
2016-04-19  7:55 ` Dmitry A. Kazakov
2016-04-19 12:17 ` G.B.
2016-04-20 22:26   ` Martin
2016-04-19 13:27 ` gautier_niouzes
2016-04-19 19:51 ` Randy Brukardt
2016-04-19 22:40   ` Shark8
2016-04-20 22:35     ` Randy Brukardt
2016-04-20  7:56   ` Charles H. Sampson
2016-04-20 11:26     ` Dennis Lee Bieber
2016-04-20 12:32       ` G.B.
2016-04-20 12:36         ` G.B.
2016-04-20 23:07     ` Jeffrey R. Carter
2016-04-19 20:32 ` Charles H. Sampson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox