HAMY LABS POD

5 Reasons to Stop Throwing Exceptions - and What To Do Instead for a more Robust, Composable, and Performant Codebase

Hamilton Greene

Use Left/Right to seek, Home/End to jump to start or end. Hold shift to jump forward or backward.

0:00 | 15:28

In this video we explore reasons that throwing exceptions are bad and an alternative method that leads to more robust, composable, and performant codebases.

Original blog post with all links: https://hamy.xyz/blog/2025-07_5-reasons-to-stop-throwing-exceptions

Chapters

00:00 - Intro
00:30 - Exceptions break the type system
02:20 - Exceptions make it hard to handle all possible cases
04:55 - Exceptions break the control flow of your system
05:25 - Exceptions are slow, heavyweight operations
06:30 - Exceptions make it harder to compose robust systems
09:00 - What should you use instead of exceptions? 
13:05 - Does this mean you should never use exceptions? 

Links:

- Build a Simple Result type in Python - and why you should use them - https://www.youtube.com/watch?v=1P7J2wI46sg&ab_channel=HAMYLABS
- TypeScript - Errors as Values vs Exceptions Performance Benchmarks - https://www.youtube.com/watch?v=nuAl00ZD7zQ&ab_channel=HAMYLABS
- Types vs No Types - How Types Allow Code to Scale across Developers, Organizations, and Code Size - https://www.youtube.com/watch?v=ntNGPompHsA&ab_channel=HAMYLABS 

About me: I'm Hamilton - a Technomancer building Simple Scalable Systems.

Connect with me:

- Website: https://hamy.xyz
- Email List: https://hamniverse.substack.com/
- Twitter: @SIRHAMY - https://twitter.com/SIRHAMY
- BlueSky: https://bsky.app/profile/sirhamy.bsky.social
- Pod Cast: HAMY LABS POD - https://hamylabspod.buzzsprout.com/

# Support 

If you liked this and would like to see more, consider becoming a supporter: https://hamy.xyz/labs/haminions

Supporters get:
* Full source code access from courses / tutorials
* Exclusive discounts on products / courses

Plus you help me to keep experimenting / sharing!

For Sponsorship info: https://hamy.xyz/labs/sponsors