{"id":256,"date":"2010-08-08T17:48:21","date_gmt":"2010-08-08T16:48:21","guid":{"rendered":"http:\/\/fragile.org.uk\/?p=256"},"modified":"2010-08-08T17:48:21","modified_gmt":"2010-08-08T16:48:21","slug":"and-another-thing-about-tdd","status":"publish","type":"post","link":"https:\/\/fragile.org.uk\/index.php\/2010\/08\/08\/and-another-thing-about-tdd\/","title":{"rendered":"And another thing about TDD"},"content":{"rendered":"<div>So things have been hectic over the past few months and fragile has taken a back seat, but I thought I\u2019d relay the following since I thought it was pretty cool.<\/p>\n<p>At a recent one on one, I was asking one of my developers how he\u2019d found trialling TDD on a recent project. He said that while at first he\u2019d found it uncomfortable, once he got going it felt great. Aside from any benefits\u00a0in design he raised a very interesting point that I\u2019d not considered before. He noted that when writing tests after the implementation the test and the implementation often looked very similar. This meant that not only is the test likely to be more fragile over time, it is also more likely to duplicate any bugs already present in the implementation. By writing the tests first this problem disappears, since the test is more concerned with intent and the implementation itself is yet to be considered.<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<a href=\"https:\/\/fragile.org.uk\/index.php\/2010\/08\/08\/and-another-thing-about-tdd\/\" rel=\"bookmark\" title=\"Permalink to And another thing about TDD\"><p>So things have been hectic over the past few months and fragile has taken a back seat, but I thought I\u2019d relay the following since I thought it was pretty cool. At a recent one on one, I was asking one of my developers how he\u2019d found trialling TDD on a recent project. He said [&hellip;]<\/p>\n<\/a>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[43,46],"class_list":{"0":"post-256","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-development","7":"tag-tdd","8":"tag-testing","9":"h-entry","10":"hentry"},"_links":{"self":[{"href":"https:\/\/fragile.org.uk\/index.php\/wp-json\/wp\/v2\/posts\/256","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fragile.org.uk\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fragile.org.uk\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fragile.org.uk\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fragile.org.uk\/index.php\/wp-json\/wp\/v2\/comments?post=256"}],"version-history":[{"count":0,"href":"https:\/\/fragile.org.uk\/index.php\/wp-json\/wp\/v2\/posts\/256\/revisions"}],"wp:attachment":[{"href":"https:\/\/fragile.org.uk\/index.php\/wp-json\/wp\/v2\/media?parent=256"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fragile.org.uk\/index.php\/wp-json\/wp\/v2\/categories?post=256"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fragile.org.uk\/index.php\/wp-json\/wp\/v2\/tags?post=256"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}