From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!news.glorb.com!peer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!Xl.tags.giganews.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.nethere.com!news.nethere.com.POSTED!not-for-mail NNTP-Posting-Date: Mon, 18 Apr 2016 21:24:51 -0500 Newsgroups: comp.lang.ada Subject: if-then-no-else Programming From: csampson@inetworld.net (Charles H. Sampson) Date: Mon, 18 Apr 2016 19:24:51 -0700 Message-ID: <1mlx1gf.ebrae11jak5tyN%csampson@inetworld.net> User-Agent: MacSOUP/2.8.3 (Mac OS X version 10.5.8 (PPC)) X-Usenet-Provider: http://www.giganews.com X-Trace: sv3-4g3nycKMZ+RiJdQDwRhXzsqTzZkkwTBJuHDwulO76Sy/gieARche7ClELjxNF11lHsoKNjPaFTe2xsy!C7tyjpMWs44ZxOIoHs6RXLnLWZxVj84Mp9CF7VogiJtyeaVdnIvquKnQvVe0UgjXW9UgJRwwjnmw!esHAwvvZI/RshK2Z1VOumeeFX/1jcQ== X-Complaints-To: abuse@nethere.com X-DMCA-Complaints-To: abuse@nethere.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 2089 X-Received-Bytes: 2201 X-Received-Body-CRC: 2256991366 Xref: news.eternal-september.org comp.lang.ada:30181 Date: 2016-04-18T19:24:51-07:00 List-Id: 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 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)