All Episodes

February 20, 2022 70 mins

Hi there my fellow gamedevs and welcome back to the All Things Unity Podcast. In this episode we are going to continue our journey through clean code with the next four chapters of the book. We are going to discuss chapters 6 through 9. Object and Data structures, Error Handling, Boundaries and Unit Tests.

 

Chapter 6 is about objects and data structures, where we talk about the distinct differences between them; how objects hide implementation details and expose their data through functions and data structures do the exact opposite and expose their internals without providing an abstract interface.

 

Then we also discuss error handling in chapter 7 and how error handling can be really difficult in Unity3D since we don’t want to start throwing exceptions everywhere because it will impact performance greatly.

 

Next is chapter 8, boundaries, and it is about how to integrate with 3th-party code. How you explore it by covering it by tests and how you create facade classes around it to minimize dependencies.

 

And then, the final chapter, we discuss chapter 9 which is all about unit testing. As I said before finding a unity project that is properly unit tested is very very rare, and that’s for a reason of course. We’re all going to discuss it in this episode.

 

In this episode I said I wrote a blog about Polymorphism which you can read here: https://hamersoft.com/2021/03/10/14-solid-part-5-the-dependency-inversion-principle/

 

I also mentioned the Law of Demeter: https://en.wikipedia.org/wiki/Law_of_Demeter

 

Enjoy!

 

And as always, remember; With Unity, we can do great things.

Mark as Played

Advertise With Us

Popular Podcasts

Stuff You Should Know
Dateline NBC

Dateline NBC

Current and classic episodes, featuring compelling true-crime mysteries, powerful documentaries and in-depth investigations. Follow now to get the latest episodes of Dateline NBC completely free, or subscribe to Dateline Premium for ad-free listening and exclusive bonus content: DatelinePremium.com

On Purpose with Jay Shetty

On Purpose with Jay Shetty

I’m Jay Shetty host of On Purpose the worlds #1 Mental Health podcast and I’m so grateful you found us. I started this podcast 5 years ago to invite you into conversations and workshops that are designed to help make you happier, healthier and more healed. I believe that when you (yes you) feel seen, heard and understood you’re able to deal with relationship struggles, work challenges and life’s ups and downs with more ease and grace. I interview experts, celebrities, thought leaders and athletes so that we can grow our mindset, build better habits and uncover a side of them we’ve never seen before. New episodes every Monday and Friday. Your support means the world to me and I don’t take it for granted — click the follow button and leave a review to help us spread the love with On Purpose. I can’t wait for you to listen to your first or 500th episode!

Music, radio and podcasts, all free. Listen online or download the iHeart App.

Connect

© 2025 iHeartMedia, Inc.