DEV Community


Discussion on: Picking up Ruby, as a Python Dev & interview questions

yechielk profile image
Yechiel Kalmenson

Here's a demonstration of why assigning a variable in an if statement could be dangerous:

vickilanger profile image
Vicki (she/her) Author

I had a feeling that it could be a bad idea. It just didn't seem right. I hadn't thought about it leading the end of our species lmao

akurani profile image
Amar Kurani

All project should include a will_not_cause_robot_apocolypse() test. 😂