It would be wrong to write off cooking as an opportunity cost of not investing in yourself. First, you have the opportunity to put high quality food into yourself. Second, the tasks of recipe creation and cooking are very, very similar to software creation tasks. You start with a language (raw ingredients, characters) and combine them into your final product.