We're sunsetting PodQuest on 2025-07-28. Thank you for your support!
Export Podcast Subscriptions
cover of episode #418 I'm a tea pot

#418 I'm a tea pot

2025/1/27
logo of podcast Python Bytes

Python Bytes

AI Deep Dive AI Chapters Transcript
People
B
Brian
Python 开发者和播客主持人,专注于测试和软件开发教育。
M
Michael
帮助医生和高收入专业人士管理财务的金融教育者和播客主持人。
Topics
Brian: 我想谈谈我们上周末失去的Michael Foord。他是Python核心开发者,对Python和PyCon早期发展做出了巨大贡献。他参与了单元测试库的开发,并编写了mock库,该库后来被整合到Python标准库中。Guido van Rossum在python.org讨论区发布了悼念文章,并鼓励大家分享与Michael的积极回忆。我曾在Test & Code播客中采访过他,讨论了mock测试和软件开发测试方面的建议。Nicholas Tollervey也写了一篇悼念文章,称赞Michael是一个思想独特、富有影响力的人物。 我感到很难过,因为我与Michael并不十分亲近,但我希望我能更了解他。他的离世对整个社区、朋友和家人来说都是一个损失。 Michael: 我想介绍一个名为Valkey的开源高性能键值数据库,它可以作为Redis的替代品。它支持多种工作负载,包括缓存和消息队列,并且可以作为主数据库使用。Valkey可以作为独立守护进程或集群运行,并提供复制和高可用性选项。它还支持多种数据类型,包括字符串、数字、哈希、列表、集合、有序集合、位图和超日志等。 我还想分享Michael Foord在2017年发表的30条软件开发和测试最佳实践文章。其中一些要点包括:YAGNI原则(你不需要它),单元测试应测试行为单元而不是实现单元,代码越少越好,以及模拟越多,代码质量越差。 最后,我想推荐两个网站:mimetype.io,用于查找文件的MIME类型;httpstatuses.io,用于查找HTTP状态码的详细信息。

Deep Dive

Chapters
This segment pays tribute to the late Michael Foord, a highly influential figure in the Python community. His contributions to the Python unit test library and the mock library are highlighted, along with anecdotes illustrating his impact on PyCon and the broader development world.
  • Michael Foord's passing is mourned.
  • He was a significant contributor to Python's unit test library and the mock library.
  • He played a key role in establishing the Language Summit events at PyCon.

Shownotes Transcript

Topics covered in this episode:

- **[In memoriam: Michael Foord 1974-2025](https://discuss.python.org/t/in-memoriam-michael-foord-1974-2025/78317?featured_on=pythonbytes))**

Watch on YouTube)

About the show

Sponsored by us! Support our work through:

Connect with the hosts

Join us on YouTube at pythonbytes.fm/live) to be part of the audience. Usually Monday at 10am PT. Older video versions available there too.

Finally, if you want an artisanal, hand-crafted digest of every week of the show notes in email form? Add your name and email to our friends of the show list), we'll never share it.

Brian #1: In memoriam: Michael Foord 1974-2025)

  • Guido van Rossum and others

  • We’ve just lost Michael Foord this last weekend.

  • From Guido:

  • “Michael, an original thinker if there ever was one, started the tradition of having Language Summit events at PyCon, IIRC together with Barry Warsaw. He also wrote and contributed the influential mock library. … “

  • “PS. Feel free to post your own (positive) memories of meeting Michael – perhaps his children (10 and 13) will read them when they’re older and this thread might help them remember their father.”

  • I’ve added my memories. I think this is a great (and small) way to honor him.

  • My friend Michael) - Nicholas Tolervey

  • After 5 years of trying, I did get an interview with Michael. I wish I’d have gotten that followup.

  • Test & Code episode with Michael, ep 145,) )“For) those about to mock”)

Michael #2: Valkey) )(Redis) Replacement))

  • Thanks Calvin HP)

  • An open source (BSD) high-performance key/value datastore that supports a variety of workloads such as caching, message queues.

  • Can act as a primary database.

  • Valkey can run as either a standalone daemon or in a cluster, with options for replication and high availability.

  • Valkey natively supports a rich collection of datatypes, including strings, numbers, hashes, lists, sets, sorted sets, bitmaps, hyperloglogs and more.

  • You can operate on data structures in-place with an expressive collection of commands.

Brian #3: 30 best practices for software development and testing)

  • Michael Foord (from 2017)

  • Some gems

  • 1 - YAGNI

  • 6 - Unit tests test to the unit of behavior, not the unit of implementation.

  • 8 - Code is the enemy: It can go wrong, and it needs maintenance. Write less code. Delete code. Don’t write code you don’t need.

  • 15 - The more you have to mock out to test your code, the worse your code is.

  • and so many more …

Michael #4: mimetype.io)

  • I’m always forgetting content types!

  • Also, shout out to httpstatuses.io)

Extras

Brian:

Michael:

Joke: Tea Time)