292 reputation
112
bio website
location
age
visits member for 3 years, 6 months
seen yesterday

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
comment Understanding C# Delegates Structure
@FrustratedWithFormsDesigner: Updated my question.
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
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.
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.
Mar
10
comment Correct Seam for Stub
Although your answer provides useful information, it doesn't really address my question: I'm definitely not asking about real-world or even practical approaches; my question was, within the topic of stubs, on the author's choice of seam.
Mar
9
comment Correct Seam for Stub
If "the fake extension manager does no logic, but instead takes its cues(?) From the test to know what to return", how do you get to test the validation logic?
Mar
7
comment Correct Seam for Stub
Also, with an ExtensionManager, you end up having to write the validation logic twice: in the actual manager and in the fake manager.
Mar
7
comment Correct Seam for Stub
I'm new to unit testing and starting out with Roy's book. I haven't even gotten to mocks yet, but I'll be sure to review your answer once I get there.. Just wanted to make sure I wasn't missing something obvious.
Mar
7
comment Correct Seam for Stub
Why refactor out anything more than the troublesome dependency?
Jan
24
comment Am I slow or is this normal?
"The steps you've taken"? Shouldn't they be 12..?
Sep
9
comment What are the advantages of using LISP and Haskell? Will they make me a better programmer?
Haskell is not a logic programming language and neither is Lisp.
May
8
comment I don't know C. And why should I learn it?
Here are some things the other creator of SO has to say about knowing C: joelonsoftware.com/articles/ThePerilsofJavaSchools.html joelonsoftware.com/articles/CollegeAdvice.html joelonsoftware.com/articles/fog0000000319.html
Jan
8
comment Is the C programming language still used?
@MatthieuM: Excuse my false accusation; couldn't help recalling Joel's article when I saw you refer to C that way. :)