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.
True Crime Tonight
If you eat, sleep, and breathe true crime, TRUE CRIME TONIGHT is serving up your nightly fix. Five nights a week, KT STUDIOS & iHEART RADIO invite listeners to pull up a seat for an unfiltered look at the biggest cases making headlines, celebrity scandals, and the trials everyone is watching. With a mix of expert analysis, hot takes, and listener call-ins, TRUE CRIME TONIGHT goes beyond the headlines to uncover the twists, turns, and unanswered questions that keep us all obsessed—because, at TRUE CRIME TONIGHT, there’s a seat for everyone. Whether breaking down crime scene forensics, scrutinizing serial killers, or debating the most binge-worthy true crime docs, True Crime Tonight is the fresh, fast-paced, and slightly addictive home for true crime lovers.
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
24/7 News: The Latest
The latest news in 4 minutes updated every hour, every day.