Print

Author Topic: Marioguy's Restraunt  (Read 22720 times)

Insane Steve

  • Professional Cynic
« Reply #30 on: September 25, 2003, 08:03:52 PM »
"Ooh, GoTo? You're gonna get some serious spaghetti code, there."

I've never had any problems using GoTo in my low-quality programs I make on the TI-86 - why is everyone so against the concept of the GoTo command?

And don't close this topic. I need to learn why GoTo is bad.

Stupid Quotes: (4th edition)
"Leningrad? Wasn`t that named after John Lennon?"
~Kid in my 10th grade Ancient History class (he passed with a C, too)
~I.S.~

Fifth

  • Quadruped
« Reply #31 on: September 25, 2003, 09:16:09 PM »
I don't know if I can explain it well, but I'll try...
GoTo isn't bad, per se, it just lacks organization.  Most programs are built upon a main function, which contains conditions, loops, and all that rot.  There are also independant functions which can be called and executed, returning afterward to the original place in the code.  To use GoTo... the program jumps from any point in the code to any other.  A single label could be referred to by any number of points.  You may have a clear idea on what's going on at the start, but as things get more complex, or if you come back to it after time, it may not be clear as to what's what, or where.  To add new code, logical progression may not exist, and so you may end up having to root through masses of pointing GoTo's just to get a linear sense.  And then debugging... can be a whole other issue.

But that's just general.  For all I know, you could be making some very logical code using GoTo.
...And I've also tried coding on the TI-86, and it's true that GoTo always seems the best way to get any sort of direction, as it's quite difficult to discern betwixt nested loops.
...And have you ever noticed, on the TI-86, how eventually, after using enough GoTo's, things start to slow down?  I think perhaps it holds the position data from each GoTo it goes through, though I've never found a command to send it back...

Go Moon!
Go Moon!

« Reply #32 on: September 26, 2003, 01:24:25 PM »
GoTo has been proven pointless. Using flawless logic, people found that anything GoTo can do, other functions can do and make it look nicer and actually follow a flow. Modern programmers regard GoTo as the devil, and its use is universally frowned upon. I don't even know why modern languages like VB.NET still include it.


But for the love of programming, don't use it.


EDIT: This is the original groundbreaking article that started the revolution.



“I’m a stupid fatty and I love to play with my Easy Bake oven!”

Edited by - Lizard Dude on 9/26/2003 12:29:09 PM


« Reply #33 on: September 26, 2003, 04:34:16 PM »
I don't mind goto. I tend to use it. Maybe I'm a COMPLETE AMATEUR, but still...
Yeah! Us Yoshis are the best! We eat and eat and help Mario and eat and lose our kids...and...other stuff.

Chupperson Weird

  • Not interested.
« Reply #34 on: September 26, 2003, 08:15:33 PM »
...I'm still stuck in the old BASIC days.
That was a joke.

Insane Steve

  • Professional Cynic
« Reply #35 on: September 26, 2003, 08:20:21 PM »
Go complete amateur programmers! (I am one, too. My best "effort" is a casino game that plays blackjack, roulette, and horse racing... it's somewhat like a text version of the game "Vegas Stakes". Yes, people do confront you in my game, too. I do have a working slot machine, too. My current game is a terrible RPG that is done with horribly inefficent coding that a good programmer could do with 1/3 the memory...)

Yes, I can create decent programs with GoTo. Although that is because I'm not a good programmer and thus cannot find ways to avoid the GoTo function.

Stupid Quotes: (4th edition)
"Leningrad? Wasn`t that named after John Lennon?"
~Kid in my 10th grade Ancient History class (he passed with a C, too)
~I.S.~

Luigison

  • Old Person™
« Reply #36 on: September 26, 2003, 08:25:08 PM »
I agree that using Go To is bad practice, but I use function in a similiar bad way.

---
2+2=5
“Evolution has shaped us with perceptions that allow us to survive. But part of that involves hiding from us the stuff we don’t need to know."

« Reply #37 on: September 27, 2003, 06:08:28 AM »
You can sure forget about me eating there!

-------------------------------------------------------------------

You messed up my moose!-Rabbit
"I hate people who quote themselves in there signatures"-Me

WarpRattler

  • Paid by the word
« Reply #38 on: September 27, 2003, 11:47:02 AM »
CLOSE THIS TOPIC!



No more yays! I can post in closed topics! I like pie.All your base are belong to us.AIM name: donotcare95

("o0o") My metroid thinks you are stupid. People who

...v...v disagree with metroids often get sucked dry.


Chupperson Weird

  • Not interested.
« Reply #39 on: September 27, 2003, 10:51:29 PM »
No! GoTo Discussion is cool!
That was a joke.

Insane Steve

  • Professional Cynic
« Reply #40 on: September 27, 2003, 11:05:14 PM »
Yea. Go GoTo! Errr... I mean, DIE GOTO! Yea, that's it.

I really need to learn how to program without GoTo.

Stupid Quotes: (4th edition)
"Leningrad? Wasn`t that named after John Lennon?"
~Kid in my 10th grade Ancient History class (he passed with a C, too)
~I.S.~

« Reply #41 on: September 28, 2003, 12:48:46 AM »
Just remember there is nothing you can do with it that you can't do with something else, so it is completely useless. Go For loops and Until statements!



“I’m a stupid fatty and I love to play with my Easy Bake oven!”


« Reply #42 on: September 29, 2003, 05:19:47 PM »
Are you going to argue about GoTo or are you going to order something?

It''s ah me marioguy!
I HATE JON!!! He betrayed me. So now everyone can have his picture.

« Reply #43 on: September 29, 2003, 05:24:51 PM »
*chicken walks in* I feel like some Kung Pao Chicken! *grabs chicken and takes it to the kitchen* Come and get it!

It''s ah me marioguy!
I HATE JON!!! He betrayed me. So now everyone can have his picture.

Insane Steve

  • Professional Cynic
« Reply #44 on: September 29, 2003, 05:28:23 PM »
Actually, I DID order something. I believe I asked for a dnL with vodka and I still have yet to get it...

Ok, I'll try Until and Loops. I know a bit about loops, but I need to get acquainted with the Until function a bit better.

Stupid Quotes: (4th edition)
"Leningrad? Wasn`t that named after John Lennon?"
~Kid in my 10th grade Ancient History class (he passed with a C, too)
~I.S.~

Print