Strange similarity between programming and cooking

Note: The article has many sensitive images that cause taste stimulation, should not read while hungry

In the past, when I was in Vietnam, I didn't have to cook. Since going to the UK , I have to study , because the food outside has just got bad, so I have to duck down to cook myself. After a period of pear rolling kitchen, her cooking level has also increased to a realm certain. Now I can pat my chest proud to be the best cooking coder and the best code cook =)).

Having been cooking for a while, I suddenly realized the morality of "ten thousand things, most of the rivers poured into one sea" in martial arts. Turns out between programming and cooking there are many strange similarities !! So I hurriedly put all my energy into writing this article, you can both read and entertain and ponder.

22
Artwork, this is not my cooking

Mission and responsibility

Once, after eating self-cooked food, I was poisoned for 2-3 days =)). After poisoning, I "enlightened" one more thing: The chef also holds the life of others in his hands. Programmers are not inferior. We hold the lives of both a system and jobs of tens and hundreds of people. So you code "mindful" a little, sometimes just because of a small bug that causes tens of millions of damage.

Cooking and code is an art, chef and coder are also artists. Both coder and chef must know such things as: Basic and advanced skills, interface design, using modules . Let's analyze it.

2

Skills of coder and chef

Both cooking and code are easy to do but hard to master . To write a small program, you just need to find a tutorial with sample code and follow it. To cook a small dish, you just need to find instructions and follow. But to write a great program, create a dish, we need a great amount of knowledge / experience .

When I first started cooking, I didn't know how to taste the spices, how to cook fire. When I first started making cakes, I did not know how to whip cream, hit my hands so hard that the cream was still liquid like water. Suddenly remembering when I first learned programming, I used to type things with writing code , separating functions, compile code like that. If you're bored with programming, try cooking something fancy. When you see the finished food, you will feel as satisfied as you did when you first wrote the program.

13819382_1123118047758167_1178608679_n
Baked chicken wings with honey – The first dish I made when coming to this side

In programming, there are issues such as naming variables, method separations, comments , class design , .. simple idea but must have experience of new senior know how to do this for standard. In cooking as well, things like using knives, soup with fire temperature, tasting spices, … everyone can do it. However, it is necessary to see how professional chefs show their true "class".

Design the theme

The interface is the first thing that catches the eye. The program is evaluated through the interface, evaluating the dish through presentation. Therefore, good programmers must know how to create attractive interfaces , good cooks must write how to decorate dishes so as to be attractive.

However, some beautiful dishes are not delicious but no one wants to eat. The program is the same, the interface is so beautiful that the UX is poor and the function of sida is no one wants to use . Therefore, we must focus on refining both the outer shell and the inner core.

5

Use the module

In programming, to complete software, developers must use libraries / frameworks to save time , instead of having to write from scratch. In cooking, too, instead of having to make cheese, butter, make Italian pasta, self-milking cows, the chef only needs to buy processed goods in the supermarket.

However, the chef who only knows how to make ready-made food cannot be a good cook; Programmers who only know how to use the library are just pseudo programmers. To really be good, the coder must know the balance between choosing a library or self-coding; as well as good chefs will know when to use ready-made utensils, always need to prepare them yourself.

first

Conclusion

There are many similar things that I do not tell you to find out for yourself. The most important thing I understand is: To be good at something, you need to have passion . I feel happy when I sit in the code , so I often improve my knowledge of language and coding. I feel happy when cooking, so I often learn new recipes. With passion , you can quickly develop yourself .

For me, passion is simply a joy when the code is written with a user, and the food is cooked . But you can rest assured, even if you like to cook, I only write this article about cooking. In the future, I will not leave this blog to switch to blogging about "I go cook".

At present, my cooking level must not reach the junior level (the first part is a lie), please go to work as a cook sometimes even fall. However, in order for readers to say that they are slashing, here is a picture of some dishes cooked by themselves. Any girl who wants to find a handsome and talented boyfriend to cook delicious food, please PM my facebook to get acquainted, ahihi: ”>

11
Fried pork sausage sauce. This dish is quite a primer
5
Pork turns crunchy skin, no chemical color =))
66
Steak potato BBQ sauce. This side of the cow is a little expensive but it is a substance
first
Korean spicy fried chicken
2
Tofu with tomato sauce and beans on this side is more expensive than meat: ((
3
Tobboki, my ex likes this dish ?
4
Grilled chicken with cheese, leaving a pile of chili is still not spicy outside the shop
33
Something that forgot the name, a cute girl for my recipe
44
Grilled chicken feet with taste, it is ok to take bait, each of them is not delicious
55
Egg Tart, right style, it must be black and not fire
22
Mousse chocolate, it is not difficult to make but slightly fat
Cream Brulee to the right picture
Cream Brulee to the right picture
Share the news now