{"id":4217,"date":"2019-03-15T23:49:51","date_gmt":"2019-03-16T02:49:51","guid":{"rendered":"https:\/\/tangopardo.com.ar\/2cf7\/?p=4217"},"modified":"2019-03-18T08:24:56","modified_gmt":"2019-03-18T11:24:56","slug":"wisdom","status":"publish","type":"post","link":"https:\/\/tangopardo.com.ar\/2cf7\/2019\/03\/15\/wisdom","title":{"rendered":"Wisdom"},"content":{"rendered":"\n<p>Quite a while ago (in the last century nonetheless) my idea of a productive day entailed writing a <em>lot <\/em> of code, measured by size in any suitable metric.<\/p>\n\n\n\n<p>Lately I&#8217;ve been writing <em>less<\/em> in volume but I realize that I spend a greater time thinking about the problem at hand as a whole and that it happens mostly in the background while I&#8217;m doing something else. By the time I&#8217;m again at the workstation everything falls into place.<\/p>\n\n\n\n<p>Also, when stepping aside and contemplating whatever I engineered I can&#8217;t help to feel anything but pride. Perhaps except for the documentation I build things from the get go thinking of what I would like to have were I a library user, on terms of building blocks.<\/p>\n\n\n\n<p>During the last two weeks I built a library to parse a protocol called LX200 used to control telescopes and I can&#8217;t be happier with the result (for now it&#8217;s at <a href=\"https:\/\/github.com\/telescopio-montemayor\/python-lx200\">https:\/\/github.com\/telescopio-montemayor\/python-lx200<\/a> ). The first one was a roller coaster, due to some other issues I went back to a night owl schedule and I can&#8217;t remember when was the last time I had such prolonged and intense periods of flow. I also taught myself asyncio.<\/p>\n\n\n\n<p>It&#8217;s terse, concise, and (mostly) well structured. My former self would&#8217;ve made a mess of a state machine tied together with pages of <em>if<\/em> statements that worked, for sure, but was a pain to extend or correct. Of course looking down the path and leveraging years of experience this things seem obvious now.<\/p>\n\n\n\n<p>Coincidentally, the other day <a href=\"http:\/\/esr.ibiblio.org\/?p=8270\">Eric wrote about the advantage of declarative\/table driven approaches<\/a>.<br><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Quite a while ago (in the last century nonetheless) my idea of a productive day entailed writing a lot of code, measured by size in any suitable metric. Lately I&#8217;ve been writing less in volume but I realize that I spend a greater time thinking about the problem at hand as a whole and that [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[37,24,12,4,22],"tags":[],"class_list":["post-4217","post","type-post","status-publish","format-standard","hentry","category-facultad","category-hacks","category-psico","category-python","category-software-libre"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/smnbC-wisdom","_links":{"self":[{"href":"https:\/\/tangopardo.com.ar\/2cf7\/wp-json\/wp\/v2\/posts\/4217","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tangopardo.com.ar\/2cf7\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tangopardo.com.ar\/2cf7\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tangopardo.com.ar\/2cf7\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tangopardo.com.ar\/2cf7\/wp-json\/wp\/v2\/comments?post=4217"}],"version-history":[{"count":5,"href":"https:\/\/tangopardo.com.ar\/2cf7\/wp-json\/wp\/v2\/posts\/4217\/revisions"}],"predecessor-version":[{"id":4222,"href":"https:\/\/tangopardo.com.ar\/2cf7\/wp-json\/wp\/v2\/posts\/4217\/revisions\/4222"}],"wp:attachment":[{"href":"https:\/\/tangopardo.com.ar\/2cf7\/wp-json\/wp\/v2\/media?parent=4217"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tangopardo.com.ar\/2cf7\/wp-json\/wp\/v2\/categories?post=4217"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tangopardo.com.ar\/2cf7\/wp-json\/wp\/v2\/tags?post=4217"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}