1,883 reputation
1813
bio website
location
age
visits member for 3 years, 11 months
seen 2 days ago

2d
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.
2d
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?
May
13
comment How to debug weak references?
SoftReference does not guarantee data about the object is still available. The Weak/Soft distinction is about performance, not about correctness. If you absolutely need data about the object that has been queued for garbage-collection, you need to handle that in some other way.
May
13
comment How to debug weak references?
@Neil Don't you mean the reverse? Why would you bother using a ReferenceQueue for a single reference?
May
7
comment In event sourcing, is it ok to introduce a dependency in my message class?
Also, in large systems, it's quite possible that your events will need to be consumed by another piece of software on another computer running a completely different language. Another good reason why events should be pure immutable data-holders.
May
6
comment How Add/Create* commands should be handled in CQRS + Event Sourcing architecture
I suspect Udi's post-title is misleading. IMHO it sounds like his real objective is that freshly-made ARs should always be reachable from some other place, in a way that captures context about why/how/who decided that the new AR needed to be created. Everything else is about how a particular implementation (NHibernate?) could make it easier to manage.
May
4
comment How to unit-test for PHP implicit conversion errors?
Could you detail the kind of testing you have in mind? Ideally whatever code consumes the POST data would have its own validation logic.
Mar
4
comment Must developers understand the business domain or should the specification be sufficient?
I disagree: There is no guarantee a competent long-term developer can learn "the business". It still requires a certain company organization, and it's especially bad with satellite teams.
Feb
12
comment How to organize a one-man project?
One thing to add after the benefit of experience: If you want help, you will probably need to promote your open-source project if you don't want to stay the sole developer. "If you build it, they will come" is very unreliable.
Jan
17
comment Async function iterated calls
Javascript side-note: I find the "Promise" pattern extremely useful for AJAX, and asynchronous stuff in general. (intro)
Oct
24
comment What are the safety benefits of a type system?
I'm not seeing anything in there about class members. Type systems can also warn you against trying to call x.bar() unless x is guaranteed to be an object which implements bar().
Oct
16
comment Why do we write the action to be performed by a function in jQuery inside the parentheses?
Uhhhh, because the function is going to be executed an an indeterminate future moment, or possibly never? That's not a jQuery thing either, it's far more general as a Javascript pattern.
Oct
16
comment Storing a value vs calling reference for repeated use in Java
Yeah: "It's easier to optimize correct code than to correct optimized code." For this kind of decision, focus on making the code clear, and profiling will tell you what to bother changing, if anything.
Sep
26
comment What does the Spring framework do? Should I use it? Why or why not?
@Zoot Thanks, fixed.