Difference between revisions of "User talk:Flyfightflea"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>Flyfightflea
m
imported>DragoonWraith
(why GoTo's are not well liked.)
Line 2: Line 2:
'''Poison Spells''' [http://www.elderscrolls.com/forums/index.php?showtopic=560036]
'''Poison Spells''' [http://www.elderscrolls.com/forums/index.php?showtopic=560036]
'''Timekeeper Advanced With Autosave''' [http://www.elderscrolls.com/forums/index.php?showtopic=563886]
'''Timekeeper Advanced With Autosave''' [http://www.elderscrolls.com/forums/index.php?showtopic=563886]
==== On GoTo ====
GoTo's are confusing and makes scripts exceptionally difficult to use. While and For loops combined with well structured if/elseif/else branches have the same functionality (in nearly every situation) as GoTo, and are far easier to follow. Using GoTo makes things more confusing, and makes it much more difficult to maintain code, as if you leave it for a length of time, it becomes very difficult to follow the logic when the script is jumping around all over the place. In the relatively short scripts of Oblivion, perhaps it's not so big a deal, but in programming in general, when you have tens and hundreds of thousands of lines of code, it makes things damn near impossible to work with. Even if you have a script of several hundred lines that uses GoTo heavily and gratuitously, finding a bug would be several orders of magnitude more painful than it already is.

Revision as of 22:47, 5 October 2006

My Mods: Poison Spells [1] Timekeeper Advanced With Autosave [2]

On GoTo

GoTo's are confusing and makes scripts exceptionally difficult to use. While and For loops combined with well structured if/elseif/else branches have the same functionality (in nearly every situation) as GoTo, and are far easier to follow. Using GoTo makes things more confusing, and makes it much more difficult to maintain code, as if you leave it for a length of time, it becomes very difficult to follow the logic when the script is jumping around all over the place. In the relatively short scripts of Oblivion, perhaps it's not so big a deal, but in programming in general, when you have tens and hundreds of thousands of lines of code, it makes things damn near impossible to work with. Even if you have a script of several hundred lines that uses GoTo heavily and gratuitously, finding a bug would be several orders of magnitude more painful than it already is.