Skip to content
loading...

re: Why using Yoda conditions you should probably not be VIEW POST

TOP OF THREAD FULL DISCUSSION
re: I see your point and I agree to some extent. But the main reason you apply Yoda conditions is to fail first. Basically it's the same reason why yo...
 

You can still use code review and linters with legacy code though. And unit tests, if you can decouple new code you introduce from the legacy code.

but you gain better control over your code flow.

What do you mean by that exactly?

code of conduct - report abuse