The one who keeps the law is a son with understanding,
but a companion of gluttons shames his father.
There are natural consequences to our actions. A son who has understanding will, in most cases, seek to honor God with his attitude and actions. The one who lacks understanding and eats or drinks to excess will embarrass himself and shame his parents.
I believe every Christian parent prays for their children in this manner: "We have not ceased to pray for you and to ask that you may be filled with the knowledge of His will in all spiritual wisdom and understanding, so that you will walk in a manner worthy of the Lord, to please Him in all respects, bearing fruit in every good work and increasing in the knowledge of God . . ." (Colossians1:9-10). God is faithful. Therefore, there is hope for both sons.