DEV Community

loading...

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

Collapse
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!

Collapse
greg0ire profile image
Grégoire Paris Author

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

Forem Open with the Forem app