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:
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???
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.
*****
It's dangerous thinking.
"It works and runs at 20FPS on my 67GHz, 26Gb RAM hyper computer. So it should work for everyone"
It's what I, and some others, call the "C virus" (Not saying C coders are producing crappy programs, but a few larger crappy slow resource eating pieces of poo were made in C)

I'll just go use fixed paths, unmanageable code, and no optimizations.
It works for me!

Allegory(sp?):
Say you're a spanish (as in, born in spain), no special education.
Now, you move to China, at the age of 50 (No prior education in any language except spanish).
At school/work, you must speak chinese, end of story.
However, at home,. you must speak french.
Chewbakas live on the planet Chewbaka, but they're hairy

And it does not make sense!
Quote:"It works and runs at 20FPS on my 67GHz, 26Gb RAM hyper computer. So it should work for everyone"
It's what I, and some others, call the "C virus" (Not saying C coders are producing crappy programs, but a few larger crappy slow resource eating pieces of poo were made in C)

what drug are you on? c compilers are probably the best optimized compilers around atm. so if a programm written in c is slow, it's the c programmers fault not c's fault. you can produce resouce eating bloat ware in any language, and i'd say that c is the one language that will try to reduce the stupidity of the programmer the best by its own. pulling stuff out of your ass swedish? ( j/k )
Quote:what drug are you on? c compilers are probably the best optimized compilers around atm. so if a programm written in c is slow, it's the c programmers fault not c's fault.
I don't in any way mean to assume, but I think that was her point. :wink:

Quote:you can produce resouce eating bloat ware in any language, and i'd say that c is the one language that will try to reduce the stupidity of the programmer the best by its own.

[rant]

Absurd. As far as optimal - and safe - code, C is horrible. How can you say a language that let's you cast from arbitrary objects is trying to reduce programmer stupidty? If anything, C allows the bad coding habits of programmers to shine through - much more so than that of languages like Java or C++. (yeah, GC can be a noticable hit, and programmers who don't understand the ramifications of references verses values will undoubtably write inefficient code, but you have the same thing in C with values and pointers. Besides, we're talking about programmer's habits, and a strong-typed language like C++ only builds better programming habits than a weakly typed, unsafe language like C).

[/rant]

I don't know what drugs Z!re's on, but I'd rather some of yours - they seem more potent.
i agree of course that C's syntax is no where near enforcing good programming practices. what i mean by "the stupidity" of the programmer is inproper choice of datastructures and algorithms. of course an O(n³) algo stays at that complexity no matter what language you use but the c compilers around are probably the best optimizing compilers ( in a hobbyist environment ) and will reduce the overall runtime better than say a basic compiler. many higherlevel languages ( eiffel for example ) use c ( and its compilers ) as a backend due to its compilers optimization capabilities.

i'm aware that exactly this circumstance was her point. being on a basic plattform and knowing how evil basic ppl can be ( looks at z!re, smacks her hard ) i'm a little sensitive to language bashing. calling something a "C Virus" where it is in no way related to c really but more to the philosophy of the programmer just fuels the "nuu you are but a c zealot" "NUUU you are a basic zealot" "debate".

in case i again stated something incorrectly i apologize beforehand and ensure you that i'm not taking any drugs apart from nicotine.

edit: i nearly forgot, can you say reinterpret_cast?
Quote:pulling stuff out of your ass swedish?
I'll have you know that my ass is quite fine, and nice to touch/sqeueeze.
Quote:
marzecTM Wrote:pulling stuff out of your ass swedish?
I'll have you know that my ass is quite fine, and nice to touch/sqeueeze.

oh yeah? YOU SUCK! fieldview sucks! your life is meaningless!

edit: i'm a bit slow tonight was that an offer?? :o
Quote:edit: i'm a bit slow tonight was that an offer?? :o
Do I have to spell it out? Oh wait, I did.. hm.. :roll: Tongue
Cut the flaming out here (not speaking about you marzec, but about those directing it at Axipher). Seriously, if you are tired of someone or want to tell them to "stop posting" that could be essentially solved by ignoring them. If really accomplishes the same thing.

And I don't want an arguement here about how ignoring people on here is bad and a terrible mod to add. When you flame someone's posts all the time, you bring the board down. It's better for the board community if you ignore them so you don't have to reply to their messages.

Also, I get one more report of a message axipher posted that has nothing wrong, just that they say something that may not be correct in theory or they don't understand a concept and you're annoyed, it'll count as a warning for you. I'm tired of this bullshit.

If anyone has any questions on any of this, please pm me.
Quote:
marzecTM Wrote:edit: i'm a bit slow tonight was that an offer?? :o
Do I have to spell it out? Oh wait, I did.. hm.. :roll: Tongue

ok lemme consider the options

1) "touching" the ass of a blond swedish big fat viking and getting eaten by said ass
2) "touching" a nice blackhaired woman's ass that is only 200km away from me and officially mine

i go for door #2

edit: as i said i'm slow, i think the ignore mod sucks ! ha! didn't expect that huh? seriously though, if ppl are not mature enough to ignore somebody on their own then i sense a certain satisfaction with flaming the hell out of newbies there. those ppl will never use ignore anyways but rather plonk the poor noob
Quote:edit: as i said i'm slow, i think the ignore mod sucks ! ha! didn't expect that huh? seriously though, if ppl are not mature enough to ignore somebody on their own then i sense a certain satisfaction with flaming the hell out of newbies there. those ppl will never use ignore anyways but rather plonk the poor noob

It sucks that it's there and that some people aren't mature enough, but it's either that or start punishments for flaming. This board isn't intended to be a harsh or flame based forum. As stated before, there are forums for that if people would like. So that was just a general warning letting people know they need to cool it.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16