When you add salt depends on how you prefer the texture of your beans. For instance, adding it before cooking creates super soft beans. Meanwhile, adding it at the end or near the end of cooking creates a more al-dente texture. Or, salting them after they’re completely cooled will prevent them from absorbing the flavor of other ingredients.