Earlier quoted context omitted.
>I don't necessarily buy the argument it's trying to make that "just make a function and you no longer have a need for factory pattern". The same pattern is achievable with functions but the implementation is so trivial in FP that it doesn't even need a name: Just have a function return another function. That's a function factory. Same thing with dependency injection: Just have a function take another function as a p…
Do you have a good example of a reference architecture or implementation of a non-trivial system you can point me to? I've recently gotten a copy of the book Domain Modelling Made Functional. I'm yet to read it, but I'm pretty intrigued by some of what I've seen and I have heard it comes highly recommend. I'd be very keen to hear of other high quality examples of things people consider good reference material.
Also note that the trend I see in the industry is not exactly movement towards functional programs but more movement towards borrowing features popular in functional programming as well as getting rid of classes.