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

Jun
21
comment Two contradicting definitions of Interface Segregation Principle – which one is correct?
I so disagree with your assertion that "client" is implementor in SOLID talk. For one it is linguistic nonsense to call a provider (implementer) a client of what it is providing (implementing). I also have not seen any article on SOLID that tries to convey this, but I may simply have missed that. Most importantly though it sets up the implementer of an interface as the one deciding what should be in the interface. And that makes no sense to me. The callers/users of an interface define what they need out of an interface and the implementers (plural) of that interface are bound to provide it.
Jun
21
answered Two contradicting definitions of Interface Segregation Principle – which one is correct?
Jun
21
answered Finally block for methods - is it a bad idea?
Jun
21
answered Storing data in 2 different systems/database structures
Jun
21
comment What's with the aversion to documentation in the industry?
Code can lie. Comments should not say what the code is doing, but what the code is intended to do. The actual code may be wrong and without the comment you won't know whether the code is doing what it is supposed to do or contains a bug.
Jun
19
comment Help me to understand following points about the strategy pattern, how it relates to open/closed principle
+1 though when extending you have to be careful not to violate the Liskov Substitution Principle (LSP) - ie you can't go "against" the class you are extending from.
Jun
17
awarded  Nice Answer
Jun
16
comment How to ask a programmer a question without getting a solution as the answer
+1 Very nice write up of the XY problem.
Jun
16
answered Is it normal that I can't keep in my head more than three bugs assigned to me, nor can I understand a thousand lines of spaghetti code?
Jun
16
comment How to ask a programmer a question without getting a solution as the answer
Because more senior programmers know that most questions asked of them are XY-questions.
Jun
16
comment Object Initializer in C# problem with readability
Ah ok. Yes, I agree that it is not a best practice, in C# or in Delphi.
Jun
16
comment Object Initializer in C# problem with readability
Constructors not protected against exceptions? Wow. This is a huge mental shift for someone coming from Delphi, where an exception thrown in a constructor automatically results in the destructor being called and the var which would have received the reference guaranteed to be nil.
Jun
16
comment Object Initializer in C# problem with readability
+10 (Though SE makes you settle for +1) Thanks for a great concise yet comprehensive tutuorial on this subject.
Jun
15
revised Do all programs run in a loop?
added 261 characters in body
Jun
15
comment Do all programs run in a loop?
@gnat: yeah, you are right.
Jun
15
answered Do all programs run in a loop?
Jun
15
comment Do all programs run in a loop?
@gnat: Exactly. The distinguishing factor isn't the interface - commandline or (G)UI - but whether the program is interactive or not.
Jun
14
comment Is 25% to me as sole author a good deal?
Book authors usually only get 10% royalty by poublishers on consumer price of the book.
Jun
14
comment Messages from UI or from subs?
@JeffO: You can have validation in the UI, but that should only be in addition to (and probably is a subset of) the validation in the business/domain layer. Especially when you have a (multi-tier) client/server architecture. Any validation done in a client (to enhance the UI experience or avoid continual round-tripping to the server) cannot be relied on by the server.
Jun
14
answered Messages from UI or from subs?