Hey all, have a few questions.
I'm currently experiencing the joy of the Say pair, and after being asked a question from the nitpicker, I completely reworked 4A (I'm waiting on a response back now) and 4B (already got it ready in the chute if I manage to buck 4A). The good news is... the reworked versions of both are MUCH shorter (and probably much faster) than the previous versions. But they are a little more intensive when it comes to math. Is there a point when we should lay the math tricks down and use longer, slower ways of getting the job done?
Next question. I've asked about it a few times and the response back has been "it depends" . So I'll ask again. It drives me nuts for some reason to use a lengthy series of if statements to set a value.
13 lines of code. Would a ternary like
be ok to use here?
Oh, I've also been looking through the other posts from time gone about Say as well. I've noticed some people are passing values back and forth. What I'm working on now only passes forward in a chain of methods. Is there a
pattern in the code that should sound a mental siren telling me when I should be returning something?
And my final question for now, I promise! In the static world of main I can't use my other methods unless I make them static or make a new object. Which method would you prefer I/we go?
Thanks in advance,
Nate
[ January 30, 2007: Message edited by: Nathan Leniz ]
The very existence of flamethrowers proves that at some time, some where, some place, someone once said to themselves "I'd really like to set those people on fire over there, but I just can't get close enough".