So many people go around today praying and believing in God but ask them if they believe in themselves they’ll have a million excuses lined up for why they don’t. If we’re good at one thing, it’s that we can worry ourselves to death. When we’re alone we worry we’ll…

Since February 2021, Apple CEO Tim Cook (pictured) is worth a cool billion US dollars, and his company is worth trillions. What will he do next?

Suddenly, the prospects for Tim’s Apple are as clear as day. He’s all but guaranteed that his ship will right course and generate an untold amount of capital for the stewards. …

Say you need to include a regular ol’ script tag in a template file based on a global variable being set or not. Well, here’s a snippett you can use.

<script type="text/javascript">if (window.libName) {    const script = document.createElement('script')    script.src = "" + window.libName +     ".min.js"    document.body.appendChild(script);}</script>

This will add a script tag with a src value that is produced by combining a value from window.libName and combining it with .min.js to create the proper path needed. After this is done, the script tag is loaded into the document using appendChild.

State machines are all the rage these days, and I think it’s for the better. I have seen several developers in the past few months or so really hammer home the idea of knowing all the states of your application before starting. They say to me, “Imagine it like this: you will know how your application will respond to anything, and everything because it will and can only respond in a way that you have determined. You are in charge of writing the state, and then writing the transitions between the states. A state will only exist if it can be safely transitioned to”. More, later.

Ankur Taxali

I am a human being.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store