290 reputation
113
bio website
location
age
visits member for 3 years, 11 months
seen yesterday

Mar
20
awarded  Curious
Mar
12
comment Separating data access in ASP.NET MVC
@EricKing: Maybe. Others would argue that your controller should accomplish the complex processing by calling the Book, LibraryInventory and Customer to do their parts.
Mar
12
comment Separating data access in ASP.NET MVC
@BlackjacketMack: How does this whole notion of a 'service' work with OOP? Shouldn't the service's ProcessTheComplexStuff method be defined on the Book object itself?
Nov
21
comment Separating data access in ASP.NET MVC
You have a separate repository class for each entity/resource? What about if you want a book operation and a customer operation to be atomic i.e. part of one transaction?
Nov
21
comment Separating data access in ASP.NET MVC
Your LibraryService class references a _libraryRepository object, where is that defined?
Oct
3
comment Should an ASP.NET MVC application directly use Entity Framework as the model?
If you were using code-first, then there wasn't an existing database, no?
Sep
9
accepted Understanding C# Delegates Structure
Sep
9
comment Understanding C# Delegates Structure
@FrustratedWithFormsDesigner: Updated my question.
Sep
9
revised Understanding C# Delegates Structure
clarification
Sep
9
comment Understanding C# Delegates Structure
I understand how to use it. It was just confusing to me that a delegate is described as an object which accepts methods it can invoke and as an object which wraps a method.
Sep
9
comment Understanding C# Delegates Structure
For example it wouldn't have methods such as Invoke.
Sep
9
asked Understanding C# Delegates Structure
Sep
4
revised Correct Seam for Stub
typo
Sep
3
accepted State Change Tests
Sep
3
comment State Change Tests
I hear your point re not testing for change of state but rather for correct state. In that case though, the test's name should probably be something like IsValidLogFileName_WhenCalled_WasLastFileNameValidIsCorrect.
Sep
3
comment State Change Tests
Yea, the author is presumably just using this as an example.
Sep
3
asked State Change Tests
Aug
12
comment Unit testing newbie team needs to unit test
Wouldn't writing a unit test for an existing bug wind up being a lousy unit test, i.e it would test a whole bunch of stuff rather than a single unit? Wouldn't an integration test be more suitable for this scenario?
Jul
28
comment JavaScript Combination Inheritance Pattern
Ah, I see. Indeed, your alternative is obviously more correct than mine, and it's good to know that it's a "common idiom". Turn your comments into an answer and I'll accept it.
Jul
28
comment JavaScript Combination Inheritance Pattern
@elclanrs: not really; that wouldn't give the child the parent's state; besides that's an example of prototypal inheritance.