DEV Community


Discussion on: Why using Yoda conditions you should probably not be

joshbrw profile image
Josh Brown

I'm so glad you wrote about this! Writing Yoda if-statements just to avoid potential typos just seems backwards, your automated test suite should catch them issues!

greg0ire profile image
Grégoire Paris Author

And I'm glad to see I'm not alone! Thanks!