After seeing this post, I tried to find a simple tutorial on closures. I went through so many examples, but I still wasn’t getting a grasp on it. Most of the tutorials I came across online never gave real examples that could be easily implemented. This made it very difficult for me to know how and where to use closures.
A loop is a programming feature that iterates a set of tasks or directives as long as a particular condition is met.
Loops check a condition. If the condition is met (i.e. if it returns
true), a set of code will run. The condition is checked again, and if it still returns
true, the set of code is run again. This cycle continues…
Writing good code is simple as it is tricky. The rules below may seem like the most common or logical thing to do, but when you look around the web or go through other developer's codes, you will realize that the “common or logical thing to do” is not very common in most codes.
Understanding and adhering to the rules below will make you a more effective developer and will allow other developers to build upon your work more effortlessly.