Connect The Dots: Dance And Program

Connect the Dots: Dance and Program

Computer Comics Data Comics Study

Navratri is a major Indian festival, held in honor of the divine feminine, that spans nine nights and is celebrated every year in the autumn. Garba is a Gujarati folk dance celebrated in Navratri.

Today we are connecting dots between dance & programming concept. In programming, iteration means repeating a sequence of actions (at least once). Real life example is certain dance moves. Moonwalk or Navratri garba dodhiya(Gujarati dance form) or many other dance moves where certain steps are repeated again and again. Keep in mind, there are many real time examples of iteration but just for fun let’s create the function of Moonwalk.

function Moonwalk {
Start 1: Stand with your feet together.
Do { 
Step 2: Lift your right heel.
Step 3: Slide your left foot back. Keep right heel up.
Step 4: Lower your right heel and lift your left heel.
Step 5: Slide your right foot back. Keep left heel up.
Step 6: Lower your left heel.
} Repeat(from Step 2-6 until you want to stop)

Dancing Data of India

Dancing Map of India