Oh, I completely understand! I was just using a pretty simple and impractical example to demonstrate the concept of scopes. I do not condone enclosing top-secret API keys, passwords, and other sorts of confidential information within the scope of an exposed program ;)
One day, maybe not today, maybe not tomorrow, this will become a normal thing as we move away from backends, or rather we smash the notion of servers. Clients will rule. That is my strange prediction.
That would be so weird but awesome at the same time. Write a blog post when it happens!
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.