{"id":81091,"date":"2014-12-22T10:36:00","date_gmt":"2014-12-22T15:36:00","guid":{"rendered":"https:\/\/www.theparisreview.org\/blog\/?p=81091"},"modified":"2014-12-22T10:36:00","modified_gmt":"2014-12-22T15:36:00","slug":"the-beauty-of-code-2","status":"publish","type":"post","link":"https:\/\/www.theparisreview.org\/blog\/2014\/12\/22\/the-beauty-of-code-2\/","title":{"rendered":"The Beauty of Code"},"content":{"rendered":"<p><em>We\u2019re out until January 5, but we\u2019re re-posting some of our favorite pieces from 2014 while we\u2019re away. We hope you enjoy\u2014and have a happy New Year!<\/em><\/p>\n<div id=\"attachment_76367\" style=\"width: 610px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/www.theparisreview.org\/blog\/wp-content\/uploads\/2014\/09\/1.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-76367\" class=\"wp-image-76367\" src=\"https:\/\/www.theparisreview.org\/blog\/wp-content\/uploads\/2014\/09\/1.jpg\" alt=\"1\" width=\"600\" height=\"338\" srcset=\"https:\/\/www.theparisreview.org\/blog\/wp-content\/uploads\/2014\/09\/1.jpg 1149w, https:\/\/www.theparisreview.org\/blog\/wp-content\/uploads\/2014\/09\/1-300x168.jpg 300w, https:\/\/www.theparisreview.org\/blog\/wp-content\/uploads\/2014\/09\/1-1024x576.jpg 1024w\" sizes=\"auto, (min-width: 62.5em) 67vw, 100vw\" \/><\/a><p id=\"caption-attachment-76367\" class=\"wp-caption-text\">Dependency diagram (Image via TheDailyWTF)<\/p><\/div>\n<p>This is what ugly code looks like. This is a dependency diagram\u2014a graphic representation of interdependence or coupling (the black lines) between software components (the gray dots) within a program. A high degree of interdependence means that changing one component inside the program could lead to cascading changes in all the other connected components, and in turn to changes in their dependencies, and so on. Programs with this kind of structure are brittle, and hard to understand and fix. This dependency program was submitted anonymously to TheDailyWTF.com, where working programmers share \u201cCurious Perversions in Information Technology\u201d as they work. The exhibits at TheDailyWTF are often embodiments of stupidity, of miasmic dumbness perpetrated by the squadrons of sub-Mort programmers putting together the software that runs businesses across the globe. But, as often, high-flying \u201centerprise architects\u201d and consultants put together systems that produce dependency diagrams that look like this renowned TheDailyWTF exhibit. A user commented, \u201cI found something just like that blocking the drain once.\u201d<\/p>\n<p>If that knot of tangled hair provokes disgust, what kind of code garners admiration? In the anthology <em>Beautiful Code<\/em>, the contribution from the creator of the popular programming language Ruby, Yukihiro \u201cMatz\u201d Matsumoto, is an essay titled \u201cTreating Code as an Essay.\u201d Matz writes:<\/p>\n<blockquote>\n<p>Judging the attributes of computer code is not simply a matter of aesthetics. Instead, computer programs are judged according to how well they execute their intended tasks. In other words, \u201cbeautiful code\u201d is not an abstract virtue that exists independent of its programmers\u2019 efforts. Rather, beautiful code is really meant to help the programmer be happy and productive. This is the metric I use to evaluate the beauty of a program.<\/p>\n<\/blockquote>\n<p><a href=\"https:\/\/www.theparisreview.org\/blog\/2014\/09\/05\/the-beauty-of-code\/\">Read More &gt;&gt;<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>We\u2019re out until January 5, but we\u2019re re-posting some of our favorite pieces from 2014 while we\u2019re away. We hope you enjoy\u2014and have a happy New Year! This is what ugly code looks like. This is a dependency diagram\u2014a graphic representation of interdependence or coupling (the black lines) between software components (the gray dots) within [&hellip;]<\/p>\n","protected":false},"author":745,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[16464],"tags":[15208,15205,15202,15207,15206,15204,687,15203,224],"class_list":["post-81091","post","type-post","status-publish","format-standard","hentry","category-best-of-2014","tag-beautiful-code","tag-brainfuck","tag-coding","tag-dependency-diagram","tag-donald-knuth","tag-git","tag-language","tag-programming","tag-technology"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v25.4 (Yoast SEO v25.4) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>The Beauty of Code<\/title>\n<meta name=\"description\" content=\"An excerpt from Vikram Chandra\u2019s \u201cGeek Sublime: The Beauty of Code, the Code of Beauty.\u201d\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.theparisreview.org\/blog\/2014\/12\/22\/the-beauty-of-code-2\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"The Beauty of Code by Vikram Chandra\" \/>\n<meta property=\"og:description\" content=\"December 22, 2014 \u2013 We\u2019re out until January 5, but we\u2019re re-posting some of our favorite pieces from 2014 while we\u2019re away. We hope you enjoy\u2014and have a happy New Year! This\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.theparisreview.org\/blog\/2014\/12\/22\/the-beauty-of-code-2\/\" \/>\n<meta property=\"og:site_name\" content=\"The Paris Review\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/parisreview\/\" \/>\n<meta property=\"article:published_time\" content=\"2014-12-22T15:36:00+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.theparisreview.org\/blog\/wp-content\/uploads\/2014\/09\/1.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1149\" \/>\n\t<meta property=\"og:image:height\" content=\"647\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Vikram Chandra\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@parisreview\" \/>\n<meta name=\"twitter:site\" content=\"@parisreview\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Vikram Chandra\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.theparisreview.org\/blog\/2014\/12\/22\/the-beauty-of-code-2\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.theparisreview.org\/blog\/2014\/12\/22\/the-beauty-of-code-2\/\"},\"author\":{\"name\":\"Vikram Chandra\",\"@id\":\"https:\/\/www.theparisreview.org\/blog\/#\/schema\/person\/ea9b45866a0cfa99483ec0aa9c3cac4f\"},\"headline\":\"The Beauty of Code\",\"datePublished\":\"2014-12-22T15:36:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.theparisreview.org\/blog\/2014\/12\/22\/the-beauty-of-code-2\/\"},\"wordCount\":329,\"publisher\":{\"@id\":\"https:\/\/www.theparisreview.org\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.theparisreview.org\/blog\/2014\/12\/22\/the-beauty-of-code-2\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.theparisreview.org\/blog\/wp-content\/uploads\/2014\/09\/1.jpg\",\"keywords\":[\"beautiful code\",\"brainfuck\",\"coding\",\"dependency diagram\",\"Donald Knuth\",\"Git\",\"language\",\"programming\",\"technology\"],\"articleSection\":[\"Best of 2014\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.theparisreview.org\/blog\/2014\/12\/22\/the-beauty-of-code-2\/\",\"url\":\"https:\/\/www.theparisreview.org\/blog\/2014\/12\/22\/the-beauty-of-code-2\/\",\"name\":\"The Beauty of Code\",\"isPartOf\":{\"@id\":\"https:\/\/www.theparisreview.org\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.theparisreview.org\/blog\/2014\/12\/22\/the-beauty-of-code-2\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.theparisreview.org\/blog\/2014\/12\/22\/the-beauty-of-code-2\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.theparisreview.org\/blog\/wp-content\/uploads\/2014\/09\/1.jpg\",\"datePublished\":\"2014-12-22T15:36:00+00:00\",\"description\":\"An excerpt from Vikram Chandra\u2019s \u201cGeek Sublime: The Beauty of Code, the Code of Beauty.\u201d\",\"breadcrumb\":{\"@id\":\"https:\/\/www.theparisreview.org\/blog\/2014\/12\/22\/the-beauty-of-code-2\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.theparisreview.org\/blog\/2014\/12\/22\/the-beauty-of-code-2\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.theparisreview.org\/blog\/2014\/12\/22\/the-beauty-of-code-2\/#primaryimage\",\"url\":\"https:\/\/www.theparisreview.org\/blog\/wp-content\/uploads\/2014\/09\/1.jpg\",\"contentUrl\":\"https:\/\/www.theparisreview.org\/blog\/wp-content\/uploads\/2014\/09\/1.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.theparisreview.org\/blog\/2014\/12\/22\/the-beauty-of-code-2\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.theparisreview.org\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"The Beauty of Code\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.theparisreview.org\/blog\/#website\",\"url\":\"https:\/\/www.theparisreview.org\/blog\/\",\"name\":\"The Paris Review\",\"description\":\"The best prose, interviews, poetry, and art. Since 1953.\",\"publisher\":{\"@id\":\"https:\/\/www.theparisreview.org\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.theparisreview.org\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.theparisreview.org\/blog\/#organization\",\"name\":\"The Paris Review\",\"url\":\"https:\/\/www.theparisreview.org\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.theparisreview.org\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.theparisreview.org\/blog\/wp-content\/uploads\/2025\/04\/tpr-hadada-roundell-logo-square.png\",\"contentUrl\":\"https:\/\/www.theparisreview.org\/blog\/wp-content\/uploads\/2025\/04\/tpr-hadada-roundell-logo-square.png\",\"width\":696,\"height\":696,\"caption\":\"The Paris Review\"},\"image\":{\"@id\":\"https:\/\/www.theparisreview.org\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/parisreview\/\",\"https:\/\/x.com\/parisreview\",\"https:\/\/www.instagram.com\/parisreview\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.theparisreview.org\/blog\/#\/schema\/person\/ea9b45866a0cfa99483ec0aa9c3cac4f\",\"name\":\"Vikram Chandra\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.theparisreview.org\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/6d54bf227b323cd4ba8e77b9f304c2f7136273cd0f9410bf150c43dbe88413e7?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/6d54bf227b323cd4ba8e77b9f304c2f7136273cd0f9410bf150c43dbe88413e7?s=96&d=mm&r=g\",\"caption\":\"Vikram Chandra\"},\"url\":\"https:\/\/www.theparisreview.org\/blog\/author\/vchandra\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"The Beauty of Code","description":"An excerpt from Vikram Chandra\u2019s \u201cGeek Sublime: The Beauty of Code, the Code of Beauty.\u201d","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:\/\/www.theparisreview.org\/blog\/2014\/12\/22\/the-beauty-of-code-2\/","og_locale":"en_US","og_type":"article","og_title":"The Beauty of Code by Vikram Chandra","og_description":"December 22, 2014 \u2013 We\u2019re out until January 5, but we\u2019re re-posting some of our favorite pieces from 2014 while we\u2019re away. We hope you enjoy\u2014and have a happy New Year! This","og_url":"https:\/\/www.theparisreview.org\/blog\/2014\/12\/22\/the-beauty-of-code-2\/","og_site_name":"The Paris Review","article_publisher":"https:\/\/www.facebook.com\/parisreview\/","article_published_time":"2014-12-22T15:36:00+00:00","og_image":[{"width":1149,"height":647,"url":"https:\/\/www.theparisreview.org\/blog\/wp-content\/uploads\/2014\/09\/1.jpg","type":"image\/jpeg"}],"author":"Vikram Chandra","twitter_card":"summary_large_image","twitter_creator":"@parisreview","twitter_site":"@parisreview","twitter_misc":{"Written by":"Vikram Chandra","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.theparisreview.org\/blog\/2014\/12\/22\/the-beauty-of-code-2\/#article","isPartOf":{"@id":"https:\/\/www.theparisreview.org\/blog\/2014\/12\/22\/the-beauty-of-code-2\/"},"author":{"name":"Vikram Chandra","@id":"https:\/\/www.theparisreview.org\/blog\/#\/schema\/person\/ea9b45866a0cfa99483ec0aa9c3cac4f"},"headline":"The Beauty of Code","datePublished":"2014-12-22T15:36:00+00:00","mainEntityOfPage":{"@id":"https:\/\/www.theparisreview.org\/blog\/2014\/12\/22\/the-beauty-of-code-2\/"},"wordCount":329,"publisher":{"@id":"https:\/\/www.theparisreview.org\/blog\/#organization"},"image":{"@id":"https:\/\/www.theparisreview.org\/blog\/2014\/12\/22\/the-beauty-of-code-2\/#primaryimage"},"thumbnailUrl":"https:\/\/www.theparisreview.org\/blog\/wp-content\/uploads\/2014\/09\/1.jpg","keywords":["beautiful code","brainfuck","coding","dependency diagram","Donald Knuth","Git","language","programming","technology"],"articleSection":["Best of 2014"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.theparisreview.org\/blog\/2014\/12\/22\/the-beauty-of-code-2\/","url":"https:\/\/www.theparisreview.org\/blog\/2014\/12\/22\/the-beauty-of-code-2\/","name":"The Beauty of Code","isPartOf":{"@id":"https:\/\/www.theparisreview.org\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.theparisreview.org\/blog\/2014\/12\/22\/the-beauty-of-code-2\/#primaryimage"},"image":{"@id":"https:\/\/www.theparisreview.org\/blog\/2014\/12\/22\/the-beauty-of-code-2\/#primaryimage"},"thumbnailUrl":"https:\/\/www.theparisreview.org\/blog\/wp-content\/uploads\/2014\/09\/1.jpg","datePublished":"2014-12-22T15:36:00+00:00","description":"An excerpt from Vikram Chandra\u2019s \u201cGeek Sublime: The Beauty of Code, the Code of Beauty.\u201d","breadcrumb":{"@id":"https:\/\/www.theparisreview.org\/blog\/2014\/12\/22\/the-beauty-of-code-2\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.theparisreview.org\/blog\/2014\/12\/22\/the-beauty-of-code-2\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.theparisreview.org\/blog\/2014\/12\/22\/the-beauty-of-code-2\/#primaryimage","url":"https:\/\/www.theparisreview.org\/blog\/wp-content\/uploads\/2014\/09\/1.jpg","contentUrl":"https:\/\/www.theparisreview.org\/blog\/wp-content\/uploads\/2014\/09\/1.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/www.theparisreview.org\/blog\/2014\/12\/22\/the-beauty-of-code-2\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.theparisreview.org\/blog\/"},{"@type":"ListItem","position":2,"name":"The Beauty of Code"}]},{"@type":"WebSite","@id":"https:\/\/www.theparisreview.org\/blog\/#website","url":"https:\/\/www.theparisreview.org\/blog\/","name":"The Paris Review","description":"The best prose, interviews, poetry, and art. Since 1953.","publisher":{"@id":"https:\/\/www.theparisreview.org\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.theparisreview.org\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.theparisreview.org\/blog\/#organization","name":"The Paris Review","url":"https:\/\/www.theparisreview.org\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.theparisreview.org\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.theparisreview.org\/blog\/wp-content\/uploads\/2025\/04\/tpr-hadada-roundell-logo-square.png","contentUrl":"https:\/\/www.theparisreview.org\/blog\/wp-content\/uploads\/2025\/04\/tpr-hadada-roundell-logo-square.png","width":696,"height":696,"caption":"The Paris Review"},"image":{"@id":"https:\/\/www.theparisreview.org\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/parisreview\/","https:\/\/x.com\/parisreview","https:\/\/www.instagram.com\/parisreview"]},{"@type":"Person","@id":"https:\/\/www.theparisreview.org\/blog\/#\/schema\/person\/ea9b45866a0cfa99483ec0aa9c3cac4f","name":"Vikram Chandra","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.theparisreview.org\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/6d54bf227b323cd4ba8e77b9f304c2f7136273cd0f9410bf150c43dbe88413e7?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/6d54bf227b323cd4ba8e77b9f304c2f7136273cd0f9410bf150c43dbe88413e7?s=96&d=mm&r=g","caption":"Vikram Chandra"},"url":"https:\/\/www.theparisreview.org\/blog\/author\/vchandra\/"}]}},"_links":{"self":[{"href":"https:\/\/www.theparisreview.org\/blog\/wp-json\/wp\/v2\/posts\/81091","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.theparisreview.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.theparisreview.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.theparisreview.org\/blog\/wp-json\/wp\/v2\/users\/745"}],"replies":[{"embeddable":true,"href":"https:\/\/www.theparisreview.org\/blog\/wp-json\/wp\/v2\/comments?post=81091"}],"version-history":[{"count":1,"href":"https:\/\/www.theparisreview.org\/blog\/wp-json\/wp\/v2\/posts\/81091\/revisions"}],"predecessor-version":[{"id":81092,"href":"https:\/\/www.theparisreview.org\/blog\/wp-json\/wp\/v2\/posts\/81091\/revisions\/81092"}],"wp:attachment":[{"href":"https:\/\/www.theparisreview.org\/blog\/wp-json\/wp\/v2\/media?parent=81091"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.theparisreview.org\/blog\/wp-json\/wp\/v2\/categories?post=81091"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.theparisreview.org\/blog\/wp-json\/wp\/v2\/tags?post=81091"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}