{"id":9355,"date":"2018-01-18T00:01:07","date_gmt":"2018-01-18T08:01:07","guid":{"rendered":"https:\/\/www.wambooli.com\/blog\/?p=9355"},"modified":"2018-01-06T16:26:59","modified_gmt":"2018-01-07T00:26:59","slug":"im-trying-to-learn-python","status":"publish","type":"post","link":"https:\/\/www.wambooli.com\/blog\/?p=9355","title":{"rendered":"I&#8217;m Trying to Learn Python"},"content":{"rendered":"<p>I&#8217;m a C language fanatic. It&#8217;s my language of choice, primarily because I have books and online courses about teaching C, as well as the <em><a href=\"http:\/\/c-for-dummies.com\" target=\"_blank\">Unofficial C For Dummies<\/a><\/em> companion website. It&#8217;s good to keep up my knowledge, but like many programmers, I yearn to know another tongue.<br \/>\n<!--more--><br \/>\nMy first computer language was BASIC, which was standard on microcomputers way back when. Even the venerable IBM PC came with a BASIC interpreter in ROM. So did my TRS-80 Model III.<\/p>\n<p>Eventually, I moved on to Assembly Language, which is what professionals used to code their wares in early years. Assembly Language is fun and I enjoyed coding it, but the development cycle is horrifically long. So I moved to C.<\/p>\n<p>Over the years, I&#8217;ve learned various languages. For example, I know and use the PHP language. I&#8217;ve dabbled in Perl, which is a marvelous language but weird enough that if you don&#8217;t keep fluent in it you lose it.<\/p>\n<p>Recently, I tried to learn Java, mostly to program Android devices. I had some success, but it never really stuck with me. Even Java programmers admit that it&#8217;s funky and odd at times.<\/p>\n<p>Years ago, a nerd friend encouraged me to learn Python. I looked into it, but that was about it. I coded a project in Python once. I didn&#8217;t know the language, but any competent programmer can cobble together code in an unknown language. My code ran, but I&#8217;m certain it was inefficient and inelegant.<\/p>\n<p>With my current fascination for the Raspberry Pi, I decided to finally crack open a book and learn Python. Lamentably, the book I chose was O&#8217;Reilly&#8217;s <em>Learning Python<\/em> by Mark Lutz.<\/p>\n<p>I chose the O&#8217;Reilly book because I&#8217;m a fan of its references. They do nerd books well. Like any publisher, however, the titles are hit-and-miss.<\/p>\n<p>What attracted me to <em>Learning Python<\/em> was its massive size: 1500 pages. I figured there&#8217;s enough material in there that I wouldn&#8217;t need to buy a second book. For most O&#8217;Reilly texts, this philosophy works as the material is thorough. The <em>Learning Python<\/em> title, however, isn&#8217;t thorough, it&#8217;s wordy to the point of being boring.<\/p>\n<p>After absorbing the first few pages, I began to flip page after page faster and faster. My inner editor was saying, &#8220;This could be cut. That could be cut.&#8221; On and on: words, words, words.<\/p>\n<p>You don&#8217;t actually get to code a program until you&#8217;re hundreds of pages deep in the text. Lutz takes pages of paper and ink to explain in the minutest detail all the Python data types, which is good, but dull. I want to code!<\/p>\n<p>In my programming books, readers write code right away. I figure that&#8217;s what they want, so why not reward them? Eventually, the O&#8217;Reilly book might offer me that opportunity, but not until I&#8217;ve waded through more verbiage than I&#8217;ve read in a computer book since the 1980s.<\/p>\n<p>I&#8217;ll keep you apprised of my progress.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Occasionally, I wander off and attempt to learn a new programming language. This time, it&#8217;s Python&#8217;s turn.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[14],"class_list":["post-9355","post","type-post","status-publish","format-standard","hentry","category-main","tag-programming"],"_links":{"self":[{"href":"https:\/\/www.wambooli.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/9355","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wambooli.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wambooli.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wambooli.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wambooli.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=9355"}],"version-history":[{"count":3,"href":"https:\/\/www.wambooli.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/9355\/revisions"}],"predecessor-version":[{"id":9388,"href":"https:\/\/www.wambooli.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/9355\/revisions\/9388"}],"wp:attachment":[{"href":"https:\/\/www.wambooli.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=9355"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wambooli.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=9355"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wambooli.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=9355"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}