[H-GEN] Which is better?

Harry Phillips harry at tux.com.au
Tue Apr 27 02:53:14 EDT 2004


Russell Stuart wrote:
> 
>>First part:
>>The difference is so small that there is no difference.
>>
>>Second part:
>>The compiler is very clever, just use it, if the code gets slow then 
>>worry about it.
> 
> 
> You learn quickly!

Thanks :)

<snip>

mmmm... maybe I will understand all of that better once I have done more 
of my degree.

As an aside, I seem to confuse some of the Lab tutors with some of the 
code I write. We just just had an Assignment, it drew circles side by 
side with a radius of 10 along the top of a square of 400. Of course the 
code supplied did not take into account that if you tried to do more 
than 20 circles they would end up outside the square.

I don't know if the markers will attempt to supply a number larger than 
20 but I "fixed" the code so they could. If more than 20 then it starts 
drawing the circles down the right hand side, then along the bottom. I 
could have, but I didn't continue it so that it would then start doing 
them up the left. I just put in an upper limit to something that ended 
up on the bottom line.

I wrote the code in such a way that you could change the radius or 
square size and it would still work. I am suitably chuffed with myself.

Man, I now understand the attraction of OSS *ALOT* better. What's the 
use of writing something *really* clever if you can't show others just 
how clever you are.

As with my PHP I have no doubt I will look back and go "Oh my god, that 
is ugly!!!"

-- 
Regards,
Harry Phillips
--- Failure is not an option,
     it comes bundled with your Microsoft product.





More information about the General mailing list