Qbasicnews.com

Full Version: Structured Programming
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
Quote:i like this quote from carls blog

Quote:Once when I gave a demo of Liberty BASIC to a fellow programmer, his response was, "Who would want to use that?"

just how i felt when i tried liberty basic (and i felt it 100x stronger with justbasic)
Well, the person who said this would have said the same thing about QBasic, or any other BASIC for that matter. My point was that this person didn't understand that there is a valid need for programming languages that are small, or fun, or just for messing around. :wink:

Just out of curiosity, what didn't you like about LB? I'm always interested in getting feedback. You can email me in private if you don't want to start a Liberty BASIC thread on this board. carlg@libertybasic.com

Thanks,

-Carl
Quote:
stylin Wrote:
axipher Wrote:I do fine with fb, and really, whats wrong with using GOTO/GOSUB's, if the program works the that should be enough. Shouldn't it???
uh oh.
seconded

Thirded. GOTO/GOSUB is an outdated way to program, and it makes things terrible to read and to debug. It also has no respect for variable scope. The only merit that I can think of learning it would be that that's essentially how assembly language works.
Quote:Thanks again Nathan,

I downloaded it OK and it appears to be the best, though it would not COPY into Word so will upload to my site as it is.

Just to amuse you, I learnt Spanish at school, because it was considered to be easier than French or German, as I was put in the lower grades. Trouble was the Spanish Master was hopeless, and though top of the class I failed to get an extra credit in Spanish which would have enabled me to go to Oxford University.

Gordon

I highly doubt it. Don't blame yourself, blame Oxford.. they only want your money. Confusedhifty:
Quote:
yetifoot Wrote:i like this quote from carls blog

Quote:Once when I gave a demo of Liberty BASIC to a fellow programmer, his response was, "Who would want to use that?"

just how i felt when i tried liberty basic (and i felt it 100x stronger with justbasic)
Well, the person who said this would have said the same thing about QBasic, or any other BASIC for that matter. My point was that this person didn't understand that there is a valid need for programming languages that are small, or fun, or just for messing around. :wink:

Just out of curiosity, what didn't you like about LB? I'm always interested in getting feedback. You can email me in private if you don't want to start a Liberty BASIC thread on this board. carlg@libertybasic.com

Thanks,

-Carl

I agree, easy programmnig languages that can still accomplish alot are much needed, if no one ever wanted to use old programming languaegs, DOOM, pac-man, supermaro, games like that would of probably not of been made.
Quote:... easy programmnig languages that can still accomplish alot are much needed, if no one ever wanted to use old programming languaegs, DOOM, pac-man, supermaro, games like that would of probably not of been made.
What are you talking about now? Just out of morbid curiosity, what languages do you think those games were written in? (hint: if you think pac-man was an easy game to create, then you're way off track)
I never said it was easy, and maybe it's not written in BASIC, but you easily could right it in BASIC, and it would work the same. Sorry if my comments were vague, anyways, I forgot to mention this, I've never found a use for GOTO's, but the only reason I used GOSUB's was because I hadn't yet learnt how to use SUB's properly to accomplish what I wanted to do.
Quote:I never said it was easy, and maybe it's not written in BASIC, but you easily could right it in BASIC, and it would work the same.
Well, now you're talking about something else entirely. Do you want to talk about how games were originally made over a decade ago, or how those games could be rewritten in BASIC today? You change topics so much I can't keep track.

Quote:... the only reason I used GOSUB's was because I hadn't yet learnt how to use SUB's properly to accomplish what I wanted to do.
So you're making assumptions about a language you don't even know fully yet? You must be 1. a really good programmer, 2. telepathic or 3. full of BS. Which is it?
2. and 3. To prove 2., You are thinking of how annoyig I am right now and how your not sure if it is worth re-posting, but you may get around to it anyway.
Quote:2. and 3. To prove 2., You are thinking of how annoyig I am right now and how your not sure if it is worth re-posting, but you may get around to it anyway.
Stop.. posting..
Quote:I do fine with fb, and really, whats wrong with using GOTO/GOSUB's, if the program works the that should be enough. Shouldn't it???
Axipher, you made a very good point here that perhaps the structured programming purists missed.

Your point is: "if the program works...". I think that's the important issue. You wrote it, you tested it, you modify it, and you're happy with it. Almost all the QB/FB programs that all of us here write are for our own use, and are not going to have to pass inspection by some programming standards committee. If some of us chose to use gotos or gosubs because we fell comfortable coding that way and have success doing so, then "to each his own."

If the programs we write were to be maintained by programmers other than ourselves, then yes, it would be a good convention to write these programs in a structured manner.
*****
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16