What I notice in Genesis 38 is yet another repitition of this theme in which faithlessness to the LORD's will for
marriage leads to many problems. Judah marries a Canaanite woman, and that is only the start of the trouble.
It is good to remember that the Bible does not present us with heroes to emulate. Instead, Scripture tells us
about the LORD, His creation, its problems, and His way of saving it.