{"id":12603,"date":"2012-12-18T07:00:30","date_gmt":"2012-12-18T13:00:30","guid":{"rendered":"http:\/\/www.johndcook.com\/blog\/?p=12603"},"modified":"2020-01-28T10:36:19","modified_gmt":"2020-01-28T16:36:19","slug":"the-value-of-typing-code","status":"publish","type":"post","link":"https:\/\/www.johndcook.com\/blog\/2012\/12\/18\/the-value-of-typing-code\/","title":{"rendered":"The value of typing code"},"content":{"rendered":"<p>Tommy Nicholas recently wrote a <a href=\"http:\/\/www.shockoe.com\/blog\/typingcodeout\/\">blog post<\/a> advocating typing rather than copying-and-pasting code samples. I thought this was the most interesting paragraph from the post:<\/p>\n<blockquote><p>When Hunter S. Thompson was working as a copy boy at Time Magazine in 1959, he spent his spare time typing out the entire <a href=\"https:\/\/amzn.to\/2t3D9ft\">Great Gatsby<\/a> by F. Scott Fitzgerald and <a href=\"https:\/\/amzn.to\/36yC1y7\">A Farewell to Arms<\/a> by Ernest Hemingway in order to better understand what it feels like to write a great book. To be able to feel the author\u2019s turns in logic and storytelling weren\u2019t possible from reading the books alone, you had to feel what it feels like to actually create the thing. And so I have found it to be with coding.<\/p><\/blockquote>\n<p><a href=\"\/\/www.johndcook.com\/blog\/2011\/07\/11\/how-to-become-a-good-programmer\/\">Joe Armstrong<\/a> had similar advice:<\/p>\n<blockquote><p>Forget about the tools \u2026 buy a decent book and type in the programs by hand. One at a time thinking as you go. After 30 years you will get the hang of this and be a good programmer.<\/p><\/blockquote>\n<p>Typing code may be like riding a bicycle. I&#8217;m surprised how much more detail I see the first time I ride my bicycle over a road I&#8217;ve driven on, mostly because I&#8217;m moving slower but also because there&#8217;s an additional muscular dimension to the experience.<\/p>\n<p>Another advantage to typing example code is that you&#8217;ll make mistakes, just as you will in real work. This will give you the opportunity to see what happens and to learn debugging, even though you may not appreciate the opportunity.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Tommy Nicholas recently wrote a blog post advocating typing rather than copying-and-pasting code samples. I thought this was the most interesting paragraph from the post: When Hunter S. Thompson was working as a copy boy at Time Magazine in 1959, he spent his spare time typing out the entire Great Gatsby by F. Scott Fitzgerald [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[16],"tags":[108],"class_list":["post-12603","post","type-post","status-publish","format-standard","hentry","category-software-development","tag-programming"],"acf":[],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.9 - aioseo.com -->\n\t<meta name=\"description\" content=\"Tommy Nicholas recently wrote a blog post advocating typing rather than copying-and-pasting code samples. I thought this was the most interesting paragraph from the post: When Hunter S. Thompson was working as a copy boy at Time Magazine in 1959, he spent his spare time typing out the entire Great Gatsby by F. Scott Fitzgerald\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"John\"\/>\n\t<meta name=\"keywords\" content=\"programming\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.johndcook.com\/blog\/2012\/12\/18\/the-value-of-typing-code\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.9\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"John D. Cook | Applied Mathematics Consulting\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"The value of typing code\" \/>\n\t\t<meta property=\"og:description\" content=\"Tommy Nicholas recently wrote a blog post advocating typing rather than copying-and-pasting code samples. I thought this was the most interesting paragraph from the post: When Hunter S. Thompson was working as a copy boy at Time Magazine in 1959, he spent his spare time typing out the entire Great Gatsby by F. Scott Fitzgerald\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/www.johndcook.com\/blog\/2012\/12\/18\/the-value-of-typing-code\/\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2012-12-18T13:00:30+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2020-01-28T16:36:19+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:title\" content=\"The value of typing code\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Tommy Nicholas recently wrote a blog post advocating typing rather than copying-and-pasting code samples. I thought this was the most interesting paragraph from the post: When Hunter S. Thompson was working as a copy boy at Time Magazine in 1959, he spent his spare time typing out the entire Great Gatsby by F. Scott Fitzgerald\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/www.johndcook.com\/blog\/wp-content\/uploads\/2022\/05\/twittercard.png\" \/>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"The value of typing code","description":"Tommy Nicholas recently wrote a blog post advocating typing rather than copying-and-pasting code samples. I thought this was the most interesting paragraph from the post: When Hunter S. Thompson was working as a copy boy at Time Magazine in 1959, he spent his spare time typing out the entire Great Gatsby by F. Scott Fitzgerald","canonical_url":"https:\/\/www.johndcook.com\/blog\/2012\/12\/18\/the-value-of-typing-code\/","robots":"max-image-preview:large","keywords":"programming","webmasterTools":{"miscellaneous":""},"schema":null,"og:locale":"en_US","og:site_name":"John D. Cook | Applied Mathematics Consulting","og:type":"article","og:title":"The value of typing code","og:description":"Tommy Nicholas recently wrote a blog post advocating typing rather than copying-and-pasting code samples. I thought this was the most interesting paragraph from the post: When Hunter S. Thompson was working as a copy boy at Time Magazine in 1959, he spent his spare time typing out the entire Great Gatsby by F. Scott Fitzgerald","og:url":"https:\/\/www.johndcook.com\/blog\/2012\/12\/18\/the-value-of-typing-code\/","article:published_time":"2012-12-18T13:00:30+00:00","article:modified_time":"2020-01-28T16:36:19+00:00","twitter:card":"summary","twitter:title":"The value of typing code","twitter:description":"Tommy Nicholas recently wrote a blog post advocating typing rather than copying-and-pasting code samples. I thought this was the most interesting paragraph from the post: When Hunter S. Thompson was working as a copy boy at Time Magazine in 1959, he spent his spare time typing out the entire Great Gatsby by F. Scott Fitzgerald","twitter:image":"https:\/\/www.johndcook.com\/blog\/wp-content\/uploads\/2022\/05\/twittercard.png"},"aioseo_meta_data":{"post_id":"12603","title":"The value of typing code","description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"location":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"created":"2020-12-21 02:38:52","updated":"2025-06-03 22:50:08","ai":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.johndcook.com\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.johndcook.com\/blog\/category\/software-development\/\" title=\"Software development\">Software development<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tThe value of typing code\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/www.johndcook.com\/blog"},{"label":"Software development","link":"https:\/\/www.johndcook.com\/blog\/category\/software-development\/"},{"label":"The value of typing code","link":"https:\/\/www.johndcook.com\/blog\/2012\/12\/18\/the-value-of-typing-code\/"}],"_links":{"self":[{"href":"https:\/\/www.johndcook.com\/blog\/wp-json\/wp\/v2\/posts\/12603","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.johndcook.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.johndcook.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.johndcook.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.johndcook.com\/blog\/wp-json\/wp\/v2\/comments?post=12603"}],"version-history":[{"count":0,"href":"https:\/\/www.johndcook.com\/blog\/wp-json\/wp\/v2\/posts\/12603\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.johndcook.com\/blog\/wp-json\/wp\/v2\/media?parent=12603"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.johndcook.com\/blog\/wp-json\/wp\/v2\/categories?post=12603"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.johndcook.com\/blog\/wp-json\/wp\/v2\/tags?post=12603"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}