{"id":749,"date":"2013-03-28T20:32:50","date_gmt":"2013-03-28T20:32:50","guid":{"rendered":"http:\/\/rulesofreason.wordpress.com\/?p=749"},"modified":"2013-03-28T20:32:50","modified_gmt":"2013-03-28T20:32:50","slug":"swimming-in-a-sea-of-code","status":"publish","type":"post","link":"http:\/\/re-design.dimiter.eu\/?p=749","title":{"rendered":"Swimming in a sea of code"},"content":{"rendered":"<p><i>If you are looking for code here, move on.<\/i><\/p>\n<p><code>&gt;\u00a0<\/code>In the beginning, there was only the relentless blinking of the cursor. With the maddening regularity of waves splashing on the shore: blink, blink, blink, blink\u2026Beyond the cursor, the white wasteland of the empty page: vast, featureless, and terrifying as the sea. You stare at the empty page and primordial fear engulfs you: you are never gonna venture into this wasteland, you are never gonna leave the stable, solid, familiar world of menus and shortcuts, icons and buttons.<\/p>\n<p>And then you take the first cautious steps.<\/p>\n<p><code>print \u2018Hello world\u2019<br \/>\n&gt; Hello world<\/code>, the sea obliges.<br \/>\n<code><br \/>\n1+1<br \/>\n&gt; 2<br \/>\n2+2<br \/>\n&gt; 4<br \/>\n<\/code><br \/>\nYou are still scared, but your curiosity is aroused. The playful responsiveness of the sea is tempting, and quickly becomes irresistible. Soon, you are jumpting around like a child, rolling upside-down and around and around:<br \/>\n<code><br \/>\n&gt; a=2<br \/>\n&gt; b=3<br \/>\n&gt; a+b<br \/>\n5<br \/>\n<\/code><br \/>\n<code>&gt; for (x in 1:60) print (x)<\/code><br \/>\n<code>1\u00a0\u00a0\u00a0 2\u00a0\u00a0\u00a0 3\u00a0\u00a0\u00a0 4\u00a0\u00a0\u00a0 5\u00a0\u00a0\u00a0 6\u00a0\u00a0\u00a0 7\u00a0\u00a0\u00a0 8\u00a0\u00a0\u00a0 9\u00a0\u00a0 10\u00a0\u00a0 11\u00a0\u00a0 12\u00a0\u00a0 13\u00a0\u00a0 14\u00a0 15\u00a0\u00a0 16\u00a0\u00a0 17\u00a0\u00a0 18\u00a0\u00a0 19\u00a0\u00a0 20 \u00a0\u00a021\u00a0\u00a0 22\u00a0\u00a0 23\u00a0\u00a0 24\u00a0\u00a0 25\u00a0\u00a0 26\u00a0 27\u00a0\u00a0 28\u00a0\u00a0 29\u00a0\u00a0 30\u00a0\u00a0 31\u00a0\u00a0 32 \u00a0\u00a033\u00a0\u00a0 34\u00a0\u00a0 35\u00a0\u00a0 36\u00a0\u00a0 37\u00a0\u00a0 38\u00a0 39\u00a0\u00a0 40\u00a0\u00a0 41\u00a0\u00a0 42\u00a0\u00a0 43\u00a0\u00a0 44 \u00a0\u00a045\u00a0\u00a0 46\u00a0\u00a0 47\u00a0\u00a0 48\u00a0\u00a0 49\u00a0\u00a0 50\u00a0 51\u00a0\u00a0 52\u00a0\u00a0 53\u00a0\u00a0 54\u00a0\u00a0 55\u00a0\u00a0 56\u00a0\u00a0 57\u00a0\u00a0 58 \u00a0\u00a059\u00a0\u00a0 60<\/code><\/p>\n<p>The sense of freedom is exhilarating. You take a deep breath and dive:<\/p>\n<p><code>&gt; for (i in 1:10) ifelse (i&gt;5, print ('ha'), print ('ho'))<br \/>\n[1] \"ho\"<br \/>\n[1] \"ho\"<br \/>\n[1] \"ho\"<br \/>\n[1] \"ho\"<br \/>\n[1] \"ho\"<br \/>\n[1] \"ha\"<br \/>\n[1] \"ha\"<br \/>\n[1] \"ha\"<br \/>\n[1] \"ha\"<br \/>\n[1] \"ha\"<br \/>\n<\/code><br \/>\nYour old fear seems so silly now. Code is your friend. The sea is your friend. The white page is just a playground with endless possibilities.<\/p>\n<p>Your confidence grows. You start venturing further into the deep. You write your first function. You let code scrape the web for you. You generate your first random variable. You run your first statistical models. Your code grows in length and takes you deeper and deeper into unexplored space.<\/p>\n<p>Then suddenly you are lost. Panic sets in. The code stops to obey; you search for the problem but you cannot find it. Panic grows.\u00a0Instinctively, you grasp for help for the icons, but there are none. You look for support by the\u00a0menus but they are gone. You are all\u00a0alone\u00a0 in the middle of this long string of code which seems so alien right now. Clouds gather.\u00a0Who tempted you in? How do you get back? What to do next? You want to turn these lists into vectors, but you can&#8217;t. You need to decompose your strings into characters but you don&#8217;t know how. Out of\u00a0nowhere encoding problems appear and your entire code is defunct. You are lost&#8230;.<\/p>\n<p>Eventually, you give up and get back to the shore. The world of menus and icons and shortcuts is limited but safe. Your short flirt with code is over forever, you think. Sometimes you dare to dream about the freedom it gave you but then you remember the feelings of helplessness and\u00a0entrapment, of being all alone in the open sea. No, getting into code was a childish mistake.<\/p>\n<p>But as time goes by you learn to control your fear and approach the sea again. This time without headless enthusiasm but slowly, with humility and respect for its unfathomable depths. You never stray too far away from the shore in one go. You learn to avoid nested loops and keep your regular expressions to a minimum. You always leave signposts if you need to retrace your path.<\/p>\n<p>Code will never be your friend. The sea will never be your lover. But maybe you can learn to get along just enough as to harness part of its limitless power&#8230; without losing yourself into it forever.\u00a0<code>&gt;<\/code><\/p>\n<p><a href=\"https:\/\/i2.wp.com\/re-design.dimiter.eu\/wp-content\/uploads\/2013\/03\/post-9-126299637087_thumb.png\"><img data-attachment-id=\"753\" data-permalink=\"http:\/\/re-design.dimiter.eu\/?attachment_id=753\" data-orig-file=\"https:\/\/i2.wp.com\/re-design.dimiter.eu\/wp-content\/uploads\/2013\/03\/post-9-126299637087_thumb.png?fit=600%2C450\" data-orig-size=\"600,450\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"R start screen\" data-image-description=\"\" data-medium-file=\"https:\/\/i2.wp.com\/re-design.dimiter.eu\/wp-content\/uploads\/2013\/03\/post-9-126299637087_thumb.png?fit=300%2C225\" data-large-file=\"https:\/\/i2.wp.com\/re-design.dimiter.eu\/wp-content\/uploads\/2013\/03\/post-9-126299637087_thumb.png?fit=600%2C450\" loading=\"lazy\" class=\"alignnone size-large wp-image-753\" alt=\"R start screen\" src=\"https:\/\/i2.wp.com\/re-design.dimiter.eu\/wp-content\/uploads\/2013\/03\/post-9-126299637087_thumb.png?resize=584%2C438\" width=\"584\" height=\"438\" srcset=\"https:\/\/i2.wp.com\/re-design.dimiter.eu\/wp-content\/uploads\/2013\/03\/post-9-126299637087_thumb.png?w=600 600w, https:\/\/i2.wp.com\/re-design.dimiter.eu\/wp-content\/uploads\/2013\/03\/post-9-126299637087_thumb.png?resize=300%2C225 300w\" sizes=\"(max-width: 584px) 100vw, 584px\" data-recalc-dims=\"1\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you are looking for code here, move on. &gt;\u00a0In the beginning, there was only the relentless blinking of the cursor. With the maddening regularity of waves splashing on the shore: blink, blink, blink, blink\u2026Beyond the cursor, the white wasteland of the empty page: vast, featureless, and terrifying as the sea. You stare at the empty page and primordial fear engulfs you: you are never gonna venture into this wasteland, you are never gonna leave the stable, solid, familiar world of menus and shortcuts, icons and buttons. And then you take the first cautious steps. print \u2018Hello world\u2019 &gt; Hello world, the sea obliges. 1+1 &gt; 2 2+2 &gt; 4 You are still scared, but your curiosity is aroused. The playful responsiveness of the sea is tempting, and quickly becomes irresistible. Soon, you are jumpting around like a child, rolling upside-down and around and around: &gt; a=2 &gt; b=3 &gt; a+b 5 &gt; for (x in 1:60) print (x) 1\u00a0\u00a0\u00a0 2\u00a0\u00a0\u00a0 3\u00a0\u00a0\u00a0 4\u00a0\u00a0\u00a0 5\u00a0\u00a0\u00a0 6\u00a0\u00a0\u00a0 7\u00a0\u00a0\u00a0 8\u00a0\u00a0\u00a0 9\u00a0\u00a0 10\u00a0\u00a0 11\u00a0\u00a0 12\u00a0\u00a0 13\u00a0\u00a0 14\u00a0 15\u00a0\u00a0 16\u00a0\u00a0 17\u00a0\u00a0 18\u00a0\u00a0 19\u00a0\u00a0 20 \u00a0\u00a021\u00a0\u00a0 22\u00a0\u00a0 23\u00a0\u00a0 24\u00a0\u00a0 25\u00a0\u00a0 26\u00a0 27\u00a0\u00a0 28\u00a0\u00a0 29\u00a0\u00a0 30\u00a0\u00a0 31\u00a0\u00a0 32 \u00a0\u00a033\u00a0\u00a0 34\u00a0\u00a0 35\u00a0\u00a0 36\u00a0\u00a0 37\u00a0\u00a0 38\u00a0 39\u00a0\u00a0 40\u00a0\u00a0 41\u00a0\u00a0 42\u00a0\u00a0 43\u00a0\u00a0 44 \u00a0\u00a045\u00a0\u00a0 46\u00a0\u00a0 47\u00a0\u00a0 48\u00a0\u00a0 49\u00a0\u00a0 50\u00a0 51\u00a0\u00a0 52\u00a0\u00a0 53\u00a0\u00a0 54\u00a0\u00a0 55\u00a0\u00a0 56\u00a0\u00a0 57\u00a0\u00a0 58 \u00a0\u00a059\u00a0\u00a0 60 The sense of freedom is exhilarating. You take a deep breath and dive: &gt; for (i in 1:10) ifelse (i&gt;5, print (&#8216;ha&#8217;), print (&#8216;ho&#8217;)) [1] &#8220;ho&#8221; [1] &#8220;ho&#8221; [1] &#8220;ho&#8221; [1]&#8230;<\/p>\n<div class=\"more-link-wrapper\"><a class=\"more-link\" href=\"http:\/\/re-design.dimiter.eu\/?p=749\">Continue reading<span class=\"screen-reader-text\">Swimming in a sea of code<\/span><\/a><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false},"categories":[39],"tags":[133,524],"jetpack_featured_media_url":"","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p7g3hj-c5","jetpack-related-posts":[{"id":38,"url":"http:\/\/re-design.dimiter.eu\/?p=38","url_meta":{"origin":749,"position":0},"title":"Texas vs. Science","date":"October 14, 2011","format":false,"excerpt":"This is from the Guardian: Officials in Rick Perry's home state of Texas have set off a scientists' revolt after purging mentions of climate change and sea-level rise from what was supposed to be a landmark environmental report. The scientists said they were disowning the report on the state of\u2026","rel":"","context":"In &quot;Environmental policy&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":593,"url":"http:\/\/re-design.dimiter.eu\/?p=593","url_meta":{"origin":749,"position":1},"title":"The education revolution at our doorstep","date":"November 14, 2012","format":false,"excerpt":"University education is at the brink of radical transformation. The\u00a0revolution\u00a0is already happening and the Khan Academy, Udacity, Coursera and the Marginal Revolution\u00a0University\u00a0are just the harbingers of a change that will soon sweep over universities throughout the world. Alex Tabarrok has a must-read piece on the coming revolution in education here.\u2026","rel":"","context":"In &quot;Teaching&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":243,"url":"http:\/\/re-design.dimiter.eu\/?p=243","url_meta":{"origin":749,"position":2},"title":"Myron's Law","date":"January 23, 2012","format":false,"excerpt":"\"Asymptotically, any finite tax code collects zero revenue\" This is what economist Paul Romer calls Myron's Law (after Myron Scholes). It is a great aphorism as it illuminates a neglected source of institutional change - the opportunistic adaptation of the regulated actors to the rules which spurs transformations of the\u2026","rel":"","context":"In &quot;Institutions and regulation&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":666,"url":"http:\/\/re-design.dimiter.eu\/?p=666","url_meta":{"origin":749,"position":3},"title":"Discretion is Fractal","date":"February 1, 2013","format":false,"excerpt":"Last week, I made a presentation at the Leiden University conference 'Political Legitimacy and the Paradox of Regulation' under the admittedly esoteric title 'Discretion is Fractal'. Despite the title, my point is actually quite simple: one cannot continue to model,\u00a0conceptualize and measure (administrative or legal) discretion as a linear\u00a0phenomenon\u00a0because of\u2026","rel":"","context":"In &quot;Measurement&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1053,"url":"http:\/\/re-design.dimiter.eu\/?p=1053","url_meta":{"origin":749,"position":4},"title":"Modeling mortality","date":"January 20, 2021","format":false,"excerpt":"To grasp the true impact of COVID-19 on our societies, we need to know the effect of the pandemic on mortality. In other words, we need to know how many deaths can be attributed to the virus, directly and indirectly. It is already popular to visualize mortality in order to\u2026","rel":"","context":"In &quot;Data visualization&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":257,"url":"http:\/\/re-design.dimiter.eu\/?p=257","url_meta":{"origin":749,"position":5},"title":"Climate science wars: The Lysenko move","date":"January 28, 2012","format":false,"excerpt":"The Wall Street Journal (WSJ) has published a letter entitled 'No need to panic about global warming' which opines that \"There is no compelling scientific argument for drastic action to \"decarbonize\" the world's economy\" and \"Alarmism also offers an excuse for governments to raise taxes, taxpayer-funded subsidies for businesses that\u2026","rel":"","context":"In &quot;Environmental policy&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"http:\/\/re-design.dimiter.eu\/index.php?rest_route=\/wp\/v2\/posts\/749"}],"collection":[{"href":"http:\/\/re-design.dimiter.eu\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/re-design.dimiter.eu\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/re-design.dimiter.eu\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/re-design.dimiter.eu\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=749"}],"version-history":[{"count":0,"href":"http:\/\/re-design.dimiter.eu\/index.php?rest_route=\/wp\/v2\/posts\/749\/revisions"}],"wp:attachment":[{"href":"http:\/\/re-design.dimiter.eu\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=749"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/re-design.dimiter.eu\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=749"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/re-design.dimiter.eu\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=749"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}