Code Refactor of the Day - Extracting Compound Conditionals

Posted on Mon 15 January 2018 in Posts • Tagged with codeRefactorOfTheDay, refactoring, quality, python

I'm currently doing the 30-Day Code Quality Challenge (, and today's exercise was an interesting one -- extract a compound conditional.

The idea of extracting a compound conditional is it's a refactor to try and improve the readability of code by giving a name to a complex boolean …

Continue reading