Re: When to use delegates
- From: Phil Carmody <thefatphil_demunged@xxxxxxxxxxx>
- Date: Wed, 12 Aug 2009 11:09:23 +0300
jon-boy <nospam@xxxxxxxxxxxxxx> writes:
Hi there,
More of a general question, rather than an issue.
Basically, I'm wondering where and when I should be using delegates in
my applications? I obviously use events, so do use them, but I've
never once declared my own delegates in code.
Design patterns are a large component in the dumbing down of
modern software engineering. It's almost as if they were invented
so that the programmer doesn't need to think. You end up with
O(lg(n)) problems being "solved" with O(n^2) implemetations.
That, with n in the thousands, was a nightmare I one saw in a
r-t/e context a few years back. I was reminded of that just this
morning, as I heard that it's a cancer that plagues some bits of
our current (again, r-t/e) project too. Just another reason DBus
sucks, I guess, not that I needed any more evidence of that.
So, am I missing out on something good? I understand them in theory,
but every example I see on the internet is trivial and stupid - I just
can't relate these to real-world business problems that I face and
seemingly manage to solve without them.
Can anyone give a good run down of them and any potential areas in my
designs that I should look to use them?
Never mutilate your approach to a problem to fit a solution to
a different problem that you already have.
Phil
--
If GML was an infant, SGML is the bright youngster far exceeds
expectations and made its parents too proud, but XML is the
drug-addicted gang member who had committed his first murder
before he had sex, which was rape. -- Erik Naggum (1965-2009)
.
- References:
- When to use delegates
- From: jon-boy
- When to use delegates
- Prev by Date: Re: detab utility challenge.
- Next by Date: Re: Rounding error when converting from double to int
- Previous by thread: Re: When to use delegates
- Next by thread: Can you give me a hand?
- Index(es):
Relevant Pages
|