Date: Sun, 25 Feb 2018 22:00:00 -0500
<h3>Summary</h3> <p>Every piece of software that has been around long enough ends up with some piece of it that needs to be redesigned and refactored. Often the code that needs to be updated is part of the critical path through the system, increasing the risks associated with any change. One way around this problem is to compare the results of the new code against the existing logic to ensure that you aren’t introducing regressions. This week Joe Alcorn shares his work on Laboratory, how the engineers at GitHub inspired him to create it as an analog to the Scientist gem, and how he is using it for his day job.</p> <h3>Preface</h3> <ul> <li>Hello and welcome to Podcast.__init__, the podcast about Python and the people who make it great.</li> <li>I would like to thank everyone who supports us on <a href="https://www.pythonpodcast.com/podcastinit?utm_source=rss&utm_medium=rss">Patreon</a>. Your contributions help to make the show sustainable.</li> <li>When you’re ready to launch your next project you’ll need somewhere to deploy it. Check out Linode at <a href="https://www.pythonpodcast.com/linode?utm_source=rss&utm_medium=rss">podastinit.com/linode</a> and get a $20 credit to try out their fast and reliable Linux virtual servers for running your awesome app. And now you can deliver your work to your users even faster with the newly upgraded 200 GBit network in all of their datacenters.</li> <li>If you’re tired of cobbling together your deployment pipeline then it’s time to try out GoCD, the open source continuous delivery platform built by the people at ThoughtWorks who wrote the book about it. With GoCD you get complete visibility into the life-cycle of your software from one location. To download it now go to <a href="https://www.pythonpodcast.com/gocd?utm_source=rss&utm_medium=rss">podcatinit.com/gocd</a>. Professional support and enterprise plugins are available for added piece of mind.</li> <li>Visit the <a href="https://www.pythonpodcast.com?utm_source=rss&utm_medium=rss">site</a> to subscribe to the show, sign up for the newsletter, and read the show notes. And if you have any questions, comments, or suggestions I would love to hear them. You can reach me on Twitter at <a href="https://twtiter.com/podcastinit?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">@Podcast__init__</a> or email <a href="mailto:hosts@podcastinit.com">hosts@podcastinit.com</a>)</li> <li>To help other people find the show please leave a review on <a href="https://itunes.apple.com/us/podcast/podcast.-init/id981834425?mt=2&uo=6&at=&ct=&utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">iTunes</a>, or <a href="https://play.google.com/music/m/I7ogju4xv6adasgqz6545jndgsy?t=Podcastinit_-_Python_and_the_people_who_make_it_great&utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Google Play Music</a>, tell your friends and co-workers, and share it on social media.</li> <li>A brief announcement before we start the show: <ul> <li>If you work with data or want to learn more about how the projects you have heard about on the show get used in the real world then join me at the Open Data Science Conference in Boston from May 1st through the 4th. It has become one of the largest events for data scientists, data engineers, and data driven businesses to get together and learn how to be more effective. To save 60% off your tickets go to <a href="https://www.pythonpodcast.com/odsc-east-2018?utm_source=rss&utm_medium=rss">podcastinit.com/odsc-east-2018</a> and register.</li> </ul> </li> <li>Your host as usual is Tobias Macey and today I’m interviewing Joe Alcorn about using Laboratory as a safety net for your refactoring.</li> </ul> <h3>Interview</h3> <ul> <li>Introductions</li> <li>How did you get introduced to Python?</li> <li>Can you start be explaining what Laboratory is and what motivated you to start the project?</li> <li>How much of the design and implementation were directly inspired by the Scientist project from GitHub and how much of it did you have to figure out from scratch due to differences in the target languages?</li> <li>What have been some of the most challenging aspects of building and maintaining Laboratory, and have you had any opportunities to use it on itself?</li> <li>For someone who would like to use Laboratory in their project, what does the workflow look like and what potential pitfalls should they watch out for?</li> <li>In the documentation you mention that portions of code that perform I/O and create side effects should be avoided. Have you found any strategies to allow for stubbing out the external interactions while still executing the rest of the logic?</li> <li>How do you keep track of the results for active experiments and what sort of reporting is available?</li> <li>What are some examples of the types of routines that would be good candidates for conducting an experiment?</li> <li>What are some of the most complicated or difficult pieces of code that you have refactored with the help of Laboratory?</li> <li>Given the fact that Laboratory is intended to be run in production and provide a certain measure of safety, what methods do you use to ensure that users of the library will not suffer from a drastic increase in overhead or unintended aberrations in the functionality of their software?</li> <li>Are there any new features or improvements that you have planned for future releases of Laboratory?</li> </ul> <h3>Keep In Touch</h3> <ul> <li><a href="https://github.com/joealcorn?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">joealcorn</a> on GitHub</li> <li><a href="https://joealcorn.co.uk/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Website</a></li> </ul> <h3>Picks</h3> <ul> <li>Tobias <ul> <li><a href="https://en.wikipedia.org/wiki/The_Chronicles_of_Narnia?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Chronicles of Narnia</a></li> </ul> </li> <li>Joe <ul> <li><a href="http://amzn.to/2CiSrjv?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Why We Sleep: Unlocking The Power of Sleep and Dreams</a> by Matthew Walker, PhD</li> </ul> </li> </ul> <h3>Links</h3> <ul> <li><a href="https://marvelapp.com/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Marvel App</a></li> <li><a href="https://githubengineering.com/move-fast/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">GitHub: Move Fast and Fix Things</a></li> <li><a href="https://githubengineering.com/scientist/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">GitHub Scientist: Measure Twice, Cut Over Once</a></li> <li><a href="https://github.com/github/scientist?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Scientist</a></li> <li><a href="https://laboratory-python.readthedocs.io/en/latest/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Laboratory</a></li> <li><a href="https://joealcorn.co.uk/blog/2018/sure-footed-refactoring?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Sure Footed Refactoring</a></li> <li><a href="https://graphiteapp.org/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Graphite</a></li> <li><a href="https://github.com/etsy/statsd?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">StatsD</a></li> </ul> <p>The intro and outro music is from Requiem for a Fish <a href="http://freemusicarchive.org/music/The_Freak_Fandango_Orchestra/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">The Freak Fandango Orchestra</a> / <a href="http://creativecommons.org/licenses/by-sa/3.0/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">CC BY-SA</a><img alt="" height="0" src="https://analytics.boundlessnotions.com/piwik.php?idsite=1&rec=1&url=https%3A%2F%2Fwww.pythonpodcast.com%2Flaboratory-with-joe-alcorn-episode-150%2F&action_name=Laboratory%3A+Safer+Refactoring+with+Joe+Alcorn+-+Episode+150&urlref=https%3A%2F%2Fwww.pythonpodcast.com%2Ffeed%2F&utm_source=rss&utm_medium=rss" style="border: 0; width: 0; height: 0;" width="0" /></p>