The Lounge is rated PG. If you're about to post something you wouldn't want your
kid sister to read then don't post it. No flame wars, no abusive conduct, no programming
questions and please don't post ads.
We actually do take photos on our phones of the whiteboard before we wipe it clean for precisely this reason
"There are two ways of constructing a software design: One way is to make it so simple that there are obviously no deficiencies, and the other way is to make it so complicated that there are no obvious deficiencies. The first method is far more difficult." - C.A.R. Hoare
Reminds me of when I was taking an macro economics class a while back. The textbook was actually printed on paper but there were places where it had URLs or other underlined text and I sometimes found myself tapping on the text with my finger.
My wife would have carefully opened the base of the tub, removed all the ice cream and then carefully glued the base in place so no evidence showed. She would probably also have refilled the tub with crushed ice cubes to simulate the weight.
Did I mention we both previously worked for a certain department of military intelligence?
- I would love to change the world, but they won’t give me the source code.
Smart of her, but then I would do the same to some other stuff she will open anytime soon: Carefully open the base, remove all contents, insert a tarantula to simulate the weight and then carefully glue the bottom back in.
In Texas you just had to look around a little to find a tarantula. Or a Black Widow, but these are far less scary and far more dangerous.
I have lived with several Zen masters - all of them were cats.
His last invention was an evil Lasagna. It didn't kill anyone, and it actually tasted pretty good.
The important thing with goto is knowing when not to use it - which is most of the time.
Goto has its place, but if you can use a structured loop or branch instead then your code is generally cleaner and more maintainable. But very occasionally, using a goto makes your code cleaner or much more efficient and (provided it's well documented) isn't a problem.
It's a problem when it's used because they can: and teachers who introduce it early should be hung, drawn, and quartered (and I don't mean "well hung", "sketched", and "given an apartment").
Sent from my Amstrad PC 1640 Never throw anything away, Griff
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
The only time "goto" is warranted is if in a nested structure where to accomplish the code control, a flag would need to be set and then checked more than once by the control statements within which this decision to break out is needed.
I think I have used it 3 times, and all times, I gave a very good comment as to why it was the proper choice.
Last Visit: 19-Aug-19 21:12 Last Update: 19-Aug-19 21:12