The best way to ensure that your eggs are cooked to perfection every time is to learn how to boil them, both soft-boiled and hard-boiled.