We're a place where coders share, stay up-to-date and grow their careers.
Here's a demonstration of why assigning a variable in an if statement could be dangerous:
if
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
All project should include a will_not_cause_robot_apocolypse() test. 😂
will_not_cause_robot_apocolypse()
Here's a demonstration of why assigning a variable in an
if
statement could be dangerous:The robot apocolypse
Yechiel Kalmenson ・ Jul 3 '19 ・ 1 min read
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
All project should include a
will_not_cause_robot_apocolypse()
test. 😂