1,064 reputation
514
bio website
location Toronto, Canada
age
visits member for 2 years, 8 months
seen 9 hours ago

Apr
22
comment Using C#-MSSQL for smartphone apps cloud back-end with large user-base?
scale out, not up, the language selection should be lower on your priority list.
Apr
15
comment TDD Red-Green-Refactor and if/how to test methods that become private
Making private methods is the result of the refactoring of public methods in the TDD refactoring step.
Apr
14
comment Calling RESTful service from browser and handling 4xx class responses
This was one of my thoughts on the subject, and it sounds like it's the way to go, however, I'm going to wait a bit to see if there's any opposing viewpoints.
Apr
14
comment Calling RESTful service from browser and handling 4xx class responses
The intended end-user is the general public, I'm more concerned about possible unintended consequences of having 404 represent a valid response. If the consumer was not a browser I would not be concerned.
Apr
9
comment is there a cleaner / simpler way to code this?
I sometimes do this and make an array of where predicates, then I join the array with ' AND '
Apr
9
comment Unit testing and reusing extracted class
@DocBrown I ended up going with this solution, the QuickOrderService I ended up mocking out the dependencies ensure its correctness.
Apr
9
comment Unit testing and reusing extracted class
@Euphoric Thanks for the blog post, looks to be a useful pattern to follow.
Apr
8
comment Should one use Dependency Injection even if the class is used only once?
I never took the reading comprehension 101 course.
Apr
8
comment Unit testing and reusing extracted class
Not sure what you mean about rules of usage, but we use it primarily to group operations to ensure they're done atomically. Primarily it's an abstraction over a a database transaction and fires domain events when the tx completes.
Apr
2
comment Fixing class Hierarchy design mistakes due to incorrect inheritance
The consumer of the interface may be a machine that holds onto tails and wags them.
Apr
2
comment Fixing class Hierarchy design mistakes due to incorrect inheritance
Right, it all depends on what the expectations there are around that method. I made some assumptions and labelled it as an LSK violation based on the fact that OP never defined what the expectations were.
Apr
2
comment Fixing class Hierarchy design mistakes due to incorrect inheritance
slightly off-topic, but not all terrestrials are mammals.
Apr
2
comment Fixing class Hierarchy design mistakes due to incorrect inheritance
You can still have all classes inherit from mammal, but you need to move the WagTail out of it.
Mar
30
comment Secure DAL Design using Stored Procedures
I would put the each query into their own stored procedure. Some sort of naming convention would help greatly with organization.
Mar
30
comment Secure DAL Design using Stored Procedures
1) Maintenance: now you have a stored proc which accepts parameters that may not be necessary for the specific case. 2) Stored procedures can have cached execution plans, having two cases which vary greatly in their computation wreaks havoc on this.
Mar
30
comment Secure DAL Design using Stored Procedures
Putting a giant switch statement in a stored proc like that is generally not a good idea. A better idea would be to have n number of stored procedures. This is for both maintainability and database performance.
Mar
24
comment Immutable vs Read-only vs Unmodifiable naming difference
I like the Cocoa standard of classes being implicitly immutable and you would denote the mutable versions, for example NSArray vs NSMutableArray.
Mar
24
comment Sometimes, “programming to interfaces” introduces possible (and avoidable) runtime exceptions?
@ArturoTorresSánchez .net has its own goofiness like System.Array implementing IList
Mar
21
comment Domain names vs URL path for web services
Do these services need to be hosted on the same machine? You would lose a lot of scalability doing so.
Jan
31
comment What is a better design a light weight user or a heavy weight heavy user model?
Without qualifying what constitutes 'better', I must disagree with this answer as the decision on which fields to include in a model depends on the context(s) in which that model will be used.