Reputation
3,444
Top tag
Next privilege 5,000 Rep.
Approve tag wiki edits
Badges
8 21
Newest
 Nice Answer
Impact
~60k people reached

Sep
1
revised What should my user object know?
added 500 characters in body
Sep
1
revised What should my user object know?
added 500 characters in body
Sep
1
answered What should my user object know?
Sep
1
answered Fix a leaky abstraction (type checking)
Sep
1
revised Relating an array of objects to an enumerator
deleted 105 characters in body
Aug
30
revised Relating an array of objects to an enumerator
added 60 characters in body
Aug
30
revised Relating an array of objects to an enumerator
deleted 7 characters in body
Aug
30
answered Relating an array of objects to an enumerator
Aug
15
comment Environment that enables variable constraint checking and creation
You're building a leaky abstraction. Look at the NUnit Contraint Model for inspiration. The API emphasis in on the thing being constrained, not the implementation of the constraint. Here is a custom constraint example
Aug
2
revised Do we need to validate entire module usage or just arguments of public methods?
"raise" a comment to the answer itself.
Aug
2
revised Do we need to validate entire module usage or just arguments of public methods?
"raise" a comment to the answer itself.
Jul
27
comment Inefficient use of interfaces in OOP (C#)
Re-IExamine your design. I'm seeing the Command Pattern, events, and aspect oriented coding, and Popeil Dependency Injector, all pureed in an attempt to get a Unified Field Theory smoothie. @IdanArye hits the nail on the head I think - "dynamic mechanism ... to infer actions..." It's like you're trying to build an arbitrarily abstract framework.
Jul
21
answered Is an interface considered 'empty' if it inherits from other interfaces?
Jul
20
comment Returning a Flag Indicating Success
This succinctly answers the question. To go beyond that, in my aborted answer I realized I was virtually answering the question "how do I write object oriented code?" Design, encapsulation, single responsibility, etc., etc. together resolve the non-problem of asking about state every time we call any method on any object.
Jul
20
comment Do we need to validate entire module usage or just arguments of public methods?
We're forgetting key concepts/assumptions here - encapsulation & single responsibility. There is virtually no null checking after the first, client-interacting layer. The code is <strike>tolerant</strike> robust. Classes are designed with default states and so work without being written as if interacting code is bug-ridden, rogue junk. A composite parent does not have to reach down the child layers to evaluate validity (and by implication, check for null in all the nooks and crannies). The parent knows what a child's default state means
Jul
20
revised Do we need to validate entire module usage or just arguments of public methods?
added 21 characters in body
Jul
18
revised Do we need to validate entire module usage or just arguments of public methods?
added 83 characters in body
Jul
18
answered Do we need to validate entire module usage or just arguments of public methods?
Jul
12
comment Is there any programming language(s) which has mathematical number types?
Down votes deserve a comment as to why this is wrong. Down vote means "this answer is wrong." DV is not a means to say "I don't like it." or "other answers are better." It is not for giving some pseudo-ranking to answers. Anyone with edit privilege is allowed to improve an answer as well.
Jul
11
revised Is there any programming language(s) which has mathematical number types?
added 122 characters in body