Register and join over 40,000 other developers!
Recent Topics
-
The Game You Are Waiting For?
WendellHarper - Dec 06 2020 01:21 PM
-
Quora and Reddit Backlinks
WendellHarper - Dec 06 2020 01:14 PM
-
Delete account
pindo - Jul 23 2020 01:33 AM
-
Print specific values from dictionary with a specific key name
Siten0308 - Jun 20 2019 01:43 PM
-
Learn algorithms and programming concepts
johnnylo - Apr 23 2019 07:49 AM
Recent Blog Entries
Recent Status Updates
Popular Tags
- networking
- Managed C++
- stream
- console
- database
- authentication
- Visual Basic 4 / 5 / 6
- session
- Connection
- asp.net
- import
- syntax
- hardware
- html5
- array
- mysql
- java
- php
- c++
- string
- C#
- html
- loop
- timer
- jquery
- ajax
- javascript
- programming
- android
- css
- assembly
- c
- form
- vb.net
- xml
- linked list
- login
- encryption
- pseudocode
- calculator
- sql
- python
- setup
- help
- game
- combobox
- binary
- hello world
- grid
- innerHTML

Why doesn't anyone use Goto anymore?
Started by
Donovan
, Sep 09 2009 08:39 AM
21 replies to this topic
#13
Guest_Jordan_*
Posted 10 September 2009 - 04:09 AM
Apparently PHP developers will be using Goto again "coming soon to a PHP release near you".
#14
Guest_h4x_*
Posted 10 September 2009 - 06:25 AM
i write code for my own purposes in c and i use goto.
#15
Posted 10 September 2009 - 07:04 AM
My personal philosophy: don't use goto EVER. I saw the link that talked about "rewriting to remove gotos". I admit it's tricky to remove them, but they were all examples where it wasn't needed in the first place. Boundary checking!
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog
My MineCraft server site: http://banishedwings.enjin.com/
#16
Posted 10 September 2009 - 08:08 AM
I haven't used goto in a higher level language more than a few times, there are usually better ways to do stuff..
Hey! Check out my new Toyota keyboaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
#17
Posted 10 September 2009 - 09:09 AM
For once I kind of agree...i write code for my own purposes in c and i use goto.
We should follow best practices, and I can't think of a good reason to use it,
but that doesn't mean there isn't one and best practices is only a guide.
GOTO is a straight forward command that does what it says, no strings attached

GOTO exists in many languages... WHY?
(A good extension to this thread would be: Name all programming languages where goto exists)
I don't use GOTO, but if I had to work on someone else's code who does,
I wouldn't have a problem with it.
Additional NOTE:
GOTO exists in perl and I always heard there is
no wrong way to write a perl program.

#18
Posted 10 September 2009 - 10:29 AM
No one uses Goto anymore because it sucks ** and is a plague upon decent coders. You get a bunch of n00bs jumping from line 560 to line 200, wtf? Ever heard of a function?
Goto == spaghetti code == **
Goto == spaghetti code == **
#19
Posted 19 August 2010 - 01:17 AM
Interesting replies, I will be sure to keep a lot of this in mind.

| +Friend Me | My Graphics | Forum Rules | Forum Support | Forum FAQ |
| The CodeCall.net Tutorial's Board |
#20
Posted 19 August 2010 - 02:06 AM
Do you get an award for digging up 7+ threads that are years old in one hour?
All new problems require investigation, and so if errors are problems, try to learn as much as you can and report back.
#21
Posted 19 August 2010 - 11:23 AM
Nope, but these are my old threads and I decided to check all my old threads just for ****s and grins and for memories..

| +Friend Me | My Graphics | Forum Rules | Forum Support | Forum FAQ |
| The CodeCall.net Tutorial's Board |
#22
Posted 19 August 2010 - 03:31 PM
Gotos break the structural organization of a program. Most programming languages organize code into blocks. These blocks are discrete sections of code that execute under a certain condition or a certain number of times. If a goto is in there, then there is no longer any structure, the blocks are no longer discrete, and spaghetti code results. The main disadvantage of gotos is that they make code nearly impossible to read.
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download