{"id":3780,"date":"2021-09-27T11:48:46","date_gmt":"2021-09-27T16:48:46","guid":{"rendered":"https:\/\/truxgoservers.com\/blog\/?p=3780"},"modified":"2021-09-27T11:49:25","modified_gmt":"2021-09-27T16:49:25","slug":"chef-a-unique-programming-language","status":"publish","type":"post","link":"https:\/\/truxgoservers.com\/blog\/chef-a-unique-programming-language\/","title":{"rendered":"Chef &#8211; A unique programming language"},"content":{"rendered":"\n<p>When you begin to study <a href=\"https:\/\/en.wikipedia.org\/wiki\/Computer_programming\" target=\"_blank\" rel=\"noreferrer noopener\">programming<\/a>, it is often very helpful to resort to an analogy with a cooking recipe to give a first informal idea of \u200b\u200bwhat is meant by algorithm. And in case you didn&#8217;t know, there is a programming language called Chef that is designed to make programs look like cooking recipes. Who would say that a programming code would be hidden behind a cooking recipe.<\/p>\n\n\n\n<p>CHEF is a language whose programs have the structure of a cooking recipe. The basic elements of the language are the ingredients, which have the role of variables, and the containers (plates), which act as stack-type data structures (although with some additional operations to the usual ones). Every program begins with the name of the recipe, and is followed by the list of ingredients and the method of preparation (main body of the algorithm). Within the latter, we have different actions to insert \/ extract ingredients from the bowls, or to alter their values. For example:<\/p>\n\n\n\n<p><strong><em>\u25b8<\/em><\/strong>Take &lt;ingredient&gt; from refrigerator: reads a value from keyboard, and stores it in ingredient.<\/p>\n\n\n\n<p><strong><em>\u25b8<\/em><\/strong>Put &lt;ingredient&gt; in [n-th] bowl: Enters the ingredient value at the top of the indicated stack.<\/p>\n\n\n\n<p><strong><em>\u25b8<\/em><\/strong>Add | Remove &lt;ingredient&gt; in [n-th] bowl: add | subtracts the ingredient value from the value at the top of the indicated stack.<\/p>\n\n\n\n<p><strong><em>\u25b8<\/em><\/strong>Combine | Divide &lt;ingredient&gt; in the [nth] bowl: Multiply | divides the ingredient value to the value at the top of the indicated stack.<\/p>\n\n\n\n<p><strong><em>\u25b8<\/em><\/strong>Pouring contents of [n-th] bowl onto [m-th] plate: Copies items from one pile to another.<\/p>\n\n\n\n<p><strong><em>\u25b8<\/em><\/strong>Serve for k diners: it shows on the screen k values, taken in order from the first dish, after the second if necessary, etc.<\/p>\n\n\n\n<p>In addition to these basic operations, there is a general iterative construction, which allows simulating while \u2013 endwhile loops. Specifically, when we encounter an action of the type &lt;verb&gt; &lt;ingredient&gt; (where the verb can be anything other than one of the reserved words) we start a while loop conditional on the ingredient value being greater than zero. The end of the loop is marked with an action of type &lt;verb&gt; [&lt;ingredient&gt;] until it is &lt;adjective&gt;. Again, the verb and adjective (typically a participle) indicated are arbitrary, and if an ingredient is indicated its value is decremented by one before returning to the beginning of the loop.<\/p>\n\n\n\n<p>Other related reads:<br><a href=\"https:\/\/truxgoservers.com\/blog\/shakespeare-a-unique-programming-lenguage\/\">Shakespeare Unique Programming Language<\/a><br><a href=\"https:\/\/truxgoservers.com\/blog\/arnoldc-for-arnold-schwarzenegger-lovers\/\">ArnoldC For Arnold Schwarzenegger Lovers<\/a><br><a href=\"https:\/\/truxgoservers.com\/blog\/remorse-is-a-language-with-4-simple-instructions\/\">ReMorse is a language with 4 simple instructions<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>When you begin to study programming, it is often very helpful to resort to an analogy with a cooking recipe to give a first informal idea of \u200b\u200bwhat is meant by algorithm. And in case you didn&#8217;t know, there is a programming language called Chef that is designed to make programs look like cooking recipes. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":3783,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[33],"class_list":["post-3780","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorial","tag-tutorial"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Chef - A unique programming language - Truxgo Server Blog<\/title>\n<meta name=\"description\" content=\"We well know that there are unique languages \u200b\u200bwhich can be complicated and at the same time fun, today we will see one called Chef.....\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/truxgoservers.com\/blog\/chef-a-unique-programming-language\/\" \/>\n<meta property=\"og:locale\" content=\"es_MX\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Chef - A unique programming language - Truxgo Server Blog\" \/>\n<meta property=\"og:description\" content=\"We well know that there are unique languages \u200b\u200bwhich can be complicated and at the same time fun, today we will see one called Chef.....\" \/>\n<meta property=\"og:url\" content=\"https:\/\/truxgoservers.com\/blog\/chef-a-unique-programming-language\/\" \/>\n<meta property=\"og:site_name\" content=\"Truxgo Server Blog\" \/>\n<meta property=\"article:published_time\" content=\"2021-09-27T16:48:46+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-09-27T16:49:25+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/truxgoservers.com\/blog\/wp-content\/uploads\/2021\/09\/Chef.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"744\" \/>\n\t<meta property=\"og:image:height\" content=\"400\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Truxgo\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Escrito por\" \/>\n\t<meta name=\"twitter:data1\" content=\"Truxgo\" \/>\n\t<meta name=\"twitter:label2\" content=\"Tiempo de lectura\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutos\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/chef-a-unique-programming-language\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/chef-a-unique-programming-language\\\/\"},\"author\":{\"name\":\"Truxgo\",\"@id\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/#\\\/schema\\\/person\\\/8b409c26449db6aa09724b45331e333e\"},\"headline\":\"Chef &#8211; A unique programming language\",\"datePublished\":\"2021-09-27T16:48:46+00:00\",\"dateModified\":\"2021-09-27T16:49:25+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/chef-a-unique-programming-language\\\/\"},\"wordCount\":425,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/chef-a-unique-programming-language\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/09\\\/Chef.jpg\",\"keywords\":[\"Tutorial\"],\"articleSection\":[\"Tutorial\"],\"inLanguage\":\"es\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/chef-a-unique-programming-language\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/chef-a-unique-programming-language\\\/\",\"url\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/chef-a-unique-programming-language\\\/\",\"name\":\"Chef - A unique programming language - Truxgo Server Blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/chef-a-unique-programming-language\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/chef-a-unique-programming-language\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/09\\\/Chef.jpg\",\"datePublished\":\"2021-09-27T16:48:46+00:00\",\"dateModified\":\"2021-09-27T16:49:25+00:00\",\"description\":\"We well know that there are unique languages \u200b\u200bwhich can be complicated and at the same time fun, today we will see one called Chef.....\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/chef-a-unique-programming-language\\\/#breadcrumb\"},\"inLanguage\":\"es\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/chef-a-unique-programming-language\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"es\",\"@id\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/chef-a-unique-programming-language\\\/#primaryimage\",\"url\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/09\\\/Chef.jpg\",\"contentUrl\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/09\\\/Chef.jpg\",\"width\":744,\"height\":400},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/chef-a-unique-programming-language\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Chef &#8211; A unique programming language\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/\",\"name\":\"Truxgo Server Blog\",\"description\":\"Cloud Server and Hosting Tutorials.\",\"publisher\":{\"@id\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"es\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/#organization\",\"name\":\"Truxgo Server Blog\",\"url\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"es\",\"@id\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/08\\\/cropped-truxgo-logo-blanco.png\",\"contentUrl\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/08\\\/cropped-truxgo-logo-blanco.png\",\"width\":1250,\"height\":278,\"caption\":\"Truxgo Server Blog\"},\"image\":{\"@id\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/#\\\/schema\\\/person\\\/8b409c26449db6aa09724b45331e333e\",\"name\":\"Truxgo\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"es\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/52691a61c58e68677ed4860007c1bb03b14eabe7350747ab3fad3e17825b4b96?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/52691a61c58e68677ed4860007c1bb03b14eabe7350747ab3fad3e17825b4b96?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/52691a61c58e68677ed4860007c1bb03b14eabe7350747ab3fad3e17825b4b96?s=96&d=mm&r=g\",\"caption\":\"Truxgo\"},\"sameAs\":[\"https:\\\/\\\/truxgoservers.com\\\/blog\"],\"url\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/author\\\/truxgo\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Chef - A unique programming language - Truxgo Server Blog","description":"We well know that there are unique languages \u200b\u200bwhich can be complicated and at the same time fun, today we will see one called Chef.....","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/truxgoservers.com\/blog\/chef-a-unique-programming-language\/","og_locale":"es_MX","og_type":"article","og_title":"Chef - A unique programming language - Truxgo Server Blog","og_description":"We well know that there are unique languages \u200b\u200bwhich can be complicated and at the same time fun, today we will see one called Chef.....","og_url":"https:\/\/truxgoservers.com\/blog\/chef-a-unique-programming-language\/","og_site_name":"Truxgo Server Blog","article_published_time":"2021-09-27T16:48:46+00:00","article_modified_time":"2021-09-27T16:49:25+00:00","og_image":[{"width":744,"height":400,"url":"https:\/\/truxgoservers.com\/blog\/wp-content\/uploads\/2021\/09\/Chef.jpg","type":"image\/jpeg"}],"author":"Truxgo","twitter_card":"summary_large_image","twitter_misc":{"Escrito por":"Truxgo","Tiempo de lectura":"2 minutos"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/truxgoservers.com\/blog\/chef-a-unique-programming-language\/#article","isPartOf":{"@id":"https:\/\/truxgoservers.com\/blog\/chef-a-unique-programming-language\/"},"author":{"name":"Truxgo","@id":"https:\/\/truxgoservers.com\/blog\/#\/schema\/person\/8b409c26449db6aa09724b45331e333e"},"headline":"Chef &#8211; A unique programming language","datePublished":"2021-09-27T16:48:46+00:00","dateModified":"2021-09-27T16:49:25+00:00","mainEntityOfPage":{"@id":"https:\/\/truxgoservers.com\/blog\/chef-a-unique-programming-language\/"},"wordCount":425,"commentCount":0,"publisher":{"@id":"https:\/\/truxgoservers.com\/blog\/#organization"},"image":{"@id":"https:\/\/truxgoservers.com\/blog\/chef-a-unique-programming-language\/#primaryimage"},"thumbnailUrl":"https:\/\/truxgoservers.com\/blog\/wp-content\/uploads\/2021\/09\/Chef.jpg","keywords":["Tutorial"],"articleSection":["Tutorial"],"inLanguage":"es","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/truxgoservers.com\/blog\/chef-a-unique-programming-language\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/truxgoservers.com\/blog\/chef-a-unique-programming-language\/","url":"https:\/\/truxgoservers.com\/blog\/chef-a-unique-programming-language\/","name":"Chef - A unique programming language - Truxgo Server Blog","isPartOf":{"@id":"https:\/\/truxgoservers.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/truxgoservers.com\/blog\/chef-a-unique-programming-language\/#primaryimage"},"image":{"@id":"https:\/\/truxgoservers.com\/blog\/chef-a-unique-programming-language\/#primaryimage"},"thumbnailUrl":"https:\/\/truxgoservers.com\/blog\/wp-content\/uploads\/2021\/09\/Chef.jpg","datePublished":"2021-09-27T16:48:46+00:00","dateModified":"2021-09-27T16:49:25+00:00","description":"We well know that there are unique languages \u200b\u200bwhich can be complicated and at the same time fun, today we will see one called Chef.....","breadcrumb":{"@id":"https:\/\/truxgoservers.com\/blog\/chef-a-unique-programming-language\/#breadcrumb"},"inLanguage":"es","potentialAction":[{"@type":"ReadAction","target":["https:\/\/truxgoservers.com\/blog\/chef-a-unique-programming-language\/"]}]},{"@type":"ImageObject","inLanguage":"es","@id":"https:\/\/truxgoservers.com\/blog\/chef-a-unique-programming-language\/#primaryimage","url":"https:\/\/truxgoservers.com\/blog\/wp-content\/uploads\/2021\/09\/Chef.jpg","contentUrl":"https:\/\/truxgoservers.com\/blog\/wp-content\/uploads\/2021\/09\/Chef.jpg","width":744,"height":400},{"@type":"BreadcrumbList","@id":"https:\/\/truxgoservers.com\/blog\/chef-a-unique-programming-language\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/truxgoservers.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Chef &#8211; A unique programming language"}]},{"@type":"WebSite","@id":"https:\/\/truxgoservers.com\/blog\/#website","url":"https:\/\/truxgoservers.com\/blog\/","name":"Truxgo Server Blog","description":"Cloud Server and Hosting Tutorials.","publisher":{"@id":"https:\/\/truxgoservers.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/truxgoservers.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"es"},{"@type":"Organization","@id":"https:\/\/truxgoservers.com\/blog\/#organization","name":"Truxgo Server Blog","url":"https:\/\/truxgoservers.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"es","@id":"https:\/\/truxgoservers.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/truxgoservers.com\/blog\/wp-content\/uploads\/2020\/08\/cropped-truxgo-logo-blanco.png","contentUrl":"https:\/\/truxgoservers.com\/blog\/wp-content\/uploads\/2020\/08\/cropped-truxgo-logo-blanco.png","width":1250,"height":278,"caption":"Truxgo Server Blog"},"image":{"@id":"https:\/\/truxgoservers.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/truxgoservers.com\/blog\/#\/schema\/person\/8b409c26449db6aa09724b45331e333e","name":"Truxgo","image":{"@type":"ImageObject","inLanguage":"es","@id":"https:\/\/secure.gravatar.com\/avatar\/52691a61c58e68677ed4860007c1bb03b14eabe7350747ab3fad3e17825b4b96?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/52691a61c58e68677ed4860007c1bb03b14eabe7350747ab3fad3e17825b4b96?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/52691a61c58e68677ed4860007c1bb03b14eabe7350747ab3fad3e17825b4b96?s=96&d=mm&r=g","caption":"Truxgo"},"sameAs":["https:\/\/truxgoservers.com\/blog"],"url":"https:\/\/truxgoservers.com\/blog\/author\/truxgo\/"}]}},"_links":{"self":[{"href":"https:\/\/truxgoservers.com\/blog\/wp-json\/wp\/v2\/posts\/3780","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/truxgoservers.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/truxgoservers.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/truxgoservers.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/truxgoservers.com\/blog\/wp-json\/wp\/v2\/comments?post=3780"}],"version-history":[{"count":3,"href":"https:\/\/truxgoservers.com\/blog\/wp-json\/wp\/v2\/posts\/3780\/revisions"}],"predecessor-version":[{"id":3805,"href":"https:\/\/truxgoservers.com\/blog\/wp-json\/wp\/v2\/posts\/3780\/revisions\/3805"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/truxgoservers.com\/blog\/wp-json\/wp\/v2\/media\/3783"}],"wp:attachment":[{"href":"https:\/\/truxgoservers.com\/blog\/wp-json\/wp\/v2\/media?parent=3780"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/truxgoservers.com\/blog\/wp-json\/wp\/v2\/categories?post=3780"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/truxgoservers.com\/blog\/wp-json\/wp\/v2\/tags?post=3780"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}