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

Popular posts from this blog

python - Selenium remoteWebDriver (& SauceLabs) Firefox moseMoveTo action exception -

Ansible warning on jinja2 braces on when -

html - How to custom Bootstrap grid height? -