{"id":327,"date":"2017-12-11T22:06:01","date_gmt":"2017-12-12T06:06:01","guid":{"rendered":"http:\/\/wp.evanyamoto.com\/?p=327"},"modified":"2025-11-29T19:21:59","modified_gmt":"2025-11-29T19:21:59","slug":"rebooting-part-2","status":"publish","type":"post","link":"https:\/\/evanyamoto.com\/blog\/2017\/12\/11\/rebooting-part-2\/","title":{"rendered":"Rebooting &#8211; Part 2"},"content":{"rendered":"<p>It&#8217;s been nearly a year since I relaunched my personal website and I&#8217;m still back-filling blog posts. I haven&#8217;t spent as much time on it as I&#8217;d like to, but I&#8217;m pretty happy with how the WordPress API has worked out. When I started working on my site and the API was in beta, there wasn&#8217;t a whole lot of documentation or examples on how to use it. But I realize that APIs exist so you can do whatever you want and it&#8217;s really up to you to figure out how you want to use them.<\/p>\n<p>As always, I would&#8217;ve done some things differently if I were doing it now. The single function that handles the URL parameters and does an AJAX post to get the data works well, but I probably should use a JavaScript templating engine like instead of building HTML strings to display the posts. It&#8217;d be easy enough to convert it now, but I don&#8217;t know if it&#8217;s worth the time and also the resources of including another JS library like Mustache. I also would&#8217;ve started by using ESLint to format my JavaScript consistently. Again, this is something I could easily do now and fix whatever it doesn&#8217;t like with my code.<\/p>\n<p>But overall, I&#8217;m still pleased with how it&#8217;s working and the overall design. I just need to catch up on posts so I can write some in the present for once.\u00a0 Hopefully I&#8217;ll get some time over the holidays.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>It&#8217;s been nearly a year since I relaunched my personal website and I&#8217;m still back-filling blog posts. I haven&#8217;t spent as much time on it as I&#8217;d like to, but I&#8217;m pretty happy with how the WordPress API has worked out. When I started working on my site and the API was in beta, there [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":681,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[14,16,23],"class_list":["post-327","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-technology","tag-development","tag-featured","tag-technology"],"_links":{"self":[{"href":"https:\/\/evanyamoto.com\/blog\/wp-json\/wp\/v2\/posts\/327","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/evanyamoto.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/evanyamoto.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/evanyamoto.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/evanyamoto.com\/blog\/wp-json\/wp\/v2\/comments?post=327"}],"version-history":[{"count":1,"href":"https:\/\/evanyamoto.com\/blog\/wp-json\/wp\/v2\/posts\/327\/revisions"}],"predecessor-version":[{"id":746,"href":"https:\/\/evanyamoto.com\/blog\/wp-json\/wp\/v2\/posts\/327\/revisions\/746"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/evanyamoto.com\/blog\/wp-json\/wp\/v2\/media\/681"}],"wp:attachment":[{"href":"https:\/\/evanyamoto.com\/blog\/wp-json\/wp\/v2\/media?parent=327"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/evanyamoto.com\/blog\/wp-json\/wp\/v2\/categories?post=327"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/evanyamoto.com\/blog\/wp-json\/wp\/v2\/tags?post=327"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}