-
Try to guess what is the return value of
question.equal?("hurting yourself")intest_1.rb. -
true? Are you sure? -
Run
test_1.rb
ruby test_1.rb-
Remove
# frozen_string_literal: truefromtest_2.rb -
Rerun
test_1.rb
ruby test_1.rb-
Are you surprised?
-
Now imagine this code somewhere in production?
-
Still not hurting?
-
What if
test_1.rbandtest_2.rbhas 1000+ of lines with huge amount of useless indirections? -
OK, have a nice day debugging... 👍