<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-882821950355432699.post4734849722941724737..comments</id><updated>2009-04-22T21:19:23.175+10:00</updated><title type='text'>Comments on Paul Batum: Working Effectively with Legacy Code</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://www.paulbatum.com/feeds/4734849722941724737/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/882821950355432699/4734849722941724737/comments/default'/><link rel='alternate' type='text/html' href='http://www.paulbatum.com/2009/04/working-effectively-with-legacy-code.html'/><author><name>Paul</name><uri>http://www.blogger.com/profile/18224234643439645641</uri><email>paul.batum@gmail.com</email></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>5</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-882821950355432699.post-1023690031447958637</id><published>2009-04-22T21:19:00.000+10:00</published><updated>2009-04-22T21:19:00.000+10:00</updated><title type='text'>I haven't tried TypeMock. Honestly the code base I...</title><content type='html'>I haven't tried TypeMock. Honestly the code base I'm working on isn't that bad - implementing the tests themselves is not hugely difficult, especially now that I have better ideas of how to approach it thanks to Michael's book. I totally agree with your point that firing up the UI to test some functionality can often be less efficient than simply writing the test. &lt;br /&gt;&lt;br /&gt;I am happy to say that I managed to get past the first hurdle and I've been writing some tests, perhaps I'll write a follow up post this weekend to discuss it further.&lt;br /&gt;&lt;br /&gt;Thanks for the comment!</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/882821950355432699/4734849722941724737/comments/default/1023690031447958637'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/882821950355432699/4734849722941724737/comments/default/1023690031447958637'/><link rel='alternate' type='text/html' href='http://www.paulbatum.com/2009/04/working-effectively-with-legacy-code.html?showComment=1240399140000#c1023690031447958637' title=''/><author><name>Paul</name><uri>http://www.blogger.com/profile/18224234643439645641</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='15622167435446684159'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.paulbatum.com/2009/04/working-effectively-with-legacy-code.html' ref='tag:blogger.com,1999:blog-882821950355432699.post-4734849722941724737' source='http://www.blogger.com/feeds/882821950355432699/posts/default/4734849722941724737' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-882821950355432699.post-6553812241099800846</id><published>2009-04-22T14:29:00.000+10:00</published><updated>2009-04-22T14:29:00.000+10:00</updated><title type='text'>1. Have you tried TypeMock? I'm not in an environm...</title><content type='html'>1. Have you tried TypeMock? I'm not in an environment where I need it, but I have always seen it described as "mock anything" (including code that was not written with interfaces, DI, etc) - allowing you to get started with unit testing without a big refactor first.&lt;br /&gt;&lt;br /&gt;2. Whether tests are a separate project or not is personal preference. While it may be your preference that they are, I reckon you should try to not let that be a big drag. Tests within an existing project are certainly not "bad".&lt;br /&gt;&lt;br /&gt;3. Part of it is just attitude. I dont want to fire up my web browser and click on shit over and over, just to see if I changed some domain logic properly. I value my time - clicking about within a web interface is not a good way to spend it.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/882821950355432699/4734849722941724737/comments/default/6553812241099800846'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/882821950355432699/4734849722941724737/comments/default/6553812241099800846'/><link rel='alternate' type='text/html' href='http://www.paulbatum.com/2009/04/working-effectively-with-legacy-code.html?showComment=1240374540000#c6553812241099800846' title=''/><author><name>Nathan</name><uri>http://www.blogger.com/profile/01541548400009510027</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.paulbatum.com/2009/04/working-effectively-with-legacy-code.html' ref='tag:blogger.com,1999:blog-882821950355432699.post-4734849722941724737' source='http://www.blogger.com/feeds/882821950355432699/posts/default/4734849722941724737' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-882821950355432699.post-8090353030655043386</id><published>2009-04-14T13:02:00.000+10:00</published><updated>2009-04-14T13:02:00.000+10:00</updated><title type='text'>Thanks for the comments Rowan and Brian. I do inte...</title><content type='html'>Thanks for the comments Rowan and Brian. I do intend to follow up on this in a week or two.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/882821950355432699/4734849722941724737/comments/default/8090353030655043386'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/882821950355432699/4734849722941724737/comments/default/8090353030655043386'/><link rel='alternate' type='text/html' href='http://www.paulbatum.com/2009/04/working-effectively-with-legacy-code.html?showComment=1239678120000#c8090353030655043386' title=''/><author><name>Paul</name><uri>http://www.blogger.com/profile/18224234643439645641</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='15622167435446684159'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.paulbatum.com/2009/04/working-effectively-with-legacy-code.html' ref='tag:blogger.com,1999:blog-882821950355432699.post-4734849722941724737' source='http://www.blogger.com/feeds/882821950355432699/posts/default/4734849722941724737' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-882821950355432699.post-1789065895429633926</id><published>2009-04-14T07:22:00.000+10:00</published><updated>2009-04-14T07:22:00.000+10:00</updated><title type='text'>It's very difficult when I feel like I'm alone and...</title><content type='html'>It's very difficult when I feel like I'm alone and I know that other people will break my tests and not care about it. I have to remind myself that it's not about other people, it's about doing my job to the best of my ability and taking that first step is always the most difficult.&lt;BR/&gt;&lt;BR/&gt;Maybe you'll try it and catch a regression bug. Maybe someone else on the team will start asking what you're doing. Maybe it will snowball. Then again, maybe it won't, but you'll still be able to look yourself in the mirror and know you did everything you could to write quality code.&lt;BR/&gt;&lt;BR/&gt;If you do try, please keep us posted. We all could use some inspiration at times. :)</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/882821950355432699/4734849722941724737/comments/default/1789065895429633926'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/882821950355432699/4734849722941724737/comments/default/1789065895429633926'/><link rel='alternate' type='text/html' href='http://www.paulbatum.com/2009/04/working-effectively-with-legacy-code.html?showComment=1239657720000#c1789065895429633926' title=''/><author><name>Brian Mavity</name><uri>http://www.brianmavity.com</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.paulbatum.com/2009/04/working-effectively-with-legacy-code.html' ref='tag:blogger.com,1999:blog-882821950355432699.post-4734849722941724737' source='http://www.blogger.com/feeds/882821950355432699/posts/default/4734849722941724737' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-882821950355432699.post-6469697096891292107</id><published>2009-04-14T00:51:00.000+10:00</published><updated>2009-04-14T00:51:00.000+10:00</updated><title type='text'>Great book, it's full of practical advice that's u...</title><content type='html'>Great book, it's full of practical advice that's useful on almost any app.&lt;BR/&gt;&lt;BR/&gt;I've got that similar feeling of isolation with regards to unit testing..it IS a real challenge to do it when others don't see the value in it. Educating the masses comes slowly, but we have to try..</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/882821950355432699/4734849722941724737/comments/default/6469697096891292107'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/882821950355432699/4734849722941724737/comments/default/6469697096891292107'/><link rel='alternate' type='text/html' href='http://www.paulbatum.com/2009/04/working-effectively-with-legacy-code.html?showComment=1239634260000#c6469697096891292107' title=''/><author><name>rowan</name><uri>http://rowanbeckworth.com</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.paulbatum.com/2009/04/working-effectively-with-legacy-code.html' ref='tag:blogger.com,1999:blog-882821950355432699.post-4734849722941724737' source='http://www.blogger.com/feeds/882821950355432699/posts/default/4734849722941724737' type='text/html'/></entry></feed>