Quote:Original post by Extrarius
Basically the code involved comparing answers given by a person taking a test to the answers specified by a teacher, but there were many aspects to each answer (ie not simple multiple choice) and each had various tolerances depending on other aspects of the answers. It was a rather complicated grading system to put it simply (the company is a contractor, and it was required by the contract), and the function in question was the comparison part. The goto didn't actually break out of all the loops, just the innermost 3 iirc (it's been a while since I worked on this part of the project), but still goto was a much better solution than what was required by the company standards.
That does sound messy :-).
Quote:Personally, I find all of the standard rather silly
Sounds like we're on the same page then. If you've got an enforced standard tying your arms behind your back, then gotos may indeed be the best solution.
Quote:Original post by Anonymous Poster
OMG!! You actually put the 'return' statements on the same line as their 'if'
statement!!!!! Truely EVIL!!!
Well, actually, that source snippet was out of /usr/include/c++/3.3/bits/stl_algo.h, which I did not write. But yes, I do place returns and throws on the same line as their if statement on occasion :-).
Quote:Anyway I must not be the only one who thinks that having as much real code visible as possible on our pittifully small screens is a good thing.
(Oh for the old days with the fanfold paper printouts.)
The last place I worked at had those old chain 132 width chain printers - and hugeass boxes of chain printer paper. Those were awesome :-).
Personally, I'm more resolution-limited. I have good eyesight, my monitor is like 19" or so and I've got it cranked up to 1600x1200 - the max. I've got an old ~17" screen which could do like 2048x1600... until windows correctly detects it, at which point it limited it to 1600x1200. I keep meaning to find a registry hack to allow the higher resolution after detection...
Also, I'd use "6pt Small Fonts" if it had a fixed character width. I've been leaning towards going back to it even though it dosn't... to make up for the lack of bold I used to set the normal "non-bold black" to a grey, and "bold black" to actual black :-).
[Edited by - MaulingMonkey on June 4, 2005 3:47:29 AM]