Best practice for handling dependencies?

139 Views Asked by At

I've been programming with Unreal Engine for a while but I want my code to be a bit more consistent, and one thing that I'm not sure how to handle consistently are dependencies. I've seen some people only including files in their .cpp file, and then using forward declarations in their header, I've seen some people just including files in both .h and .cpp files whenever they need to use a class, and I've seen people mixing both. I was looking at some sample projects made by Unreal and they're really inconsistent. What's considered "good practice" when it comes to dependencies?

0

There are 0 best solutions below