Skip to main content
1 of 3
cybevnm
  • 471
  • 4
  • 5

I think that in many cases such function is good style, but you may consider local boolean variable as alternative in cases when you don't need use this condition somewhere in other places e.g.:

 bool someConditionSatisfied = [complex expression]; 
This will give hint to code reader and save from introducing new function.

cybevnm
  • 471
  • 4
  • 5