DEV Community

Discussion on: Code Smell 118 - Return False

 
mcsee profile image
Maxi Contieri • Edited

canWeMoveOn the 'what'

hasPendingTaks the 'how'

they are accidentally coupled, now. But the caller to 'canWeMoveOn' does not know,
If you change your implementation or add new business rules or add a cache the caller should not be aware

I used this example here