Code

General Code

worker counting stocks in warehouse

Multi-Tasking

There are times in programming where you need to check conditions against multiple items. If statements are used to do this a lot. We could do this by nesting if statements and performing the code if they return true as follows… if(this === that){ if(who === what){ doSomething(); } } While this works, nesting can […]

Multi-Tasking Read More »

door in dark room

Look for an Exit

It is always good to have an exit strategy. You know when you are at a party and you are stuck talking to that one relative that has to go into every gory detail concerning their ailments? If that has not happened to you, then most likely you are that relative, but I digress. In

Look for an Exit Read More »

Global Data Storage

Global Variables

In today’s post, I want to address the usage of global variables. Global variables are variables that can be accessed from anywhere, hence the term, ‘global’. So every piece of code, every function, can access a global variable. Because of this, it is a good practice to have as few global variables as possible. This

Global Variables Read More »