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

javascript - Replicate keyboard event with html button -

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Web audio api 5.1 surround example not working in firefox -