Reputation
6,774
Top tag
Next privilege 10,000 Rep.
Access moderator tools
Badges
3 21 30
Newest
 Nice Answer
Impact
~177k people reached

Dec
2
comment What are the advantages of the delegate pattern over the observer pattern?
A delegate really is nothing more than an observer of an event. A delegate does not need to "handle" anything. It can safely do nothing at all and won't (or at least should not) affect the instance that triggered the event.
Dec
2
answered What are the advantages of the delegate pattern over the observer pattern?
Nov
26
comment How to tell whether your programmers are under-performing?
Have you considered that something else entirely may be going on with this person? When someone is calling in sick a lot and has to attend many personal events, my guess would be that something is happening in his private life that is distracting him at work. Badgering him about his performance isn't going to help either of you. Talk to the guy, find out what is going on in his private life, help him out if you can, give him some leeway if he's valuable enough to you - he will thank you for it and probably return with interest when his personal life is sorted out.
Nov
21
comment Why should a class be anything other than “abstract” or “final/sealed”?
@RobertHarvey: :-) for curly-brace languages. You could be right. Maybe that's why I don't like curly braces? Nah, C# is growing on me.
Nov
21
comment Why should a class be anything other than “abstract” or “final/sealed”?
@RobertHarvey: Ever heard of interposer classes? Where you give the derived class the same name as its ancestor and make sure it is closer in scope than the library unit? So you don't have to change every single line where the class is instantiated?
Nov
21
comment Why should a class be anything other than “abstract” or “final/sealed”?
@RobertHarvey: that certainly helps tremendously, but is not always necessary. Knowing the interface is often enough. Many Delphi component developers (used to) distribute the interface sections of all their units, even with "dcu-only" distributions. And nowadays reflection mechanisms also can help enormously.
Nov
21
comment Why should a class be anything other than “abstract” or “final/sealed”?
@RobertHarvey: yes it would be broken. And that is exactly when you need frameworks/libraries to be extensible. So I can program around the bugs in it without having to jump through hoops. After all: frameworks and libraries bugs do not get fixed instantly, sometimes not at all...
Nov
21
comment Programming language features that help to catch bugs early
Unit testing is not a feature of a programming language.
Nov
20
comment Is Google Closure a true compiler?
+1, and plus another for 'assumes that Wikipedia is authorative on this point'. Too many people blindly accepting whatever happens to be written there.
Nov
17
comment How to TDD test that objects are being added to a collection if the collection is private?
Yep. It sure does.
Nov
17
comment How to TDD test that objects are being added to a collection if the collection is private?
+1 for your first paragraph, though I admit the rest confuses me more than it helps. Perhaps if you made the example more concrete, it would better serve to explain your first paragraph.
Nov
16
comment Are there examples of non CRUD approaches?
You may also want to watch a talk about Datomic: infoq.com/presentations/The-Design-of-Datomic
Nov
16
answered How to be successful at BDD Specifications Workshops?
Nov
11
comment Why do node packages put a comma on a newline?
Interesting to read that I have been following a specific style... Yeah, I can now say that it is not just my preference :-)
Nov
11
comment Programming Interview : How to debug a program?
@ShivanDragon: because it is a perfectly natural response to want to answer the question...
Nov
10
comment Hallmarks of a Professional PHP Programmer
+1. I'd add team work. Developing in a small team/shop is nothing like developing in a large team/shop, even when you are in of a small team within that large team/shop.
Nov
3
comment Why is CSS3 doing animations?
And why couldn't animations be style? Animations are not the same as interactions. Interactions require a second party (user). Animations do not. So separation of concerns is not violated.
Oct
28
comment Combining template method with strategy
I'd say your thinking is pretty much spot on. If the feedback you get from your professor doesn't validate that, ask him/her to point out the flaws, or give a hint of what (s)he is after in the answer. Stop trying to read minds. Assuming stuff about what your professor (and later your users) want is possibly the worst you can do.
Oct
27
comment Is saying “if ( $a != null && $a == 5)” the same as “if ($a == 5)”
@user127379: but as the one who posed the question, you can "accept" an answer by clicking the checkmark under the vote marks.
Oct
26
comment Vocabulary: Should I call this apply or map?
Hi guys, finding new vocabulary here, can you point me to a (canonical) link where these "function patterns" are listed and described? Something akin to the Gang of Four's OO patterns?