DEV Community

loading...

Discussion on: No method too small

Collapse
rushyotakha profile image
RushyoTakha

I'm a big fan of using expression-bodied members and writing methods in an almost functional style (ala F#) for this reason and more. It aligns well with SOLID design principles in general and it's not just more debuggable, it's generally far more testable.

As an aside, the library OneOf kills NullReferenceExceptions dead by adding the ability to use F#-style unions in C# - I hardly see them anymore. Finding that was another product of my time exploring F#!