business logic - How to write long logical expressions in the code? -
every , seeing kind of expressions in code:
return _fastskipavailable && !fastskipinprogress && !_reroutinginprogress && !_someservice.iswaypointskipdisabledforthiscontract();
and, actually, i've been wondering if there other way of handling kind of scenario nicely. maybe there library allows express other way or somehow hide ugliness of such expressions somewhere.
maybe there nice poly (https://github.com/app-vnext/polly) allows simplifying code adding nice try-retry-fallback patterns (instead of implementing ugly try-catch-finally sections ourselves).
Comments
Post a Comment