× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: RE: ILE RPG:Is the use of ITER & LEAVE Structured Programming?
  • From: "Raikov, Leonid" <Raikovl1@xxxxxxxxxxxxxxxx>
  • Date: Thu, 23 Apr 1998 14:18:51 +0100

Purism in programming like in anything else is the privilege of the
young.
You can badly cut yourself with a knife, even worse - you can shoot
yourself,
but nobody is even thinking of banning knives and rifles ALTOGETHER.
Yes, the
scope of their use should be limited to only those situations where the
are needed.
Structured programming, object-oriented programming, client-server
models, etc.
are just great, but to insist on doing it this way and none other is,
how shall I put it,
naive? 

Personally I love GOTOs, and I use them a lot, especially when I have to
modify
old programs without actually re-engineering them. Sometimes (shame on
me!)
I use them in my own programs, and, believe me, they are no less
structured then
any. Yes, in big projects it's better to stick with standards, and the
structured programming
standard is probably a good one to adopt, but to spread it to all
programming activities is,
how shall I put it, ridiculous?

Lo



> -----Original Message-----
> From: Scott Johnson [SMTP:sjohnson@highsmith.com]
> Sent: 23 April 1998 12:20
> To:   'MIDRANGE-L@midrange.com'
> Subject:      RE: ILE RPG:Is the use of ITER & LEAVE Structured
> Programming?
> 
> Frank,
> 
> I am on your side.  ITER and LEAVE are not structured programming.
> They are just GOTOs in disguise.  Rumor has it that IBM is working on
> another one that will allow a person to leave an subroutine in the
> middle
> of it. I ask why?  Couldn't their time be better spent elsewhere?
> Wouldn't
> this be the same as a GOTO and a TAG??
> 
> I view Structured Programming as one entry point/one exit point.
> DO loops are entered at the top and you exit at the bottom.  Same
> with Subroutines.  I just don't like that leaving something in the
> middle.
> It can make debugging somebody else's code more difficult.
> 
> --  My Two Cents Worth
> ------------------------------------------------------
> Scott P. Johnson
> Programmer/Analyst
> IBM Certified Specialist - AS/400 RPG Programmer
> Highsmith Inc.
> W5527 Hwy 106, PO BOX 800
> Fort Atkinson, WI 53538-0800
> TEL:  920-563-9571                FAX:  920-563-7395
> sjohnson@highsmith.com
> www.highsmith.com
> ------------------------------------------------------
> ----------
> From:
> frank.meaney@nellcorpb.com[SMTP:frank.meaney@nellcorpb.com]
> Sent:         Thursday, April 23, 1998 3:06 PM
> To:   MIDRANGE-L@midrange.com
> Subject:      ILE RPG:Is the use of ITER & LEAVE Structured
> Programming?
>      
>      Hi Folks,
>      
>      I was just looking at a printout from the News400.com website
> about 
>      RPG ILE (tips and techniques). I belive the text was authored by
> 
>      Bryan Meyers. However he mentioned the use of ITER and LEAVE in
> the 
>      context of structured programming. 
>      
>      I suppose I am a purist and I ensure that these opcodes are not
> part 
>      of any new development that we produce. IMHO these opcodes are
> GOTO's 
>      without TAGs and are not structured programming. I'd love to hear
> 
>      other opinions on this. And what is a strict defination of
> Structured 
>      programming.
>      
>      Regards,
>      
>      Frank Meaney.
>      (Unisoft Systems Ltd)     
> 
> +---
> | This is the Midrange System Mailing List!
> | To submit a new message, send your mail to MIDRANGE-L@midrange.com.
> | To unsubscribe from this list send email to
> MIDRANGE-L-UNSUB@midrange.com.
> | Questions should be directed to the list owner/operator:
> david@midrange.com
> +---
+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---


As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.