Programming Security

You have to be careful how you expose your coding objects to the outside world.

Global variables are a great example of bad programming. Global functions too. Generally it is bad to expose the inner workings of your objects. Bad in the full sense of the word.

Ideally, each piece of code should be encapsulated in its own locked box, built of titanium no less than 800 millimetres thick, and buried beneath the ocean floor at its deepest point, at least twelve kilometres from breathable air. It is still possible that subterannean creatures could evolve the ability to withstand the intense presure at such depths, and find ways of penetrating the box and modifying the value of your internal variables. Wiring the titanium box with a nuclear warhead is thus considered best practice.

 

I'm currently writing a book about how to build your first product. If you want to build your first product, please sign up to be notified when the book is available.

(By the way, I read every comment and often respond.)

Your comment, please?

Your Name
Your Url (optional)
Note: I may edit, reuse or delete your comment. Don't be mean.