{"id":2194,"date":"2009-02-18T21:53:50","date_gmt":"2009-02-19T02:53:50","guid":{"rendered":"http:\/\/www.allyngibson.net\/?p=2194"},"modified":"2009-02-18T21:53:50","modified_gmt":"2009-02-19T02:53:50","slug":"on-being-a-code-monkey","status":"publish","type":"post","link":"http:\/\/www.allyngibson.com\/?p=2194","title":{"rendered":"On Being a Code-Monkey"},"content":{"rendered":"<p>I spent part of my day at work code-monkeying HTML.<\/p>\n<p>I needed to create a table.  Not a plain, simple table, not exactly.  But a table.  With headers.  And column spans.<\/p>\n<p>This should be simple, right?<\/p>\n<p>Wrong.<\/p>\n<p>I had a webpage that looked&#8230; terrible.  (There, that&#8217;s a polite word for it.)  It needed a complete rethink.  I sketched out my ideas, started building the table, dropped it into the company&#8217;s CMS&#8230;<\/p>\n<p>And that&#8217;s when the problems began.<\/p>\n<p>The CMS doesn&#8217;t like HTML directly.  It can work with it, but then it will start <i>changing<\/i> it.  And even if it doesn&#8217;t get changed when it goes into the system, when it comes out of the system (such as when a page is rendered) the system completely mungs up the layout.<\/p>\n<p>Here&#8217;s how bad it is.  I can&#8217;t define column widths.  At all.  Even if I do, the outputting routines strip that information.  Where I would have liked to have broken this project into, say, six or seven smaller tables on a single page, the end result is something that looks weird, because none of the tables will be of the same width.  I found a workaround.  But I had to <i>find<\/i> a workaround, that&#8217;s the point.  My &lt;thead&gt; tags magically vanished completely.  Width selectors are ignored.  And tables take whatever damned width they want.<\/p>\n<p>Now that I&#8217;ve struggled with it, I have a better idea of what&#8217;s possible.  The general format I&#8217;ve adopted for the table has been okayed, so tomorrow I can work with an HTML editor (I think I may use Arachnophilia, since it&#8217;s served me well over the years) and put everything together.<\/p>\n<p>The only problem I foresee is that what I want to do with this table is not a turnkey organization.  It&#8217;s going to take someone with coding familiarity &mdash; like myself &mdash; to keep this maintained.  The <i>ancien regime<\/i> of an Excel spreadsheet->Word table->CMS wysiwyg isn&#8217;t going to work with this.  What I want to do is too complicated.<\/p>\n<p>*sigh*<\/p>\n<p>Also, it was sleeting at work today.  And that annoyed me.  Made me feel bummed.  Ten days ago, I had my clothes on the line and temperatures were in the low 60s.  Today, sleet.<\/p>\n<p>On the plus side, all this code-monkeying at work put some personal code-monkeying with WordPress back into the mental queue.<\/p>\n<p>Essentially, I&#8217;m going to redesign the website this spring.  I&#8217;ve done sketches, I know what it&#8217;s going to look like.  The end result is something that looks more like a website that promotes me and my work &mdash; and less like a blog of whatever randomness flits across my mind that day.  The blog component will still be there, but it&#8217;s going &#8220;under the hood,&#8221; so to speak.<\/p>\n<p>It&#8217;s not a WordPress theme I&#8217;m putting together.  Rather, it&#8217;s more like an information portal that runs atop <a href=\"http:\/\/tarskitheme.com\/\">Tarski<\/a>, letting that do the heavy lifting, while I create some custom php pages that make use of Tarski to display specific content the way I want.<\/p>\n<p>That&#8217;s stage one.  I have a tech demo of the front page.  It runs exactly like I want it to.  I just have to plug the content into the holes.  It&#8217;s actually &#8220;live&#8221; in WordPress.  Nothing links to it, I could give you a link, you could look at it.  But&#8230; not yet.  It needs work.  It looks okay.  It has the right <i>flow<\/i>.  But it&#8217;s also functionally useless.<\/p>\n<p>Stage two is different.  That&#8217;s <i>creating<\/i> content.  For instance, I&#8217;ve had <a href=\"http:\/\/www.allyngibson.com\/?page_id=904\">a page about &#8220;Make-Believe,&#8221;<\/a> my original series <i>Star Trek<\/i> short story for a while, but it was only about a month ago that I wrote a page about my <i>Doctor Who<\/i> story, <a href=\"http:\/\/www.allyngibson.com\/?page_id=1956\">&#8220;The Spindle of Necessity.&#8221;<\/a>  Putting together content like that will be an ongoing process.<\/p>\n<p>Take, for instance, my <a href=\"http:\/\/www.allyngibson.com\/?page_id=862\">About page<\/a>.  There&#8217;s a page that <i>needs<\/i> help.  I&#8217;d say I hate writing about myself, but that&#8217;s not, strictly speaking, true.  It&#8217;s that I hate writing about myself <i>publicly<\/i>, because I feel like I don&#8217;t make myself sound <i>interesting<\/i>.  That said, I liked the bio I put together for Farpoint, and I may riff off of that.  One thing, though &mdash; I am not, actually, a fan of <a href=\"http:\/\/www.hibs.co.uk\/\">Hibernian FC<\/a> as that bio claims; I just like being random. \ud83d\ude06<\/p>\n<p>These are some facts about myself I would probably want to include:<\/p>\n<ul>\n<li>If there is to be a graphic novel of my life, I want Mike Mignola to draw it<\/li>\n<li>Jason Statham would play me in a biopic<\/li>\n<li>I want to write a <i>Doctor Who<\/i>\/<i>Uncle Scrooge<\/i> crossover<\/li>\n<li>I wish I could be Mon-El, but without the lead vulnerability<\/li>\n<li>I miss the mountains sometimes<\/li>\n<\/ul>\n<p>Then it&#8217;s just a matter of stringing these facts together into an incoherent narrative.  Did I say incoherent?  I meant sensible.<\/p>\n<p>Stage three?  New color scheme.  I&#8217;m going to call it &#8220;LEGO.&#8221;  Draw your own conclusions. \ud83d\ude09<\/p>\n<p>However, I&#8217;m not tied to &#8220;LEGO.&#8221;  I may decide that the &#8220;look&#8221; doesn&#8217;t work.  I&#8217;m actually okay with the current color scheme, even if it&#8217;s just a slightly modified version of one of the Tarski custom stylesheets, to use green links instead of red.  I used to get wild and funky with fonts and shit.<\/p>\n<p>That&#8217;s my thinking.  Wrestling with HTML tables that will not do what they&#8217;re supposed to do will absolutely do that. \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I spent part of my day at work code-monkeying HTML. I needed to create a table. Not a plain, simple table, not exactly. But a table. With headers. And column spans. This should be simple, right? Wrong. I had a webpage that looked&#8230; terrible. (There, that&#8217;s a polite word for it.) It needed a complete<a class=\"more-link\" href=\"http:\/\/www.allyngibson.com\/?p=2194\">Continue reading <span class=\"screen-reader-text\">&#8220;On Being a Code-Monkey&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4095],"tags":[117,351,58,4096,4124],"class_list":["post-2194","post","type-post","status-publish","format-standard","hentry","category-wordpress","tag-html","tag-meta","tag-php","tag-wordpress","tag-work","entry"],"_links":{"self":[{"href":"http:\/\/www.allyngibson.com\/index.php?rest_route=\/wp\/v2\/posts\/2194","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=2194"}],"version-history":[{"count":0,"href":"http:\/\/www.allyngibson.com\/index.php?rest_route=\/wp\/v2\/posts\/2194\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.allyngibson.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2194"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.allyngibson.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2194"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.allyngibson.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2194"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}