Timeline for Do retail games use "inversion of control" and "dependency injection"?
Current License: CC BY-SA 2.5
19 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jun 18, 2023 at 6:38 | comment | added | Dean Hiller | Oh, we took this one level more. Since we use DI, we just simply bind our Executor(thread pool) into a single thread or a mock so that ALL OUR tests are single threaded. I have had 100's of people the last 10 years ask me how I made every system(even the most complex like gaming) single threaded for testing - well, thanks to DI, it made reaching in to the huge map of objects to swap anything out possible. | |
| Jun 18, 2023 at 6:30 | comment | added | Dean Hiller | One of the LARGEST benefits of Dependency Injection (Rename of Inversion of control - same thing) was with a framework and a huge system, I can easily swap 'my remote API that talks to server' with a mock for testing. Without DI, you have to wire this through tons of layers. Also, when done right if I need instance 1 of class Y way over somewhere else, I no longer need to rework multiple layers of code. <- This probably only makes since to those who have used good DI frameworks though as it is hard to explain and only learned through experience. | |
| Jun 14, 2020 at 10:20 | answer | added | Cygon | timeline score: 10 | |
| May 23, 2019 at 21:41 | comment | added | Jimmyt1988 | Yes, they do. In fact, Rare had a talk about how they are implementing their testing in Sea of Thieves - youtube.com/watch?v=KmaGxprTUfI&t=1s. Unfortunately they didn't have too much to say about Inversion of Control in Unreal Engine, however, I've written a project that demonstrates how it works: github.com/jimmyt1988/UE-Testing | |
| Apr 25, 2019 at 20:08 | history | edited | DMGregory♦ | edited tags | |
| Mar 24, 2018 at 19:37 | comment | added | Boris Callens | As most of this thread seems to be misinformed about what IoC is and what it solves and the OP is not really asking that in the first place I will point here for future visitors: sebaslab.com/ioc-container-unity-part-1 | |
| Jun 25, 2017 at 22:44 | history | tweeted | twitter.com/StackGameDev/status/879108025465831424 | ||
| Dec 27, 2011 at 2:39 | comment | added | ADB | Dependency injection sounds like a component-based system, but would you have an example of how one would une inversion of control? | |
| May 4, 2011 at 11:40 | answer | added | phtrivier | timeline score: 1 | |
| Sep 20, 2010 at 9:08 | vote | accept | Iain | ||
| Aug 26, 2010 at 17:46 | answer | added | Alex Schearer | timeline score: 15 | |
| Aug 26, 2010 at 14:19 | answer | added | Mason Wheeler | timeline score: 2 | |
| Aug 25, 2010 at 17:42 | answer | added | David Young | timeline score: 18 | |
| Aug 25, 2010 at 15:21 | history | edited | Iain | CC BY-SA 2.5 | added 130 characters in body |
| Aug 25, 2010 at 14:20 | answer | added | Kylotan | timeline score: 41 | |
| Aug 25, 2010 at 11:27 | answer | added | Chris Howe | timeline score: 4 | |
| Aug 25, 2010 at 9:16 | comment | added | Bart van Heukelom | I think that in that world performance matters above all, since more users will be hit by low performance than programmers by bad code. | |
| Aug 25, 2010 at 8:52 | answer | added | tenpn | timeline score: 2 | |
| Aug 25, 2010 at 8:44 | history | asked | Iain | CC BY-SA 2.5 |