{"id":433,"date":"2006-06-03T10:09:08","date_gmt":"2006-06-03T15:09:08","guid":{"rendered":"http:\/\/www.shamusyoung.com\/twentysidedtale\/?p=433"},"modified":"2006-06-03T10:13:20","modified_gmt":"2006-06-03T15:13:20","slug":"wordpress-and-twenty-sided","status":"publish","type":"post","link":"https:\/\/www.shamusyoung.com\/twentysidedtale\/?p=433","title":{"rendered":"WordPress and Twenty-Sided"},"content":{"rendered":"<p>Several people have asked me to release the theme for this site so that others can use it.  This sounded perfectly reasonable at first, but then I started taking a look through my code and realized that it is a mess.  It was built a little at a time over the last nine months, adding on little gadgets and details as they came to mind without any thought for the long-term effects on the site itself.  <\/p>\n<p>As a coder, I should really, really, know better than this by now.  But sometimes you just want to spend your time <em>doing something<\/em>, not making a tool for doing something.<\/p>\n<p>When I write code for a living I&#8217;m always thinking about how I can re-use or extend it later.  Barring that, I at least try to make it neat so I can make sense of it if I come back to make changes at some later point.  I didn&#8217;t do any of that, and now the site has become a &#8220;code contraption&#8221;.  It works, but you can&#8217;t change one thing without breaking three others.  It&#8217;s sloppy and hard to read (the underlying code, not the site itslef) and now I&#8217;m getting nuts.  Even when the hood is closed and I&#8217;m not reading the code, as I look at the site I know the bad code is there&#8230; hiding beneath the surface like so much duct tape, holding everything precariously together.<\/p>\n<p><em><\/p>\n<blockquote><p>For example: Lots of stuff is hard coded.  Even the title at the top.  So, if you were to take this theme and put it on your site, the title at the top would be Twenty-Sided, no matter what you really named the site. The dice rollers are built into the theme, when they <em>should<\/em> be a plug-in.  There are old, unused functions laying around, mixed in with in-use functions.  No code comments. I edited the site in the wordpress admin interface and not in a proper editing program, which means the indenting is hosed.<\/p><\/blockquote>\n<p><\/em><\/p>\n<p>So now I&#8217;m <a href=\"http:\/\/www.shamusyoung.com\/lexicon\/\">re-creating the theme from scratch<\/a>.  It&#8217;s far from done yet, but now that I&#8217;m doing it I&#8217;m curious what the strong points are.  What is it about the theme for this site that works well?  What would you change?  What gets on your nerves? <\/p>\n<p>I should add that I don&#8217;t plan to change the look of this site.  My goal is to clean it up and maybe make minor adjustments based on feedback, but visually it isn&#8217;t going to change much.  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Several people have asked me to release the theme for this site so that others can use it. This sounded perfectly reasonable at first, but then I started taking a look through my code and realized that it is a mess. It was built a little at a time over the last nine months, adding [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-433","post","type-post","status-publish","format-standard","hentry","category-general"],"_links":{"self":[{"href":"https:\/\/www.shamusyoung.com\/twentysidedtale\/index.php?rest_route=\/wp\/v2\/posts\/433","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.shamusyoung.com\/twentysidedtale\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.shamusyoung.com\/twentysidedtale\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.shamusyoung.com\/twentysidedtale\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.shamusyoung.com\/twentysidedtale\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=433"}],"version-history":[{"count":0,"href":"https:\/\/www.shamusyoung.com\/twentysidedtale\/index.php?rest_route=\/wp\/v2\/posts\/433\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.shamusyoung.com\/twentysidedtale\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=433"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.shamusyoung.com\/twentysidedtale\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=433"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.shamusyoung.com\/twentysidedtale\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=433"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}