Reputation
2,528
Top tag
Next privilege 3,000 Rep.
Cast close & reopen votes
Badges
1 10 16
Newest
 Organizer
Impact
~188k people reached

11h
comment Resource Allocation Algorithm
Are you under any constraints to use all the [1,M] numbers evenly? That is, could you do a graph with nothing but 1s and Ms, and nothing in-between?
1d
comment Is it still valid to speak about anemic model in the context of functional programming?
Hence the quotation-marks around "functions", to emphasize how inappropriate the label becomes when they are anemic.
2d
comment Efficient Value-Lookup in List of k-Tuples
I think this may strongly depend on what usages you want to support and which ones you want to optimize for/against. Is the search for "items with value X inside position N" much more frequent than "add/remove item"?
May
3
comment Should every class I write adhere to an interface?
One more reason for interfaces is if your testing system makes it necessary, which may depend on your language and test-framework. Hopefully you don't need to do this, of course.
May
3
comment How and where should I put a version number in my Django project?
This sounds like a better question for StackOverflow, since it involves a specific technology-stack. That said, you can probably give every app/library/module its own version if you want, and the version that matters for deployment is the "root" project, the one that binds all the rest together.
May
3
comment Logging Database Changes
OK, so it sounds like you're developing a feature to track pending/approved/denied change-requests against some kind of business-object, rather than a pervasive logging infrastructure for all kinds of changes. Does that sound right?
May
2
comment Logging Database Changes
P.S.: Actually, are you trying to log operational changes (like for a customer's name or blog-post edit) or are you trying to log development changes (like with configuration data soft-coded into a table)? I just realized that your first example--of a code-change--implies that you're trying to track why table-data was changed during development.
May
2
comment Logging Database Changes
The first question to ask is how how you plan to use the auditing and how much of it you need. There's a huge difference between replay/undo functionality versus "I need to know who to blame for legal reasons" functionality.
Apr
28
comment Validating transaction codes with reference codes… Best way to encode the validation rules?
Questions: (A) Do you mean that transaction-codes (and associated patterns) must be add-able at runtime? (B) Can someone change an existing pattern? (C) So, what happens to data already-entered that might no longer match? (D) How complex can these patterns be? Is it possible for someone to want constraints you cannot satisfy with a regex?
Apr
27
comment How to visually link UML use cases to the UML state diagrams or UML activity diagrams that describe each use case?
You're talking purely about linking a UML use-case diagram to a UML state diagram, right? For a minute I thought you meant linking (or generating) between source-code and diagrams.
Apr
26
comment Should a repository or the Login/Register service have an encryption service as a dependency?
I think Ideally the service should modify the domain object and then the modified object is passed to the repository, and neither know about the other. I just wanted to point out that injection was a better alternative than putting the hashing/encryption logic directly in the repo.
Apr
26
comment Checking preconditions the proper way
It's hard to say from this sample, but one possibility to consider is breaking responsibility into two classes. Suppose that Foo has relatively weak checks up until you call some kind of "apply" or "finalize" method, which would do a pass of stricter-checks before creating/modifying your Bar, which would be the object that has to be in a legal state at all times.
May
28
comment Storing values in SQL whose types are determined in runtime
This sounds like an inner-platform effect problem. Depending on the details, consider allowing the GUI to execute ALTER TABLE statements (with certain limits, of course) and add fields to the actual table.
May
28
comment Identifier vs domain object as a method parameter
Could you edit your question with a bit more context? It's not clear what othe scenario is. I'm going to guess that you're talking about objects which are managed by an ORM system (like Hibernate) and that by "mini-class" you mean a lazy-loading proxy-object.
Oct
30
comment DDD: storing additional data with the model
It this a SaaS thing? Are you trying to support multiple totally-independent customers with the same domain?
Oct
30
comment DDD: placement of method whose behavior may be implemented with single database query
Perhaps there's a new concept to unearth here. Do libraries have "Book Visibility Policies"?
Aug
8
comment What does 'stage' mean in git?
Ditto. Also, "a point, period, or step in a process or development."
Jul
30
comment Phone Number based Login
How do you tell the difference between an accidental collision and an intentional match? If I'm on vacation in Germany, and I enter my US local phone number which happens to match the German local phone number of another user...
May
23
comment How does a search functionality fit in DDD with CQRS?
I was thinking more about classes like CalendarEventSpecification, which could be both part of a searching scheme and also part of some business rules.
May
22
comment How does a search functionality fit in DDD with CQRS?
The first question to answer is whether your search-tools (especially if they are complex) should be part of the same domain, or whether it needs to have its own separate one. One reason to merge them might be if the same kinds of specification used for searching also be used to accomplish certain business rules. In other words, how heavy-weight is this search feature?