In a perfect world all methods would be short and succinct.

Unfortunately we don't live in a perfect world and it's sometimes more
confusing to split things up than to just leave longer methods. I've seen
plenty of code where 200 lines was the realistic minimum without creating
methods that had 15 or more parameters. Try implementing DES, or any other
encryption algorithm for that matter, and you'll probably find that your
methods are a lot longer than you'd really like.

I do agree though that use of this is a stylistic thing more than anything
else.

Spike

On 10/28/05, Martin Wood <[EMAIL PROTECTED]> wrote:
>
> > If you come along maintain someone's code 6 months from now and you find
> a
> > complex method of 200 lines of so, it's useful to have the this prefix
> to
> > distinguish between variables that are local to the function and those
> that
> > are available to the instance.
>
> true, but i would also immediately re-factor it into shorter, clearer
> methods.
>
> anyway, i think its more a matter of taste rather than good or bad
> programming.
>
> theres places where you need to use it, but otherwise do what you like. :)
>
>
>
>
> martin
> _______________________________________________
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>



--
--------------------------------------------
Stephen Milligan
Do you do the Badger?
http://www.yellowbadger.com

Do you cfeclipse? http://www.cfeclipse.org
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to