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.

 

My book "Choose Your First Product" is available now.

It gives you 4 easy steps to find and validate a humble product idea.

Learn more.

(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.