Posts: 285
Threads: 70
Joined: Feb 2005
I am having a argument with some guys over here in the UK, about Structured Programming which they consider extremely important as taught in some schools etc I believe. Am I not mistaken in thinking this may be all very laudable, but that in most BASICS such as Qbasic and Fbasic you cannot adopt Structured Programming, such as perhaps the almost complete elimination of GOTO.
Gordon
Posts: 1,752
Threads: 21
Joined: Jun 2002
You can adopt structured programming in almost any procedural language, QB and FB included. In fact, most QB and nearly all FB programs are structured.
Posts: 285
Threads: 70
Joined: Feb 2005
Thanks Plasma
I did learn the principles years ago. I assume the main object is to try to avoid the use of GOTO.
Gordon
Posts: 488
Threads: 19
Joined: Sep 2005
heres a pretty simple structure idea,
->Define variables
->Main loops or program
->Sub routines
->Data statements
its rpetty simple, plus having different ppl asigned to things like graphics, sound, and such is a good idea[/list]
Posts: 602
Threads: 27
Joined: Oct 2004
Quote:You can adopt structured programming in almost any procedural language, QB and FB included.
true
Quote: In fact, most QB and nearly all FB programs are structured.
muahah...
quote="NecrosIhsan"]
[/quote]
Posts: 484
Threads: 14
Joined: Apr 2005
what about ASM?, im not a massive ASM geek but the Assemblers i've used you have to implement your own versions of constructs such as DO, IF etc using labels and gotos. does this mean its an unstructured language?
EVEN MEN OF STEEL RUST.
Posts: 525
Threads: 23
Joined: Oct 2004
ASM in itself has no structure....no loops, no IFs...just JUMPS and Labels. :-).
Posts: 677
Threads: 57
Joined: Jan 2005
ASM is often described as "Random Code with no structure what so-ever"
url=http://www.sloganizer.net/en/]
[/url]
Posts: 484
Threads: 14
Joined: Apr 2005
Quote:just JUMPS
yeah shows how long ive been away from the big bad wolf when im calling em gotos!
EVEN MEN OF STEEL RUST.
Posts: 677
Threads: 57
Joined: Jan 2005
I used to use GOTO all the time. Now i use multiple loops and 'Access' variables to allow passage through them loops
url=http://www.sloganizer.net/en/]
[/url]