{"id":6263,"date":"2012-01-17T21:02:00","date_gmt":"2012-01-18T02:02:00","guid":{"rendered":"http:\/\/www.allyngibson.net\/?p=6263"},"modified":"2016-01-15T18:13:26","modified_gmt":"2016-01-15T23:13:26","slug":"on-the-coding-itch","status":"publish","type":"post","link":"http:\/\/www.allyngibson.com\/?p=6263","title":{"rendered":"On the Coding Itch"},"content":{"rendered":"<p>Over the weekend, I devoted some time and energy to thinking about what I want to do with my next website.  I&#8217;ve been working at the code off and on since August, going so far as to code two fully-functional blog themes that I&#8217;ll never use.  And then, just as I felt really happy with the current design except for some minor tweaks (like colors, which I still haven&#8217;t nailed down), I felt this insane itch to start all over, this time coding it for HTML5 and CSS3.<\/p>\n<p>Then I reminded myself of something <a href=\"https:\/\/twitter.com\/#!\/allyngibson\/statuses\/153230601976156160\">I wrote on New Year&#8217;s Eve<\/a> &mdash; &#8220;In the New Year, I want to better differentiate between good ideas that are actually good and good ideas that simply waste time.&#8221;<\/p>\n<p>Suffice it to say, this is an idea that falls in the &#8220;simply wastes time&#8221; category.  This &#8220;itch&#8221; to scrap the work I&#8217;ve done and restart becomes an excuse not to do something productive.  I could say the same thing about coding two WordPress themes I would never use &mdash; and never intended to use &mdash; except that they were both done to 1) work out some layout design issues and 2) work out some JavaScript issues.  They were progressively more challenging, if that makes sense.<\/p>\n<p>This HTML5 idea?  There&#8217;s nothing <i>new<\/i> there.<\/p>\n<p>Still, I wanted to think about <i>why<\/i> that idea was there.  And since the Deadline Hell that was the first two weeks of the month had passed, I let the ideas roll around.<\/p>\n<p>And they sorted themselves out.<\/p>\n<p>It wasn&#8217;t the HTML5 that was interesting me.  Well, it <i>was<\/i>, in the sense that it was a shiny challenge and I <i>do<\/i> love shiny challenges so.  But what I was fixating on was WordPress&#8217; <a href=\"http:\/\/wordpress.org\/extend\/themes\/twentyeleven\">Twenty-Eleven<\/a> default theme, which was coded in HTML5 and had some interesting new features like <a href=\"http:\/\/codex.wordpress.org\/Post_Formats\">Post Formats<\/a>, which are a way of defining the way in which certain content, like blog posts or Twitter-like asides or images or videos, should be formatted when they&#8217;re displayed.<\/p>\n<p>Why is that important?  Let&#8217;s revisit <a href=\"http:\/\/www.allyngibson.com\/?p=6138\">this post<\/a> from Thanksgiving in which I discussed some of the design issues I was mulling over:<\/p>\n<blockquote><p>I&#8217;m trying to decide whether or not to use Post Formats.  It&#8217;s a new feature in WordPress, one that I&#8217;m not familiar with.  Post Formats give WordPress some Tumblr-like features, allowing different formatting for different types of post content.  I&#8217;m going to study the Esquire theme and its implementation of the feature.  The thing is, I&#8217;m not sure I would use this feature, so it&#8217;s possible that my studies here may be all for naught.<\/p><\/blockquote>\n<p>Two months ago, I had no idea what I&#8217;d have done with Post Formats.<\/p>\n<p>It struck me recently why I would use Post Formats and what I would use them for.<\/p>\n<p>And since Twenty-Eleven makes extensive use of Post Formats, then it made sense to rebuild the site using Twenty-Eleven as the framework underneath, which meant redoing the site in HTML5\/CSS3, etc., etc.<\/p>\n<p>Except!<\/p>\n<p>I&#8217;m overthinking the problem, as I am occasionally wont to do. \ud83d\ude42<\/p>\n<p>I don&#8217;t need to scrap the work I&#8217;ve done and start again with a theme that&#8217;s designed to do a little bit of everything.  (It&#8217;s a default theme, so it&#8217;s deliberately something of a Swiss Army Knife.)  What I&#8217;ve designed and coded <i>works<\/i>.  It just needs Post Formats.<\/p>\n<p>So!  What I will do is study the way Twenty-Eleven (and <a href=\"http:\/\/theme.wordpress.com\/themes\/esquire\/\">Esquire<\/a>, which I mentioned back in November) implement the feature.  Then I make that work with what I&#8217;ve done by replacing the the_content() call with however post formats are called (it looks like they take separate files) and then match it to new CSS code when and where it&#8217;s needed.  I&#8217;ll also have to implement <a href=\"http:\/\/wpmu.org\/how-to-quickly-rename-a-wordpress-post-format\/\">this hack<\/a> to rename a few of the Post Formats that I won&#8217;t use to cover for Post Formats that I&#8217;ll need for things like &#8220;banner posts.&#8221;  (Unfortunately, one <a href=\"http:\/\/tdh.me\/post-formats-is-this-really-a-good-idea\/\">cannot add new Post Formats<\/a>.)  The idea is to make things easy and automate certain functions.<\/p>\n<p>Timeframe?  Within the next month.  Along with sorting out things like, oh, <i>colors<\/i> \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Over the weekend, I devoted some time and energy to thinking about what I want to do with my next website. I&#8217;ve been working at the code off and on since August, going so far as to code two fully-functional blog themes that I&#8217;ll never use. And then, just as I felt really happy with<a class=\"more-link\" href=\"http:\/\/www.allyngibson.com\/?p=6263\">Continue reading <span class=\"screen-reader-text\">&#8220;On the Coding Itch&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4095],"tags":[57,117,4096],"class_list":["post-6263","post","type-post","status-publish","format-standard","hentry","category-wordpress","tag-css","tag-html","tag-wordpress","entry"],"_links":{"self":[{"href":"http:\/\/www.allyngibson.com\/index.php?rest_route=\/wp\/v2\/posts\/6263","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.allyngibson.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.allyngibson.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.allyngibson.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.allyngibson.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6263"}],"version-history":[{"count":0,"href":"http:\/\/www.allyngibson.com\/index.php?rest_route=\/wp\/v2\/posts\/6263\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.allyngibson.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6263"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.allyngibson.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6263"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.allyngibson.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6263"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}