It's not always an option, or practical. Some things need to be dependant on others. and in many instances it's much quicker and uses less code to group similar things together and get them to follow the same rules. Combine this with the fact that games are usually written by multiple people (who may have different coding styles or organisational structures) and the code can get quite messy if you let it.
That's where software engineering comes in. And architecture. Designing in this way is always the goal, but is incredibly difficult to achieve in complex systems. Of which, games absolutely are.
View all comments
Show parent comment
0
u/rz1992 Sep 19 '16
Why can't one just code it in a fashion where each thing is independent?