Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Structured Programming
#1
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
Reply
#2
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.
Reply
#3
Thanks Plasma

I did learn the principles years ago. I assume the main object is to try to avoid the use of GOTO.

Gordon
Reply
#4
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]
Reply
#5
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"]
[Image: yagl1.png]
[/quote]
Reply
#6
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.
[Image: chav.gif]
Reply
#7
ASM in itself has no structure....no loops, no IFs...just JUMPS and Labels. :-).
hen they say it can't be done, THAT's when they call me ;-).

[Image: kaffee.gif]
[Image: mystikshadows.png]

need hosting: http://www.jc-hosting.net
All about ASCII: http://www.ascii-world.com
Reply
#8
ASM is often described as "Random Code with no structure what so-ever"
url=http://www.sloganizer.net/en/][Image: style4,TheDarkJay.png][/url]
Reply
#9
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.
[Image: chav.gif]
Reply
#10
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/][Image: style4,TheDarkJay.png][/url]
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)