Re: Anonymous Methods
- From: "Jon Skeet [C# MVP]" <skeet@xxxxxxxxx>
- Date: 26 Jan 2006 03:12:24 -0800
John Smith wrote:
> My main concern about Anon methods is that as you have agreed it can
> create a mess when used to encapsulate many lines of code and the other
> main worry is reusability. If you have several developers at different
> intellectual levels working on a big project and they start using anon
> methods ( from my experience found that they would if they could!) the
> code is not only un-maintainable but severely bloated (results from
> copying and pasting).
That indicates a failure of communication and convention though.
There are many things which can be abused - just define a convention
which states what's acceptable and unacceptable, and enforce it. This
is of course easier to do if you're already using code reviews or pair
programming.
In my view the benefits (in terms of readability, mostly) of anonymous
methods outweigh the potential problems.
Jon
.
- Follow-Ups:
- Re: Anonymous Methods
- From: John Smith
- Re: Anonymous Methods
- References:
- Anonymous Methods
- From: John Smith
- Re: Anonymous Methods
- From: Daniel O'Connell [C# MVP]
- Re: Anonymous Methods
- From: John Smith
- Anonymous Methods
- Prev by Date: Re: Anonymous Methods
- Next by Date: Re: Can someone help me
- Previous by thread: Re: Anonymous Methods
- Next by thread: Re: Anonymous Methods
- Index(es):
Relevant Pages
|