Difference Between For Each and Index-based LoopThanks. I think I get it now. I was only increasing i on some of the loop iterations so it didn't wo...
Difference Between For Each and Index-based LoopI have two pieces of code that I was expecting to work the same and I can't figure out why they don'...
Generalizing Repeated Functions.Wow. Thank you! This was very helpful. It really helped clear up some of the confusion I had about t...
Generalizing Repeated Functions.I'm working on a game with an entity-component system. I have a Manager class that is handling all o...
How Do I Go About Generalizing These Functions, And Should I?I'm working on a game with an entity-component system. I have a Manager class that is handling all o...