A little salt added to the cooking water, during cooking rice, pasta, beans and potatoes will infuse through the food and add dimension, depth and flavor without needing to add as much as you would after the food is cooked.
You'll add more salt if you add it after the food is cooked, as you're just flavoring the surface of the food.