-
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: true
fromtest_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.rb
andtest_2.rb
has 1000+ of lines with huge amount of useless indirections? -
OK, have a nice day debugging... 👍