I think it's apt. Cooking shares many qualities with coding, you're under time deadlines to produce something for a end consumer (for the most part). There's lots of competing methods and you have to select which ones work best for the product you want to produce.
Most importantly you can cook something amazing that everyone loves, or a charred lump that no one will touch. Much the same as coding.