News for hackers. Stuff that matters.
Re:Modern Functional Programming: The Onion Architecture by DanWaterworth on Thursday September 29, 2016 @03:37PM (#12608160)
> Either way, this aspect is independent of the point I was making above and which is that functional code is not inherently easier to test than procedural code.

That's true, you can certainly just write procedural code in functional languages and there's no benefit. However, you also have the ability to structure code in a way that is testable and is actually more structured than the equivalent OOP style. By which I mean: the operations on the dependencies are more constrained (since they can't be replaced or duplicated, etc).

There are no comments on this comment yet.