{"id":175,"date":"2021-03-25T17:54:10","date_gmt":"2021-03-25T17:54:10","guid":{"rendered":"https:\/\/kenpugh.com\/blog\/?p=175"},"modified":"2021-05-11T18:27:46","modified_gmt":"2021-05-11T18:27:46","slug":"the-gilded-rose-kata-from-a-gherkin-perspective","status":"publish","type":"post","link":"https:\/\/kenpugh.com\/blog\/the-gilded-rose-kata-from-a-gherkin-perspective\/","title":{"rendered":"The Gilded Rose Kata from a Gherkin Perspective"},"content":{"rendered":"\n<p><\/p>\n\n\n\n<p>In reviewing a book, I was reminded about the Gilded Rose kata.\u00a0\u00a0 It revolves around some legacy code that has no tests.\u00a0\u00a0 You need to make some changes to the code to support a new requirement.\u00a0\u00a0 The kata was created by Bobby Johnson (<a href=\"http:\/\/iamnotmyself.com\/\">http:\/\/iamnotmyself.com\/<\/a>) and updated by Emily Bache (<a href=\"http:\/\/coding-is-like-cooking.info\/\">http:\/\/coding-is-like-cooking.info\/<\/a>).\u00a0 \u00a0<\/p>\n\n\n\n<p>A detailed explanation of the Gherkin approach is in this <a rel=\"noreferrer noopener\" href=\"https:\/\/www.acceptancetestdrivendevelopment.com\/Gilded-Rose-Kata-from-a-Gherkin-Perspective.pdf\" target=\"_blank\">PDF.<\/a>\u00a0\u00a0 An html version is <a href=\"https:\/\/www.acceptancetestdrivendevelopment.com\/Gilded%20Rose%20Kata%20.htm\" data-type=\"URL\" data-id=\"https:\/\/www.acceptancetestdrivendevelopment.com\/Gilded%20Rose%20Kata%20.htm\" target=\"_blank\" rel=\"noreferrer noopener\"> here.<\/a>  The code that the PDF references is at <a href=\"https:\/\/github.com\/atdd-bdd\/GildedRose\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/github.com\/atdd-bdd\/GildedRose<\/a> .\u00a0\u00a0 There is one function that has not been refactored yet. \u00a0It\u2019s left as an exercise to the reader.\u00a0\u00a0<\/p>\n\n\n\n<p>You can compare this solution to other solutions to the Gilded Rose kata to see alternative ways to approach this problem.\u00a0<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In reviewing a book, I was reminded about the Gilded Rose kata.\u00a0\u00a0 It revolves around some legacy code that has no tests.\u00a0\u00a0 You need to make some changes to the code to support a new requirement.\u00a0\u00a0 The kata was created by Bobby Johnson (http:\/\/iamnotmyself.com\/) and updated by Emily Bache (http:\/\/coding-is-like-cooking.info\/).\u00a0 \u00a0 A detailed explanation of &hellip; <a href=\"https:\/\/kenpugh.com\/blog\/the-gilded-rose-kata-from-a-gherkin-perspective\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">The Gilded Rose Kata from a Gherkin Perspective<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[10,6,15,14],"class_list":["post-175","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-atdd","tag-bdd","tag-gildedrose","tag-kata"],"_links":{"self":[{"href":"https:\/\/kenpugh.com\/blog\/wp-json\/wp\/v2\/posts\/175","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kenpugh.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kenpugh.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kenpugh.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kenpugh.com\/blog\/wp-json\/wp\/v2\/comments?post=175"}],"version-history":[{"count":9,"href":"https:\/\/kenpugh.com\/blog\/wp-json\/wp\/v2\/posts\/175\/revisions"}],"predecessor-version":[{"id":226,"href":"https:\/\/kenpugh.com\/blog\/wp-json\/wp\/v2\/posts\/175\/revisions\/226"}],"wp:attachment":[{"href":"https:\/\/kenpugh.com\/blog\/wp-json\/wp\/v2\/media?parent=175"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kenpugh.com\/blog\/wp-json\/wp\/v2\/categories?post=175"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kenpugh.com\/blog\/wp-json\/wp\/v2\/tags?post=175"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}