Skip to content
HomeVideos
AllLongsCategoriesPlaylists
BooksBlogsPodcasts
HistoryListsWatch laterLiked videosFollowing

The videos, books, blogs and podcasts Hacker News keeps recommending, all in one place.

VideosBooksBlogsPodcastsAboutPrivacySettings

Data from Hacker News, HackerTube, HackerBooks, HackerBlogs and Open Library. Credits · Not affiliated with Y Combinator.

HomeVideosBooksBlogsPodcasts
Ctrl K

    Rails Conf 2013 The Magic Tricks of Testing by Sandi Metz

    Confreaks

    5 HN recommenders · recommended in 5 months, 2013–2019

    YouTube

    32:23 · 145K views · May 22, 2013

    Sandi Metz's RailsConf 2013 talk offers practical guidelines for deciding what to test and how, so tests stay cheap and stable. She argues for testing the public interface rather than implementation and using mocks appropriately.

    HN recommends it as an incredible talk whose testing principles apply beyond Ruby.

    Software Engineering & LanguagesTesting, debugging & developer toolsSoftware architecture & designPython, Ruby & scripting languages
    1. 40:20
      "Testing Distributed Systems w/ Deterministic Simulation" by Will WilsonStrange Loop Conference56K views • 12 years ago
    2. 38:47
      RailsConf 2014 - All the Little Things by Sandi MetzConfreaks190K views • 12 years ago
    3. 35:53
      RailsConf 2015 - Nothing is SomethingConfreaks84K views • 11 years ago
    4. 45:55
      Ruby Conf 12 - Boundaries by Gary BernhardtConfreaks58K views • 13 years ago
    5. 1:03:55
      🚀 TDD, Where Did It All Go Wrong (Ian Cooper)DevTernity Conference619K views • 8 years ago
    6. 1:01:17
      RailsConf 2014 - Keynote: Writing Software by David Heinemeier HanssonConfreaks123K views • 12 years ago
    7. 1:15:58
      October CincyRb - Jim Weirich on Decoupling from RailsLaunch Scout48K views • 13 years ago
    8. 29:21
      Hillel Wayne - Beyond Unit Tests: Taking Your Testing to the Next Level - PyCon 2018PyCon 201838K views • 8 years ago
    9. 49:54
      The Clean Architecture in PythonNext Day Video114K views • 12 years ago
    10. 51:57
      Lone Star Ruby Conference 2010 Real Software Engineering by Glenn VanderburgConfreaks30K views • 15 years ago
    11. 7:15
      7 minutes of Pharo Smalltalk for RubyistsAvdi Grimm37K views • 11 years ago
    12. 28:06
      MountainWest RubyConf 2014 - But Really, You Should Learn SmalltalkConfreaks27K views • 12 years ago
    13. 47:34
      RailsConf 2011: Aaron Patterson, "Double Dream Hands: So Intense!"O'Reilly26K views • 15 years ago
    14. 43:04
      "Stop Writing Dead Programs" by Jack Rusher (Strange Loop 2022)Strange Loop Conference468K views • 4 years ago
    15. 1:04:36
      J B Rainsberger Integrated Tests Are A Scam HDChristopher Cabanne49K views • 11 years ago
    16. 20:59
      Jim Coplien and Bob Martin Debate TDDalexsmail163K views • 14 years ago
    17. 1:39:43
      [Linux.conf.au 2013] - Git For Ages 4 And UpHackersOnBoard208K views • 13 years ago
    18. 1:01:08
      RailsConf 2019 - Opening Keynote by David Heinemeier HanssonConfreaks46K views • 7 years ago
    19. 36:53
      Rails Conf 2012 Keynote: Simplicity Matters by Rich HickeyConfreaks220K views • 14 years ago
    20. 1:41:38
      Mock Interview with Shawn McGrathMolly Rocket45K views • 9 years ago

    5 comments from Hacker News

    1. @AlwaysBCodingSep 2013· in “Testing code is simple”

      What I wish people had told me about testing: * You write tests in accordance with a pattern: 1. Arrange 2. Act 3. Assert 4. Annihilate If you annihilate your test data with configuration options, and you abstract your "arranging" into factories and custom methods, then every test you write should be exactly three lines. When I learned this it gave me a consistent mental framework to think about how to write good tests. * Test the interface not the implementation: This was an eye opening realization about what to test. If you haven't seen it yet, watch Sandi Metz' incredible RailsConf talk - this video - it's so good * Stubs: Stubs are exactly like the viruses' that we learned about in biology class. You load them up with a value then they literally latch onto a method and inject that value into it. When you're just starting out with testing, effective use of stubs can get you really far, and only when you start hitting the limits of practicality is when you need to think about bringing in something more complicated. * Testing isn't easy per se, but it is definitely enjoyable if you focus on making it that way * Cucumber is pretty stupid, don't waste your time with it

      Strongly recommendsView on HN
    2. @teerayNov 2018· in “Measuring and Improving Your CI/CD Pipelines”

      There are some really fantastic testing resources in the Ruby community. The talk that most influenced my approach to building unit tests (even though I write Go these days) was one of Jim Weirich’s: [LINK] I’ve found that his zero-knowledge approach gives me a suite of tests that have high signal when they fail. Sandi Metz has also spoken extensively on testing, and I particularly like her advice on using mocks in tests appropriately. This talk of hers on the subject comes to mind: this video

      RecommendsView on HN
    3. @jakespracherNov 2019· in “Ask HN: Do you write tests before the implementation?”

      Not always before, but always eventually and usually once I’m done with “exploration”. Testing done right should be a time saver in the long run! I think many people are turned off by testing and especially unit testing because it ends up being difficult and maintenance is more of a pain than it’s worth. There are many good strategies to make it easier that in my experience have yet to be well adopted: this video [LINK]

      RecommendsView on HN
    4. @matchmike1313Jan 2018· in “Ask HN: How much time do you invest in writing tests?”

      I spend about 30% of my time on a new feature writing tests. BTW that is in RoR which the primary language I code in. I would recommend watching this video by Sandi Matz on testing: this video . I have used this methodology a lot to determine what I should test.

      RecommendsView on HN
    5. @richardjordanJan 2014· in “The Failures of "Intro to TDD"”

      Shout out for Sandi Metz book POODR, and her Railsconf talk The Magic Tricks of Testing, if you're a rubyist (though the principles hold true for non-ruby OO programmers too). this video

      RecommendsView on HN