Click here to Skip to main content
15,913,773 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: goto statement Pin
Stefan_Lang10-Nov-13 23:13
Stefan_Lang10-Nov-13 23:13 
GeneralRe: goto statement Pin
vl211-Nov-13 7:46
vl211-Nov-13 7:46 
GeneralRe: goto statement Pin
Stefan_Lang11-Nov-13 20:30
Stefan_Lang11-Nov-13 20:30 
GeneralRe: goto statement Pin
vl212-Nov-13 0:44
vl212-Nov-13 0:44 
GeneralRe: goto statement Pin
jschell12-Nov-13 9:56
jschell12-Nov-13 9:56 
GeneralRe: goto statement Pin
Stefan_Lang12-Nov-13 21:19
Stefan_Lang12-Nov-13 21:19 
GeneralRe: goto statement Pin
jschell13-Nov-13 10:27
jschell13-Nov-13 10:27 
GeneralRe: goto statement Pin
Stefan_Lang13-Nov-13 21:07
Stefan_Lang13-Nov-13 21:07 
jschell wrote:
so slowing it down further wasn't an option

Which implies an alternative implementation would slow it down. Given the level of optimization current compilers can achieve, there is no way to know that for sure short of running actual performance tests.

jschell wrote:
actual cost of maintenance is significant because of other more serious factors. So minor corrections will have no impact.

Which assumes that the complications and obfuscations caused by overusing goto always only results in minor complications, or that you can even measure whether it is or not. That does not match my experience: In the cases I've seen goto being used, it considerably increased the time required to understand the code and (if required) fix it. Time is money is maintenance cost. If overall that didn't add up to the majority of the cost this was only true because goto was in fact used rarely.

I don't buy the reasoning that "it doesn't matter what you do in this case because overall it will be neglectable". If everyone lives by that rule, everything you do will be considered neglectable, and nobody will care about the consequences.
jschell wrote:
businesses that do not quantify maintenance costs and do not even attempt to track it

All businesses have to add up the numbers at the end of the year. Even if they don't accurately track it (or you just don't see how they do it), they must strive to keep maintenance cost at a minimum.
GOTOs are a bit like wire coat hangers: they tend to breed in the darkness, such that where there once were few, eventually there are many, and the program's architecture collapses beneath them. (Fran Poretto)

GeneralRe: goto statement Pin
jschell14-Nov-13 7:54
jschell14-Nov-13 7:54 
GeneralRe: goto statement Pin
Stefan_Lang14-Nov-13 23:15
Stefan_Lang14-Nov-13 23:15 
GeneralRe: goto statement Pin
jschell15-Nov-13 12:28
jschell15-Nov-13 12:28 
GeneralRe: goto statement Pin
Stefan_Lang17-Nov-13 21:29
Stefan_Lang17-Nov-13 21:29 
GeneralRe: goto statement Pin
jschell18-Nov-13 8:13
jschell18-Nov-13 8:13 
GeneralRe: goto statement Pin
Stefan_Lang13-Nov-13 21:22
Stefan_Lang13-Nov-13 21:22 
GeneralRe: goto statement Pin
jschell18-Nov-13 8:17
jschell18-Nov-13 8:17 
GeneralRe: goto statement Pin
Stefan_Lang18-Nov-13 20:54
Stefan_Lang18-Nov-13 20:54 
GeneralRe: goto statement Pin
jschell19-Nov-13 10:39
jschell19-Nov-13 10:39 
GeneralRe: goto statement Pin
Stefan_Lang19-Nov-13 22:33
Stefan_Lang19-Nov-13 22:33 
GeneralRe: goto statement Pin
jschell20-Nov-13 9:54
jschell20-Nov-13 9:54 
GeneralRe: goto statement Pin
Bill_Hallahan11-Nov-13 17:39
Bill_Hallahan11-Nov-13 17:39 
GeneralRe: goto statement Pin
vl212-Nov-13 0:47
vl212-Nov-13 0:47 
GeneralRe: goto statement Pin
Bill_Hallahan12-Nov-13 13:35
Bill_Hallahan12-Nov-13 13:35 
GeneralRe: goto statement Pin
Stefan_Lang12-Nov-13 1:27
Stefan_Lang12-Nov-13 1:27 
GeneralRe: goto statement Pin
vl212-Nov-13 1:33
vl212-Nov-13 1:33 
GeneralRe: goto statement Pin
Bill_Hallahan12-Nov-13 13:42
Bill_Hallahan12-Nov-13 13:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.