la-yumba/functional-csharp-code

Alternative, type-safe approach to Middleware<T>

StanislawSwierc opened this issue · 4 comments

Enrico, I'm a big fan of your book. So much, that I even dived deeper in the subject of Middleware you introduced in Chapter 11. One thing that I couldn't stop thinking about was the usage of dynamic in your definition. I was thinking about it over the last weekend and I think I created an interesting, alternative approach which is fully type-safe.

I described the whole story in my blog.
http://www.itisnotoverengineering.com/2018/10/idisposable-monad-iusable-part-1.html
http://www.itisnotoverengineering.com/2018/10/idisposable-monad-iusable-part-2.html

I would love to hear your opinion about it. Maybe you could even include it in the second edition of your book :)

Thanks,
Stan

Hi Stan,
thanks for that. I would encourage you to also post this on the book forum at https://forums.manning.com/forums/functional-programming-in-c-sharp so that other readers may have a look and potentially give feedback

Best regards

I registered in the forum, but I cannot create a new thread or even reply to an existing one. I can only mark all the posts as read or watch for changes. :(

I've contacted Manning support to get access to the forum, but it is locked to people who bought the book. I read it at Safari Books Online and I don't qualify for the forum.

@la-yumba, could you post it on the forum and comment on this alternative approach, please?