Test & Code

Test & Code

Download on the App Store

Test & Code episodes

  • 68: test && commit || revert (TCR) - Thomas Deniffel

    With conventional TDD, you write a failing test, get it to pass, then refactor.

    Then run the tests again to make sure your refactoring didn't break anything.
    But what if it did break something?
    Kent Beck has been recommending to commit your code to revision control after every green test run.
    Oddmund Strømme suggested a symmetrical idea to go ahead and revert the code when a test fails.
    Kent writes that he hated the idea, but had to try it.
    Then wrote about it last September.
    And now we have TCR, "(test && commit) || revert".

    What's it feel like to actually do this?

    Well, Thomas Deniffel has been using it since about a month after that article came out.
    In this episode, we'll hear from Thomas about his experience with it.

    It's a fascinating idea. Have a listen and let me know what you think.

    Special Guest: Thomas Deniffel.

    Links:

    • test && commit || revert — Kent Beck's original article
    • TCR: (test && commit || revert). How to use? Alternative to TDD? — Thomas Deniffel's article
    • TCR Variants (test && commit || revert)
    • TCR: A pulverizer for coding tasks — Another interesting opinion from someone else trying TCR - Jason Crawford
    • (test && commit || revert) Questions Answered — Written after this interview.
    39 min
  • 67: Teaching Python in Middle School

    In today's episode we talk with Kelly Paredes & Sean Tibor.

    They teach Python in a middle school in Florida, and talk about this experience on the podcast "Teaching Python".

    I love that they include physical computing right from the start, and everything else they are doing.

    It's a fun interview.

    Special Guests: Kelly Paredes and Sean Tibor.

    Links:

    • Teaching Python
    35 min
  • 66: Brian is interviewed by Phil Burgess

    I was recently interviewed on a podcast called "IT Career Energizer Podcast".

    Phil Burgess is the host of the podcast, and it was a lot of fun.

    I think it turned out well, and I wanted to share it with you here, with Phil's permission, of course.

    Special Guest: Phil Burgess.

    Links:

    • IT Career Energizer Podcast
    19 min
  • 65: one assert per test

    Is it ok to have more than one assert statement in a test?

    I've seen articles that say no, you should never have more than one assert.
    I've also seen some test code made almost unreadable due to trying to avoid more than one assert per test.

    Where did this recommendation even come from? What are the reasons?

    What are the downsides to both perspectives?

    That's what we're going to talk about today.

    Links:

    • Twitter survey about multiple asserts/checks — Are multiple asserts/checks ok in an automated test?
    • Multiple Asserts Are OK - Bill Wake
    • pytest-check: A pytest plugin that allows multiple failures per test.
    20 min
  • 64: Practicing Programming to increase your value

    I want you to get the most out of being a software developer, or test engineer, or whatever you do that makes this podcast relevant to your life.

    By "get the most" I mean:

    • the most fun
    • the most value
    • more career options
    • probably more responsibility
    • maybe even more money, that'd be cool
    • I want you to start (or continue) studying and practicing your skills.

      But not just random practice, I've got a strategy to help you focus what to study.

      Why am I talking about this now? Here's some background on how I re-learned how to have fun with code refactoring through code challenges.

      I'm going to write up the whole list as a blog post, which I'll share first with my Patreon Supporters, second with my email list and slack channel and then as an actual post somewhere.

      Links:

      • practicing-programming - Steve Yegge — essay
      • The Ultimate Code Kata - Jeff Atwood
      • Teach Yourself Programming in Ten Years - Peter Norvig
      • PyBites Code Challenges — Hone your Python Skills, in the browser
      • CheckiO — JavaScript & Python challenges
      • Exercism — code practice
      • Codewars — Train with Programming Challenges/Kata
      • Python Morsels — Challenges emailed to you once a week
      • subreddit of code challenges
      22 min
    • 63: Python Corporate Training - Matt Harrison

      I hear and I forget.

      I see and I remember.
      I do and I understand.
      -- Confucius

      Matt Harrison is an author and instructor of Python and Data Science. This episode focuses on his training company, MetaSnake, and corporate training.

      Matt's written several books on Python, mostly self published. So of course we talk about that.

      But the bulk of the conversation is about corporate training, with Brian playing the role of someone considering starting a corporate training role, and asking Matt, an experienced expert in training, how to start and where to go from there.

      I think you'll learn a lot from this.

      Special Guest: Matt Harrison.

      Links:

      • MetaSnake — Python Consultant and Training
      • Illustrated Guide to Python 3 — A Complete Walkthrough of Beginning Python with Unique Illustrations Showing how Python Really Works
      • Learning the Pandas Library — Python Tools for Data Munging, Analysis, and Visualization
      • Beginning Python Programming — Learn Python in 7 Days
      34 min
    • 62: Python Training - Reuven Lerner

      There are a lot of learning styles and a lot of ways to learn Python. If you started Python through a class at work, or through an online course, or maybe an email series, it's possibly you may have learned from Reuven Lerner.

      If your first encounter with pytest was reading an article in Linux Journal recently, that would be the writing of Reuven.

      Reuven Lerner teaches Python.

      This interview definitely falls into the category of talking with interesting people doing interesting things with Python.

      We talk about how incorporating testing into teaching can add a level of clarity to the interaction and help people duirng the learning process.

      I'm also fascinated by people who teach and train because it's a skill I'm trying to improve.

      Special Guest: Reuven Lerner.

      Links:

      • Reuven's site
      • Reuven's blog
      • Reuven's online store
      • Reuven's newsletter
      • newsletter for trainers
      • Weekly Python Exercise: Newbie edition — a 10% discount code for Test & Code listeners for the late January cohort.
      29 min
    • A retrospective

      A look back on 3 years of podcasting, and a bit of a look forward to what to expect in 2019.

      Top 5 episodes:

      1. 2: Pytest vs Unittest vs Nose
      2. 33: Katharine Jarmul - Testing in Data Science
      3. 18: Testing in Startups and Hiring Software Engineers with Joe Stump
      4. 45: David Heinemeier Hansson - Software Development and Testing, TDD, and exploratory QA
      5. 27: Mahmoud Hashemi : unit, integration, and system testing
      6. Honorable mention: 32: David Hussman - Agile vs Agility, Dude's Law, and more

        This episode also went through lots of:

        • what went well
        • what was lacking
        • what's next
        • Please listen and let me know where I should take this podcast.

          32 min
        • A retrospective

          A look back on 3 years of podcasting, and a bit of a look forward to what to expect in 2019.

          Top 5 episodes:

          1. 2: Pytest vs Unittest vs Nose
          2. 33: Katharine Jarmul - Testing in Data Science
          3. 18: Testing in Startups and Hiring Software Engineers with Joe Stump
          4. 45: David Heinemeier Hansson - Software Development and Testing, TDD, and exploratory QA
          5. 27: Mahmoud Hashemi : unit, integration, and system testing
          6. Honorable mention: 32: David Hussman - Agile vs Agility, Dude's Law, and more

            This episode also went through lots of:

            • what went well
            • what was lacking
            • what's next
            • Please listen and let me know where I should take this podcast.

              Sponsored By:

              • DigitalOceanGet started with a free $100 credit

              Support Test & Code - Software Testing, Development, Python

              32 min
            • 100 Days of Code - Julian Sequeira

              Julian Sequeira is Co-Founder of PyBit.es (a blog/platform created to teach and learn Python) and a Python Trainer at Talk Python Training.

              He's also a survivor of the 100DaysOfCode in Python Challenge.

              We talk about the 100 days challenge, about learning Python, and about how cool it is to learn within a community.

              Special Guest: Julian Sequeira.

              Links:

              • PyBites Blog
              • PyBites Code Challenges Platform
              • TalkPython + PyBites 100 Days of Code in Python Course
              • PyBites 100 Days of Code Repo
              • Pybit.es Slack Community
              35 min

            About Test & Code

            From the publisher's feed

            The Python Test Podcast hosted by Brian Okken

            More shows like Test & Code

            Radiolab by WNYC Studios

            Radiolab

            43,853 Listeners

            Software Engineering Daily by Software Engineering Daily

            Software Engineering Daily

            623 Listeners

            Heavy Networking by Packet Pushers

            Heavy Networking

            327 Listeners

            Talk Python To Me by Michael Kennedy

            Talk Python To Me

            582 Listeners

            Python Bytes by Michael Kennedy and Calvin Hendryx-Parker

            Python Bytes

            213 Listeners

            Darknet Diaries by Jack Rhysider

            Darknet Diaries

            8,059 Listeners

            The Real Python Podcast by Real Python

            The Real Python Podcast

            139 Listeners

            Unexplainable by Vox

            Unexplainable

            2,313 Listeners

            Network Automation Nerds by Packet Pushers

            Network Automation Nerds

            5 Listeners