Reputation
Top tag
Next privilege 125 Rep.
Vote down
Badges
5
Newest
 Commentator
Impact
~186 people reached

  • 0 posts edited
  • 0 helpful flags
  • 4 votes cast
Feb
19
comment Patching data by identifying and copying repeating pattern
Data is a collection of sets? Your explanation is not very clear. Could you show a real input data set and the desired output data set as an example? How do you make the distinction between garbage and good data?
Feb
7
comment Is synchronously inspecting a promise an anti-pattern?
@adrianton3 Your entire problem is that you try to rely on a naturally asynchronous mechanism in order to perform a synchronous operation (render). Does render have to be synchronous? How React does it's data binding? How do you refresh a view?
Feb
7
comment Is synchronously inspecting a promise an anti-pattern?
@RobertHarvey Because you should not be relying on the state of promises in a synchronous operation. The render() operation cannot effectively be made synchronous and that's perfectly fine.
Feb
7
comment Is synchronously inspecting a promise an anti-pattern?
@RobertHarvey We only have a single thread of execution in JS. Blocking APIs make very little sense so there is rarely a synchronous version like in C#, everything is usually async.
Oct
24
comment How to query Aggregate Root to react to event from other AR
Eventual consistency is the way to go here.
Oct
24
answered What to do when hydrating whole domain model is unnecessary for concrete operation?
Oct
24
awarded  Commentator
Oct
24
comment How to model a box with a key using DDD?
I would just have a Box AR with text and key value. The key itself doesn't need to be an AR. Activating the key could just be opening the box by providing the right key. box.openWith(key)
Aug
2
comment Validation and authorization in layered architecture
Also, what's the point of the application service (CashDropService)? Using CQRS I think your web api port could just put the command on the bus directly and your command handler becomes the application service layer.
Aug
2
comment Validation and authorization in layered architecture
I think that you could leverage value objects here by having a CashDropAmount value object rather than using a Decimal. Checking whether the driver exists or not would be done in the command handler and the same goes for authorization rules. You could get authorization for free by doing something like Approver approver = approverService.findById(employeeId) where it throws if the employee in not in the approver role. Approver would just be a value object, not an entity. You could also get rid of your factory or use factory method on an AR instead: cashDrop = driver.dropCash(...).
Jun
13
awarded  Supporter
Jun
4
comment Sync client-side data after service invocation in SPAs
Well, it could be as simple as the completion date must be displayed on the UI after a task is marked completed. Should the UI issue a new request to retrieve the task entity as a whole (which would now have the completedOn) or is it ok for such services to return data which is expected to be synchronized on the client?
Jun
4
asked Sync client-side data after service invocation in SPAs
Apr
18
comment Eventual consistency in Banking systems
You may find this interesting highscalability.com/blog/2013/5/1/…
Jan
21
revised Initialize physical resources in constructor
Added repository pattern idea.
Jan
21
revised Initialize physical resources in constructor
added 119 characters in body
Jan
21
comment Initialize physical resources in constructor
I'm sorry, but you are still misunderstanding the question. My point is, where the SQL table creation code shall go in the stated example. Is it fine to have that resource created when invoking the SQLTableMessageQueue constructor or not? If not, what would be more appropriate?
Jan
21
comment Initialize physical resources in constructor
@RobertHarvey I removed that as it was confusing since I chose the wrong words. I meant that for instance, if your class was a Timer you wouldn't start it right away when the constructor is called, but even that point is not very important for the question.
Jan
21
awarded  Editor
Jan
21
revised Initialize physical resources in constructor
deleted 63 characters in body