Programming Throwdown

173: Mocking and Unit Tests


Listen Later

173: Mocking and Unit Tests


Intro topic:  Headphones

News/Links:

  • Texas A&M University Physics Festival
    • https://physicsfestival.tamu.edu/
  • Rust vs Cpp at Google
    • Lars Bergstrom (Google Director of Engineering): Rust teams at Google are as productive as the ones using Go and 2x those using Cpp
    • https://youtu.be/6mZRWFQRvmw?t=27012
  • Is Cosine Similarity Really About Similarity
    • https://arxiv.org/abs/2403.05440
  • Xz utils supply chain attack
    • Andres Freund at Microsoft
    • https://arstechnica.com/security/2024/04/what-we-know-about-the-xz-utils-backdoor-that-almost-infected-the-world/


Book of the Show

  • Patrick:
    • 80/20 Running by Matt Fitzgerald
    • https://amzn.to/3xyEKLo
  • Jason: 
    • A Movie Making Nerd
    • https://amzn.to/49ycDJj


Patreon Plug https://www.patreon.com/programmingthrowdown?ty=h


Tool of the Show

  • Patrick: 
    • Shapez Android: https://play.google.com/store/apps/details?id=com.playdigious.shapez&hl=en_US&gl=US
    • Shapez iOS: https://apps.apple.com/us/app/shapez-factory-game/id6450830779
  • Jason: 
    • Dwarf Fortress
    • https://store.steampowered.com/app/975370/Dwarf_Fortress/


Topic: Mocking and Unit Tests

  • What are Unit Tests
    • Balance between utility, maintenance, and coverage
    • Unit Test: testing small functions
    • Regression Test: Testing larger functions
    • System Test: End-to-end testing of programs
  • What are mocks & fakes
  • When to use mock vs. fake
  • Mocking libraries in various languages
    • Python: https://docs.python.org/3/library/unittest.mock.html
    • Java: https://github.com/mockito/mockito
    • C++:  https://github.com/google/googletest


★ Support this podcast on Patreon ★
...more
View all episodesView all episodes
Download on the App Store

Programming ThrowdownBy Patrick Wheeler and Jason Gauci

  • 4.5
  • 4.5
  • 4.5
  • 4.5
  • 4.5

4.5

550 ratings


More shows like Programming Throwdown

View all
Hanselminutes with Scott Hanselman by Scott Hanselman

Hanselminutes with Scott Hanselman

378 Listeners

.NET Rocks! by Carl Franklin and Richard Campbell

.NET Rocks!

242 Listeners

The Changelog: Software Development, Open Source by Changelog Media

The Changelog: Software Development, Open Source

285 Listeners

Talk Python To Me by Michael Kennedy

Talk Python To Me

580 Listeners

Software Engineering Daily by Software Engineering Daily

Software Engineering Daily

624 Listeners

Soft Skills Engineering by Jamison Dance and Dave Smith

Soft Skills Engineering

271 Listeners

Go Time: Golang, Software Engineering by Changelog Media

Go Time: Golang, Software Engineering

128 Listeners

Python Bytes by Michael Kennedy and Brian Okken

Python Bytes

214 Listeners

JS Party: JavaScript, CSS, Web Development by Changelog Media

JS Party: JavaScript, CSS, Web Development

94 Listeners

Syntax - Tasty Web Development Treats by Wes Bos & Scott Tolinski - Full Stack JavaScript Web Developers

Syntax - Tasty Web Development Treats

984 Listeners

The freeCodeCamp Podcast by freeCodeCamp.org

The freeCodeCamp Podcast

485 Listeners

CoRecursive: Coding Stories by Adam Gordon Bell - Software Developer

CoRecursive: Coding Stories

185 Listeners

The Stack Overflow Podcast by The Stack Overflow Podcast

The Stack Overflow Podcast

62 Listeners

The Real Python Podcast by Real Python

The Real Python Podcast

137 Listeners

Oxide and Friends by Oxide Computer Company

Oxide and Friends

48 Listeners