The whole idea of the Bible is to interpret the mindset of the writers, not judge what they have to say.

Think of where Moses' head was when he wrote his story either 1420 or 1220 B.C. What was Josh thinking?
Analyze the "Psalms" by David, et al, that are written, at least, 1000 B.C.
Malachi wrote stuff 450-425 B.C.
James 45-48 A.D., was Jesus still alive?
John 85-96 A.D.

How does 1500 years of mankind tie together?
May The Devil not impede your mind.