Reputation
595
Top tag
Next privilege 1,000 Rep.
See votes, expandable usercard
Badges
4 16
Newest
 Custodian
Impact
~16k people reached

1d
comment How to reuse domain model logic in services?
@XaviMontero At the end of the day you need something that actually sends an update statement to the database to change the value of the ban field. That is the reality. And if you're talking about directly mapping your domain object to the db using an ORM, that's by far the worst antipattern i've had the misfortune of dealing with. Lazy loading isn't any kind if solution at all. Selecting a bunch of data just to change a single value all to maintain some ivory tower dogma is wasteful and foolish.
2d
comment How to reuse domain model logic in services?
@XaviMontero My comment was that it is a waste to construct a user instance and load all its data just to ban them, and that the userRepo should probably have a way to just flip the ban flag on the user table without requiring the load. It also depends if you have an instance of the user domain object already. I can easily see a case where you have a list of userInfo (a class which is immutable and only has a small subset of data to render the list), which again it would be a waste to load the user editable domain object, and so a banUser command domain object is better.
Apr
26
comment How to structure Restful API client files in C# project?
And don't nest classes to group them, that's what namespaces are for.
Apr
26
comment How to structure Restful API client files in C# project?
For starters, read all the guidelines you can find starting here: msdn.microsoft.com/en-us/library/ms229002(v=vs.110).aspx
Apr
22
comment HTTP Status Code for “Still Processing”
No one cares if the url exists but you can't get the data the resource represents because it's still being processed. Might as well NOT create the url until it can be used to get the video.
Apr
21
comment HTTP Status Code for “Still Processing”
"Did the POST from the client to the server transfer a resource to the server, where the server then gave it a URL that the client can view? Yes? Then that is a 201 Created response." 202 Accepted is also acceptable as a response to this if the server cannot act immediately to process the resource, which is what the OP is doing.
Apr
21
comment HTTP Status Code for “Still Processing”
No, especially the last few paragraphs of MainMa's answer. Separate end points to check the status of the request and to get the video itself. The status is not the same resource as the video and should be addressable on its own.
Apr
21
comment HTTP Status Code for “Still Processing”
Seems like a stretch f what 409 is really meant for, which is in response to a put.
Apr
12
revised Is overriding concrete methods a code smell?
seems to be language specified
Apr
12
suggested approved edit on Is overriding concrete methods a code smell?
Apr
9
comment What are the alternatives to resx file
You reinvented everything already provided by .net.
Mar
31
comment How to explain to a non-technical person why the task will take much longer than they think?
Of course the downside to this is that this list becomes a commitment and if anything goes over you'll get hit.
Mar
24
comment Team constantly fails to meet sprint goals
The terminology has changed. Agile teams no longer commit to a sprint, they forecast it. And just like a weather forecast, what you expect next week and what actually happens can change. scrum.org/About/All-Articles/articleType/ArticleView/articleId/…
Mar
1
comment Domain driven design - Entity is updateable in certain circumstances
You are saying to model the domain after the db design, a surefire way to royally screw thing up. You also advocate an anemic model that's a useless property bag with the logic in another class. Sounds like procedural design, not OO. Just bad design all around.
Feb
25
comment How do you effectively compete with an open source project?
@alternative Most IDEs and VS are in separate markets.
Feb
25
comment How do you effectively compete with an open source project?
@fretje Customers absolutely do not care about open or closed formats, they just want their videos to play. OSS devs often make the mistake of thinking their users care about the same things they do, which is why many opt to pay for closed source.
Feb
25
comment How do you effectively compete with an open source project?
@LieRyan The ability to patch the code themselves is highly overrated. Even at software companies, you spend time building your own software, not trying to fix someone else's.
Feb
19
comment Is there any reason not to go directly from client-side Javascript to a database?
Ignoring everything else, you're creating a 2 tier application, which tightly couples your UI to the database. Not really a good idea unless your app is trivial.
Feb
5
comment API design dilemma: to REST or not to REST
@gbjbaanb security.stackexchange.com/a/66476/17974
Nov
16
comment Can domain models in the database be a sustainable solution?
@VladislavRastrusny Whatever the reason, keeping business logic in the db is an extremely poor design.