If you read what TFA says:
"Of course this is a stupid example, you would probably
put the username, password and other important stuff in
another file, say a config file, but let’s assume that
this is not possible, or somehow this variable cannot be
else where."