369 reputation
314
bio website
location
age
visits member for 3 years, 7 months
seen 6 hours ago

14h
comment Should I accept empty collections in my methods that iterate over them?
@Telastyn Yes, and that's the only type of method the answer covers; it doesn't discuss at all any other option.
15h
comment Should I accept empty collections in my methods that iterate over them?
@Telastyn Sorry, but where did the OP say he was writing a general utility method?
19h
comment Should I accept empty collections in my methods that iterate over them?
I don't think this should be the accepted answer. Its a blanket statement, and there very well may be situations were not having any data to process is an error and not throwing hides this error, just like returning an empty collection when the enumerable passed was null might hide errors as well.
1d
comment Bad Practice using Auto Generated Classes for Data Access
You should not be manually changing generated code to begin with; it defeats the purpose of using a code generator, which is to let it write the code for you.
1d
comment Bad Practice using Auto Generated Classes for Data Access
This doesn't really answer the question. And I personally do want the changes to break my code, that way I know all the queries I need to fix.
2d
answered How Best Can I Use Git When My Employer Uses VSS?
2d
comment How Best Can I Use Git When My Employer Uses VSS?
You'd better spend your energy moving them to SourceGear Vault, a much better VCS which is targeted at those using VSS.
2d
comment how to combine logs coming from multiple virtual machines for processing?
I feel like this should go to serverfault.
Nov
23
comment Async properties in interfaces to cater for the possibility of expensive first-time evaluation: Is this a good idea?
I expect a property to be able to be data bound against and an async property would likely not allow this. In other words, you're breaking the expectation of how a property behaves, one of those things is that they are fast. The MSDN guidelines explicitly state that a relatively slow code should be exposed as a method to communicate that it could potentially be slow. msdn.microsoft.com/en-us/library/vstudio/…
Nov
23
comment Async properties in interfaces to cater for the possibility of expensive first-time evaluation: Is this a good idea?
Use a method, an async property would be very stange, and what if it was something I wanted to databind against?
Nov
23
comment Name/Fix for Production Code Whose Sole Purpose is to Facilitate Testing?
Because it mat be a better solution to not have an ISomething at all. You're advocating adding complexly because you might need more flexibility. Coding for mights typically creates a architecture worse than if you never introduced the ISomething, and it makes changes in the future which you actually need much more difficult.
Nov
22
comment Name/Fix for Production Code Whose Sole Purpose is to Facilitate Testing?
Adding something now for flexibility that might someday be useful is a bad idea. YAGNI.
Nov
21
comment Why is PHP so hated?
@MichaelT One should also note that 3 of the top 5 are scripting languages.
Nov
21
comment Why is PHP so hated?
eev.ee/blog/2012/04/09/php-a-fractal-of-bad-design
Nov
20
comment How accurate is “Business logic should be in a service, not in a model”?
Do yourself a favor and kill your service layer. Your ui should use your domain directly. Ive seen this before and your domain invariably becomes a bunch of anemic dtos, not rich models.
Nov
20
comment How accurate is “Business logic should be in a service, not in a model”?
Agree with your point on ORMs; they propagate a lie that you map your entity directly to the db with them, when in reality an entity may be stored across several tables.
Nov
20
comment How accurate is “Business logic should be in a service, not in a model”?
In a tiered architecture you'd still have business objects which implement the business logic, not services. They'd be models or roots/entity in ddd. In fact, any aspects of ddd, tiered and mv-whatever overlap quite a bit.
Nov
18
comment How can I mock this architecture?
@kmote Enums are just ints though as well. You can do this legally Material x = (Material)35353; The point is enums have no behavior; I doubt you'd mock strings or List<T> either.
Nov
17
answered How can I mock this architecture?
Nov
12
comment Entirely separate business logic layer from MVC
Your business layer doesn't sond like a business layer, it should not just be strings and numbers, all your business behaviors need to be there, otherwise your business logic ends up interspersed between ui and dal.