1,320 reputation
31022
bio website mattcashatt.com
location Gilbert, AZ
age 36
visits member for 3 years, 4 months
seen Mar 26 at 18:41

I love to code and really enjoy being on Stackoverflow. It has taught me a ton.


Mar
20
awarded  Curious
Mar
16
accepted Is Functional Programming a viable alternative to dependency injection patterns?
Mar
11
comment Is Functional Programming a viable alternative to dependency injection patterns?
@Giorgio--Thank you for the link, also great information!
Mar
11
comment Is Functional Programming a viable alternative to dependency injection patterns?
@Doval, thank you--that makes sense.
Mar
11
comment Is Functional Programming a viable alternative to dependency injection patterns?
(continued from above). . .This is my present understanding anyway. Please let me know if I am missing the mark. I don't mind admitting that I am a mere mortal among giants here!
Mar
11
comment Is Functional Programming a viable alternative to dependency injection patterns?
Thanks again for contributing to the conversation, Telastyn. As you have pointed out, my question isn't very well constructed (my words), but thanks to the feedback here I am starting to understand a bit better what it is that is sparking in my brain about all of this: We all agree (I think) that unit testing can be a nightmare with out DI. Unfortunately, use of DI, especially with IoC containers can create a new form of debugging nightmare thanks to the fact that it resolves dependencies at runtime. Similar to DI, FP makes unit testing easier, but without the runtime dependency issues.
Mar
11
comment Is Functional Programming a viable alternative to dependency injection patterns?
@guillaume31--Ah--I see. Thank you for that clarification.
Mar
11
comment Is Functional Programming a viable alternative to dependency injection patterns?
@Doval--Thanks for your interesting and thought-provoking comments. I may have misunderstood you, but am I correct in inferring from your comments that if I were to use a functional style of programming over a DI style (in the traditional C# sense), then I would avoid possible debugging frustrations associated with run-time resolution of dependencies?
Mar
11
comment Is Functional Programming a viable alternative to dependency injection patterns?
Thank you, Karl. This is a very helpful explanation.
Mar
10
comment Is Functional Programming a viable alternative to dependency injection patterns?
Thanks @RobertHarvey, those links are great.
Mar
10
comment Is Functional Programming a viable alternative to dependency injection patterns?
Thanks @Telastyn. Admittedly, I am struggling a bit in grasping the concept of functional programming in C# in its totality. I think you have uncovered part of my mental block: I was assuming that in the context of Functional Programming one would only be dealing with static instances. Pehaps I should finish the book! Thanks again!
Mar
10
comment Is Functional Programming a viable alternative to dependency injection patterns?
I suppose it doesn't technically. I am just envisioning the injection of static objects rather than classes when using functional programming. Appreciate your comments by the way.
Mar
10
comment Is Functional Programming a viable alternative to dependency injection patterns?
I agree that it doesn't remove dependencies. It is probably my understanding that is incorrect, but I made that inference because if I can not change the original object, it must necessitate that I pass it along (inject it) to any function that makes use of it.
Mar
10
asked Is Functional Programming a viable alternative to dependency injection patterns?
Jan
5
awarded  Yearling
Nov
25
awarded  Popular Question
Nov
11
comment How can I convince management to deal with technical debt?
I recommend reading it again, then. Describing a conversation had with one's boss regarding a method for covering technical debt by padding estimates for future work does not answer the question, "How do you communicate this to management to get them interested in sorting out technical debt?" either. Nonetheless, I didn't down vote the answer because it added to the conversation. So, all you have succeeded in doing is muting an opinion on the matter with which you agree for no substantial reason. "Programmers" should be a place where we can have a conversation. Not everything is binary.
Nov
11
comment How can I convince management to deal with technical debt?
@gnat: How do most of the "answers" answer that question directly? See, for example, answers by James Anderson, tp1, or any answers at the top with the most votes. But to answer your question, I provided an alternative analogy the OP can use. Seems to me that you simply disagree with my opinion on the matter. That's fine, but no reason to downvote.
Nov
11
answered How can I convince management to deal with technical debt?
Oct
24
awarded  Popular Question